Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.1.0_Modelica.Electrical.Spice3.Examples.InvertersExtendedModel.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo): time 0.001572/0.001572, allocations: 116.5 kB / 18.45 MB, free: 4.562 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo): time 0.001478/0.001478, allocations: 215.2 kB / 21.42 MB, free: 1.605 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo): time 1.516/1.516, allocations: 230.6 MB / 254.8 MB, free: 15.08 MB / 206.1 MB " [Timeout remaining time 178] Using package Modelica with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo) Using package Complex with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo) Using package ModelicaServices with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo) Running command: translateModel(Modelica.Electrical.Spice3.Examples.InvertersExtendedModel,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5002,variableFilter="time|mp1.S.v|mp2.S.v|v.p.v",fileNamePrefix="Modelica_4.1.0_Modelica.Electrical.Spice3.Examples.InvertersExtendedModel") translateModel(Modelica.Electrical.Spice3.Examples.InvertersExtendedModel,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5002,variableFilter="time|mp1.S.v|mp2.S.v|v.p.v",fileNamePrefix="Modelica_4.1.0_Modelica.Electrical.Spice3.Examples.InvertersExtendedModel") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 0.001645/0.001645, allocations: 47.92 kB / 374.1 MB, free: 9.719 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1055/0.1071, allocations: 53.34 MB / 427.5 MB, free: 4.289 MB / 350.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Spice3.Examples.InvertersExtendedModel): time 0.2484/0.3555, allocations: 15.37 MB / 442.8 MB, free: 2.512 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.03483/0.3904, allocations: 20.84 MB / 463.7 MB, free: 3.355 MB / 366.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.005978/0.3963, allocations: 136.8 kB / 463.8 MB, free: 3.262 MB / 366.1 MB Notification: Performance of NFTyping.typeComponents: time 0.005651/0.402, allocations: 1.26 MB / 465.1 MB, free: 2.598 MB / 366.1 MB Notification: Performance of NFTyping.typeBindings: time 0.01502/0.417, allocations: 2.383 MB / 467.5 MB, free: 1.129 MB / 366.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.007944/0.425, allocations: 1.438 MB / 468.9 MB, free: 348 kB / 366.1 MB Notification: Performance of NFFlatten.flatten: time 0.0154/0.4403, allocations: 6.719 MB / 475.6 MB, free: 13.11 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001043/0.4414, allocations: 270.3 kB / 475.9 MB, free: 12.93 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.002991/0.4444, allocations: 1.176 MB / 477 MB, free: 12.38 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.003186/0.4476, allocations: 1.149 MB / 478.2 MB, free: 11.71 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0004345/0.448, allocations: 78.33 kB / 478.3 MB, free: 11.7 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.007273/0.4553, allocations: 1.477 MB / 479.8 MB, free: 11.08 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0008687/0.4561, allocations: 336 kB / 480.1 MB, free: 10.82 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 0.00325/0.4594, allocations: 1.428 MB / 481.5 MB, free: 9.875 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.01096/0.4704, allocations: 4.005 MB / 485.5 MB, free: 6.492 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 7.293e-06/0.4704, allocations: 8 kB / 485.5 MB, free: 6.484 MB / 382.1 MB Notification: Performance of FrontEnd: time 2.004e-06/0.4704, allocations: 0 / 485.5 MB, free: 6.484 MB / 382.1 MB Notification: Performance of Transformations before backend: time 0.0001397/0.4705, allocations: 0 / 485.5 MB, free: 6.484 MB / 382.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 154 * Number of variables: 154 Notification: Performance of Generate backend data structure: time 0.008772/0.4793, allocations: 3.961 MB / 489.5 MB, free: 2.438 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 6.238e-05/0.4793, allocations: 8.031 kB / 489.5 MB, free: 2.43 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0007987/0.4801, allocations: 437.3 kB / 489.9 MB, free: 2 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.004764/0.4849, allocations: 2.502 MB / 492.4 MB, free: 15.43 MB / 398.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.891e-05/0.4849, allocations: 37 kB / 492.5 MB, free: 15.39 MB / 398.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001517/0.4851, allocations: 63.94 kB / 492.5 MB, free: 15.33 MB / 398.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.00157/0.4867, allocations: 0.7265 MB / 493.2 MB, free: 14.6 MB / 398.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.931e-05/0.4867, allocations: 0 / 493.2 MB, free: 14.6 MB / 398.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.569e-05/0.4868, allocations: 20 kB / 493.3 MB, free: 14.58 MB / 398.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.963e-05/0.4868, allocations: 19.98 kB / 493.3 MB, free: 14.56 MB / 398.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.00179/0.4886, allocations: 0.8163 MB / 494.1 MB, free: 13.74 MB / 398.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.007245/0.4958, allocations: 3.099 MB / 497.2 MB, free: 10.56 MB / 398.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001326/0.4971, allocations: 0.5249 MB / 497.7 MB, free: 10.03 MB / 398.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001016/0.4982, allocations: 0.5549 MB / 498.3 MB, free: 9.473 MB / 398.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0394/0.5376, allocations: 30.77 MB / 0.5166 GB, free: 6.453 MB / 430.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0008499/0.5384, allocations: 361.6 kB / 0.517 GB, free: 6.09 MB / 430.1 MB Notification: Performance of pre-optimization done (n=49): time 2.325e-06/0.5384, allocations: 3.938 kB / 0.517 GB, free: 6.086 MB / 430.1 MB Notification: Performance of matching and sorting (n=49): time 0.002712/0.5411, allocations: 1.126 MB / 0.5181 GB, free: 4.953 MB / 430.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.431e-05/0.5412, allocations: 67.39 kB / 0.5182 GB, free: 4.875 MB / 430.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.004459/0.5456, allocations: 3.087 MB / 0.5212 GB, free: 1.789 MB / 430.1 MB Notification: Performance of collectPreVariables (initialization): time 8.68e-05/0.5457, allocations: 33.7 kB / 0.5212 GB, free: 1.75 MB / 430.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.001599/0.5473, allocations: 1.585 MB / 0.5228 GB, free: 160 kB / 430.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002253/0.5476, allocations: 174.5 kB / 0.5229 GB, free: 15.98 MB / 446.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0003493/0.5479, allocations: 230.4 kB / 0.5231 GB, free: 15.75 MB / 446.1 MB Notification: Performance of setup shared object (initialization): time 0.0001709/0.5481, allocations: 338 kB / 0.5235 GB, free: 15.42 MB / 446.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0006484/0.5487, allocations: 249.8 kB / 0.5237 GB, free: 15.18 MB / 446.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0009394/0.5497, allocations: 0.6059 MB / 0.5243 GB, free: 14.39 MB / 446.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001653/0.5513, allocations: 0.8974 MB / 0.5252 GB, free: 13.32 MB / 446.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.02e-05/0.5513, allocations: 11.94 kB / 0.5252 GB, free: 13.31 MB / 446.1 MB Notification: Performance of matching and sorting (n=110) (initialization): time 0.002583/0.5539, allocations: 1.251 MB / 0.5264 GB, free: 12.05 MB / 446.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.051e-05/0.5539, allocations: 16.03 kB / 0.5264 GB, free: 12.04 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001215/0.5541, allocations: 83.94 kB / 0.5265 GB, free: 11.96 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 3.213e-05/0.5541, allocations: 16 kB / 0.5265 GB, free: 11.94 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0007492/0.5548, allocations: 204.2 kB / 0.5267 GB, free: 11.74 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 3.129e-05/0.5549, allocations: 31.86 kB / 0.5267 GB, free: 11.71 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001048/0.5559, allocations: 103.3 kB / 0.5268 GB, free: 11.61 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001185/0.556, allocations: 72 kB / 0.5269 GB, free: 11.54 MB / 446.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 56 * Number of states: 0 () * Number of discrete variables: 14 (vin.counter,$PRE.vin.counter,v.counter,$PRE.v.counter,v.counter2,$PRE.v.counter2,v.T0,$PRE.v.T0,vin.counter2,$PRE.vin.counter2,vin.T0,$PRE.vin.T0,$whenCondition1,$whenCondition2) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (102): * Single equations (assignments): 98 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 4 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0008475/0.5569, allocations: 450.2 kB / 0.5273 GB, free: 11.09 MB / 446.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0004487/0.5573, allocations: 421.3 kB / 0.5277 GB, free: 10.68 MB / 446.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002858/0.5602, allocations: 1.211 MB / 0.5289 GB, free: 9.457 MB / 446.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.154e-05/0.5602, allocations: 9.922 kB / 0.5289 GB, free: 9.449 MB / 446.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.969e-06/0.5602, allocations: 0 / 0.5289 GB, free: 9.449 MB / 446.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.58e-06/0.5602, allocations: 0 / 0.5289 GB, free: 9.449 MB / 446.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003616/0.5638, allocations: 2.147 MB / 0.531 GB, free: 7.238 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 0.0001068/0.5639, allocations: 71.98 kB / 0.5311 GB, free: 7.168 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000511/0.5645, allocations: 87.86 kB / 0.5312 GB, free: 7.082 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 7.965e-06/0.5645, allocations: 8.062 kB / 0.5312 GB, free: 7.074 MB / 446.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.213e-05/0.5645, allocations: 32 kB / 0.5312 GB, free: 7.043 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.426e-06/0.5645, allocations: 0 / 0.5312 GB, free: 7.043 MB / 446.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.16e-06/0.5645, allocations: 7.984 kB / 0.5312 GB, free: 7.035 MB / 446.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002619/0.5672, allocations: 1.339 MB / 0.5325 GB, free: 5.668 MB / 446.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0008187/0.568, allocations: 0.5061 MB / 0.533 GB, free: 5.141 MB / 446.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002663/0.5682, allocations: 12.06 kB / 0.533 GB, free: 5.129 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0006781/0.5689, allocations: 31.95 kB / 0.5331 GB, free: 5.098 MB / 446.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001765/0.5691, allocations: 65.14 kB / 0.5331 GB, free: 5.035 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.315e-05/0.5692, allocations: 39.94 kB / 0.5332 GB, free: 4.996 MB / 446.1 MB Notification: Performance of sorting global known variables: time 0.00296/0.5721, allocations: 2.007 MB / 0.5351 GB, free: 2.996 MB / 446.1 MB Notification: Performance of sort global known variables: time 9e-08/0.5721, allocations: 0 / 0.5351 GB, free: 2.996 MB / 446.1 MB Notification: Performance of remove unused functions: time 0.001655/0.5738, allocations: 0.5969 MB / 0.5357 GB, free: 2.398 MB / 446.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 3 * Number of states: 2 (c1.vinternal,c2.vinternal) * Number of discrete variables: 8 ($whenCondition2,$whenCondition1,vin.T0,vin.counter,vin.counter2,v.T0,v.counter,v.counter2) * Number of discrete states: 4 (vin.counter2,v.counter2,vin.counter,v.counter) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (42): * Single equations (assignments): 32 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 4 * When equations: 6 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.001385/0.5752, allocations: 0.7874 MB / 0.5365 GB, free: 1.605 MB / 446.1 MB Notification: Performance of simCode: created initialization part: time 0.001824/0.577, allocations: 0.7748 MB / 0.5372 GB, free: 0.8047 MB / 446.1 MB Notification: Performance of simCode: created event and clocks part: time 4.929e-06/0.577, allocations: 0 / 0.5372 GB, free: 0.8047 MB / 446.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0008198/0.5778, allocations: 427.2 kB / 0.5376 GB, free: 372 kB / 446.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002851/0.5807, allocations: 0.6302 MB / 0.5383 GB, free: 15.74 MB / 462.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.007774/0.5884, allocations: 4.666 MB / 0.5428 GB, free: 11.02 MB / 462.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001434/0.5899, allocations: 1.714 MB / 0.5445 GB, free: 9.281 MB / 462.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003971/0.5903, allocations: 155.4 kB / 0.5446 GB, free: 9.129 MB / 462.1 MB Notification: Performance of SimCode: time 1.503e-06/0.5903, allocations: 3.938 kB / 0.5446 GB, free: 9.125 MB / 462.1 MB Notification: Performance of Templates: time 0.06393/0.6542, allocations: 38.81 MB / 0.5825 GB, free: 2.48 MB / 494.1 MB " [Timeout remaining time 659] make -j1 -f Modelica_4.1.0_Modelica.Electrical.Spice3.Examples.InvertersExtendedModel.makefile [Timeout 660] (rm -f Modelica_4.1.0_Modelica.Electrical.Spice3.Examples.InvertersExtendedModel.pipe ; mkfifo Modelica_4.1.0_Modelica.Electrical.Spice3.Examples.InvertersExtendedModel.pipe ; head -c 1048576 < Modelica_4.1.0_Modelica.Electrical.Spice3.Examples.InvertersExtendedModel.pipe >> ../files/Modelica_4.1.0_Modelica.Electrical.Spice3.Examples.InvertersExtendedModel.sim & ./Modelica_4.1.0_Modelica.Electrical.Spice3.Examples.InvertersExtendedModel -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_4.1.0_Modelica.Electrical.Spice3.Examples.InvertersExtendedModel.pipe 2>&1) [Timeout 480] diffSimulationResults("Modelica_4.1.0_Modelica.Electrical.Spice3.Examples.InvertersExtendedModel_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.1.0/Modelica/Electrical/Spice3/Examples/InvertersExtendedModel/InvertersExtendedModel.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_4.1.0_Modelica.Electrical.Spice3.Examples.InvertersExtendedModel.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: 11.703923355002189]