Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.0.0_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_Inverter.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.00187/0.00187, allocations: 103.6 kB / 20.43 MB, free: 1.211 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.002284/0.002284, allocations: 183.9 kB / 23.7 MB, free: 4.445 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.492/1.492, allocations: 225.7 MB / 252.5 MB, free: 12.85 MB / 206.1 MB " [Timeout remaining time 178] Using package Modelica with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo) Using package Complex with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo) Running command: translateModel(Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_Inverter,tolerance=1e-06,outputFormat="mat",numberOfIntervals=15000,variableFilter="time|loadInertia.phi|loadInertia.w|smpm.is.1.|smpm.is.2.|smpm.idq_dr.1.|smpm.idq_rr.2.|smpm.idq_sr.1.|smpm.idq_sr.2.|vfController.x",fileNamePrefix="Modelica_4.0.0_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_Inverter") translateModel(Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_Inverter,tolerance=1e-06,outputFormat="mat",numberOfIntervals=15000,variableFilter="time|loadInertia.phi|loadInertia.w|smpm.is.1.|smpm.is.2.|smpm.idq_dr.1.|smpm.idq_rr.2.|smpm.idq_sr.1.|smpm.idq_sr.2.|vfController.x",fileNamePrefix="Modelica_4.0.0_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_Inverter") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 0.001551/0.001551, allocations: 43.94 kB / 370.9 MB, free: 9.18 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2431/0.2447, allocations: 52.19 MB / 423.1 MB, free: 14.48 MB / 334.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_Inverter): time 0.01189/0.2566, allocations: 9.121 MB / 432.2 MB, free: 5.324 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.006487/0.2631, allocations: 3.225 MB / 435.4 MB, free: 2.09 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001399/0.2645, allocations: 79.5 kB / 435.5 MB, free: 2.012 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.002045/0.2665, allocations: 0.7488 MB / 436.3 MB, free: 1.262 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.002402/0.2689, allocations: 0.897 MB / 437.2 MB, free: 368 kB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0008883/0.2698, allocations: 415.5 kB / 437.6 MB, free: 15.95 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.003073/0.2729, allocations: 2.757 MB / 440.3 MB, free: 13.19 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0018/0.2747, allocations: 1.297 MB / 441.6 MB, free: 11.82 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001781/0.2765, allocations: 1.297 MB / 442.9 MB, free: 10.52 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.002143/0.2786, allocations: 1.514 MB / 444.4 MB, free: 9 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0004816/0.2791, allocations: 339.9 kB / 444.8 MB, free: 8.668 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0008211/0.2799, allocations: 427.9 kB / 445.2 MB, free: 8.25 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0009558/0.2809, allocations: 0.9543 MB / 446.1 MB, free: 7.293 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.001304/0.2822, allocations: 1.214 MB / 447.3 MB, free: 6.074 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.00494/0.2871, allocations: 4.426 MB / 451.8 MB, free: 1.633 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.31e-06/0.2871, allocations: 0 / 451.8 MB, free: 1.633 MB / 350.1 MB Notification: Performance of FrontEnd: time 2.134e-06/0.2871, allocations: 0 / 451.8 MB, free: 1.633 MB / 350.1 MB Notification: Performance of Transformations before backend: time 0.0001056/0.2872, allocations: 0 / 451.8 MB, free: 1.633 MB / 350.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 581 * Number of variables: 581 Notification: Performance of Generate backend data structure: time 0.006838/0.2941, allocations: 3.045 MB / 454.8 MB, free: 14.54 MB / 366.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.687e-05/0.2941, allocations: 8.031 kB / 454.8 MB, free: 14.53 MB / 366.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0008518/0.295, allocations: 331 kB / 455.1 MB, free: 14.21 MB / 366.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.003029/0.298, allocations: 1.555 MB / 456.7 MB, free: 12.61 MB / 366.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001533/0.2981, allocations: 172.3 kB / 456.9 MB, free: 12.44 MB / 366.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0003254/0.2985, allocations: 224 kB / 457.1 MB, free: 12.22 MB / 366.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.004861/0.3033, allocations: 3.017 MB / 460.1 MB, free: 9.094 MB / 366.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 6.161e-05/0.3034, allocations: 11.92 kB / 460.1 MB, free: 9.082 MB / 366.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002004/0.3036, allocations: 88 kB / 460.2 MB, free: 8.996 MB / 366.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.000154/0.3037, allocations: 116.3 kB / 460.3 MB, free: 8.879 MB / 366.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.004281/0.308, allocations: 2.422 MB / 462.7 MB, free: 6.441 MB / 366.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01362/0.3216, allocations: 7.834 MB / 470.6 MB, free: 14.35 MB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002127/0.3238, allocations: 1.182 MB / 471.7 MB, free: 13.16 MB / 382.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001739/0.3255, allocations: 0.9131 MB / 472.7 MB, free: 12.25 MB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0002241/0.3257, allocations: 60.89 kB / 472.7 MB, free: 12.19 MB / 382.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.446e-05/0.3258, allocations: 47.56 kB / 472.8 MB, free: 12.13 MB / 382.1 MB Notification: Performance of pre-optimization done (n=105): time 3.096e-06/0.3258, allocations: 0 / 472.8 MB, free: 12.13 MB / 382.1 MB Notification: Performance of matching and sorting (n=122): time 0.01446/0.3402, allocations: 6.047 MB / 478.8 MB, free: 6.059 MB / 382.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.949e-05/0.3403, allocations: 64.41 kB / 478.9 MB, free: 5.984 MB / 382.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002327/0.3426, allocations: 1.425 MB / 480.3 MB, free: 4.547 MB / 382.1 MB Notification: Performance of collectPreVariables (initialization): time 9.567e-05/0.3427, allocations: 49.69 kB / 480.4 MB, free: 4.492 MB / 382.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.00123/0.344, allocations: 1.145 MB / 481.5 MB, free: 3.336 MB / 382.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0004008/0.3444, allocations: 448.2 kB / 481.9 MB, free: 2.895 MB / 382.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0004373/0.3448, allocations: 271.5 kB / 482.2 MB, free: 2.621 MB / 382.1 MB Notification: Performance of setup shared object (initialization): time 0.0001503/0.3449, allocations: 305.1 kB / 482.5 MB, free: 2.32 MB / 382.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001261/0.3462, allocations: 0.7105 MB / 483.2 MB, free: 1.609 MB / 382.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001588/0.3478, allocations: 1.134 MB / 484.3 MB, free: 300 kB / 382.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.003023/0.3508, allocations: 1.971 MB / 486.3 MB, free: 14.14 MB / 398.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 9.247e-06/0.3508, allocations: 4 kB / 486.3 MB, free: 14.14 MB / 398.1 MB Notification: Performance of matching and sorting (n=191) (initialization): time 0.004261/0.3551, allocations: 2.432 MB / 488.7 MB, free: 11.68 MB / 398.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.62e-05/0.3551, allocations: 15.94 kB / 488.8 MB, free: 11.66 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.922e-05/0.3551, allocations: 12 kB / 488.8 MB, free: 11.65 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001029/0.3562, allocations: 427.3 kB / 489.2 MB, free: 11.22 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001286/0.3574, allocations: 343.5 kB / 489.5 MB, free: 10.89 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.007279/0.3647, allocations: 6.71 MB / 496.2 MB, free: 3.879 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001121/0.3658, allocations: 103.8 kB / 496.3 MB, free: 3.777 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001097/0.366, allocations: 67.98 kB / 496.4 MB, free: 3.711 MB / 398.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 59 * Number of states: 0 () * Number of discrete variables: 0 () * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (169): * Single equations (assignments): 165 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 1 * Torn equation systems: 3 * Mixed (continuous/discrete) equation systems: 0 Notification: Equation system details (not torn): * Constant Jacobian (size): 0 systems * Linear Jacobian (size,density): 1 system {(2,100.0%)} * Non-linear Jacobian (size): 0 systems * Without analytic Jacobian (size): 0 systems Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 3 systems {(3,12,100.0%), (1,6,100.0%), (1,1,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of prepare postOptimizeDAE: time 0.001211/0.3672, allocations: 0.7131 MB / 497.1 MB, free: 2.988 MB / 398.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002717/0.3674, allocations: 174.8 kB / 497.3 MB, free: 2.816 MB / 398.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003773/0.3712, allocations: 2.098 MB / 499.4 MB, free: 0.6875 MB / 398.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.133e-05/0.3712, allocations: 12 kB / 499.4 MB, free: 0.6758 MB / 398.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.454e-06/0.3712, allocations: 4 kB / 499.4 MB, free: 0.6719 MB / 398.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.071e-05/0.3712, allocations: 7.922 kB / 499.4 MB, free: 0.6641 MB / 398.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.007718/0.379, allocations: 4.122 MB / 0.4917 GB, free: 12.43 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.386e-06/0.379, allocations: 4 kB / 0.4917 GB, free: 12.43 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0009814/0.3799, allocations: 224.1 kB / 0.492 GB, free: 12.21 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001133/0.3811, allocations: 451 kB / 0.4924 GB, free: 11.76 MB / 414.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.067e-05/0.3812, allocations: 35.97 kB / 0.4924 GB, free: 11.72 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.008704/0.3899, allocations: 8.126 MB / 0.5003 GB, free: 3.188 MB / 414.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.96e-06/0.3899, allocations: 4 kB / 0.5004 GB, free: 3.184 MB / 414.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.005607/0.3955, allocations: 3.139 MB / 0.5034 GB, free: 15.96 MB / 430.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0009487/0.3964, allocations: 310.8 kB / 0.5037 GB, free: 15.66 MB / 430.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002123/0.3966, allocations: 39.98 kB / 0.5038 GB, free: 15.62 MB / 430.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0008973/0.3975, allocations: 79.91 kB / 0.5038 GB, free: 15.55 MB / 430.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002575/0.3978, allocations: 108.7 kB / 0.5039 GB, free: 15.44 MB / 430.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.391e-05/0.3979, allocations: 39.98 kB / 0.504 GB, free: 15.4 MB / 430.1 MB Notification: Performance of sorting global known variables: time 0.001577/0.3995, allocations: 0.9494 MB / 0.5049 GB, free: 14.45 MB / 430.1 MB Notification: Performance of sort global known variables: time 1.2e-07/0.3995, allocations: 4 kB / 0.5049 GB, free: 14.45 MB / 430.1 MB Notification: Performance of remove unused functions: time 0.001759/0.4012, allocations: 483.9 kB / 0.5054 GB, free: 13.98 MB / 430.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 16 * Number of states: 7 (smpm.inertiaRotor.w,smpm.idq_sr[1],smpm.idq_sr[2],smpm.idq_rr[2],smpm.idq_dr[1],vfController.x,loadInertia.phi) * Number of discrete variables: 0 () * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (107): * Single equations (assignments): 103 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 4 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 4 systems {(3,12,100.0%), (1,6,100.0%), (1,1,100.0%), (2,1,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of Backend phase and start with SimCode phase: time 0.000426/0.4016, allocations: 199 kB / 0.5056 GB, free: 13.77 MB / 430.1 MB Notification: Performance of simCode: created initialization part: time 0.003872/0.4055, allocations: 2.146 MB / 0.5076 GB, free: 11.59 MB / 430.1 MB Notification: Performance of simCode: created event and clocks part: time 7.444e-06/0.4055, allocations: 5.875 kB / 0.5077 GB, free: 11.58 MB / 430.1 MB Notification: Performance of simCode: created simulation system equations: time 0.002438/0.408, allocations: 1.418 MB / 0.509 GB, free: 10.11 MB / 430.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001874/0.4098, allocations: 421.9 kB / 0.5094 GB, free: 9.707 MB / 430.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.007888/0.4177, allocations: 4.744 MB / 0.5141 GB, free: 4.879 MB / 430.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001582/0.4193, allocations: 1.302 MB / 0.5153 GB, free: 3.535 MB / 430.1 MB Notification: Performance of simCode: alias equations: time 0.001178/0.4205, allocations: 373.7 kB / 0.5157 GB, free: 3.164 MB / 430.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003398/0.4208, allocations: 119.4 kB / 0.5158 GB, free: 3.047 MB / 430.1 MB Notification: Performance of SimCode: time 9.52e-07/0.4208, allocations: 0 / 0.5158 GB, free: 3.047 MB / 430.1 MB Notification: Performance of Templates: time 0.2499/0.6707, allocations: 28.26 MB / 0.5434 GB, free: 100.6 MB / 446.1 MB " [Timeout remaining time 659] make -j1 -f Modelica_4.0.0_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_Inverter.makefile [Timeout 660] (rm -f Modelica_4.0.0_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_Inverter.pipe ; mkfifo Modelica_4.0.0_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_Inverter.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_Inverter.pipe >> ../files/Modelica_4.0.0_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_Inverter.sim & ./Modelica_4.0.0_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_Inverter -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_4.0.0_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_Inverter.pipe 2>&1) [Timeout 480] diffSimulationResults("Modelica_4.0.0_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_Inverter_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Electrical/Machines/Examples/SynchronousMachines/SMPM_Inverter/SMPM_Inverter.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_4.0.0_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_Inverter.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) [Timeout 660] "" [Timeout remaining time 660] Reference file matches [Calling sys.exit(0), Time elapsed: 6.047899179160595]