Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_3.2.3_Modelica.Electrical.Spice3.Examples.FourInverters.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo", uses=false) Using package Modelica with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+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.Spice3.Examples.FourInverters,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|mp1.S.v|mp2.S.v|mp3.S.v|mp4.S.v|v.p.v",fileNamePrefix="Modelica_3.2.3_Modelica.Electrical.Spice3.Examples.FourInverters") translateModel(Modelica.Electrical.Spice3.Examples.FourInverters,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|mp1.S.v|mp2.S.v|mp3.S.v|mp4.S.v|v.p.v",fileNamePrefix="Modelica_3.2.3_Modelica.Electrical.Spice3.Examples.FourInverters") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.00196/0.00196, allocations: 113.4 kB / 17.73 MB, free: 5.359 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.00263/0.00263, allocations: 184.1 kB / 18.66 MB, free: 4.438 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.428/1.428, allocations: 205.1 MB / 224.5 MB, free: 12.25 MB / 190.1 MB Notification: Modelica requested package Complex of version 3.2.3. Complex 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Modelica requested package ModelicaServices of version 3.2.3. ModelicaServices 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Performance of FrontEnd - loaded program: time 0.001229/0.001229, allocations: 55.92 kB / 328.5 MB, free: 3.316 MB / 270.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09097/0.09221, allocations: 46.62 MB / 375.1 MB, free: 4.586 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Spice3.Examples.FourInverters): time 0.2596/0.3518, allocations: 25.34 MB / 400.5 MB, free: 12.76 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.0283/0.3802, allocations: 21.34 MB / 421.8 MB, free: 12.77 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.006022/0.3862, allocations: 180.4 kB / 422 MB, free: 12.67 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.005414/0.3918, allocations: 1.727 MB / 423.7 MB, free: 11.35 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.01768/0.4095, allocations: 3.204 MB / 426.9 MB, free: 8.715 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.006476/0.416, allocations: 1.578 MB / 428.5 MB, free: 7.473 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.01909/0.4351, allocations: 12.39 MB / 440.9 MB, free: 13.66 MB / 366.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001529/0.4367, allocations: 0.867 MB / 441.8 MB, free: 12.76 MB / 366.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.003069/0.4397, allocations: 1.913 MB / 443.7 MB, free: 10.84 MB / 366.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.002762/0.4425, allocations: 2.057 MB / 445.7 MB, free: 8.77 MB / 366.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0003914/0.4429, allocations: 136 kB / 445.9 MB, free: 8.637 MB / 366.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.003965/0.4469, allocations: 1.222 MB / 447.1 MB, free: 7.414 MB / 366.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0005509/0.4475, allocations: 0.601 MB / 447.7 MB, free: 6.809 MB / 366.1 MB Notification: Performance of NFVerifyModel.verify: time 0.002764/0.4502, allocations: 2.635 MB / 450.3 MB, free: 4.156 MB / 366.1 MB Notification: Performance of NFConvertDAE.convert: time 0.008785/0.459, allocations: 6.677 MB / 457 MB, free: 13.45 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.392e-06/0.4591, allocations: 0 / 457 MB, free: 13.45 MB / 382.1 MB Notification: Performance of FrontEnd: time 1.393e-06/0.4591, allocations: 0 / 457 MB, free: 13.45 MB / 382.1 MB Notification: Performance of Transformations before backend: time 0.0001738/0.4593, allocations: 0.5625 kB / 457 MB, free: 13.45 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: 288 * Number of variables: 288 Notification: Performance of Generate backend data structure: time 0.01028/0.4696, allocations: 6.725 MB / 463.7 MB, free: 6.629 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.948e-05/0.4696, allocations: 11.97 kB / 463.7 MB, free: 6.617 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0008691/0.4705, allocations: 0.7487 MB / 464.5 MB, free: 5.859 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.006637/0.4771, allocations: 4.618 MB / 469.1 MB, free: 1.152 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 6.614e-05/0.4772, allocations: 66 kB / 469.2 MB, free: 1.086 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002232/0.4775, allocations: 111.8 kB / 469.3 MB, free: 0.9766 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002269/0.4797, allocations: 1.301 MB / 470.6 MB, free: 15.66 MB / 398.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.981e-05/0.4798, allocations: 0 / 470.6 MB, free: 15.66 MB / 398.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001109/0.4799, allocations: 36 kB / 470.6 MB, free: 15.62 MB / 398.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.606e-05/0.4799, allocations: 43.92 kB / 470.7 MB, free: 15.58 MB / 398.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002569/0.4825, allocations: 1.484 MB / 472.1 MB, free: 14.1 MB / 398.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01013/0.4926, allocations: 5.641 MB / 477.8 MB, free: 8.352 MB / 398.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001685/0.4944, allocations: 0.989 MB / 478.8 MB, free: 7.352 MB / 398.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001586/0.496, allocations: 1.22 MB / 480 MB, free: 6.129 MB / 398.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.06908/0.5651, allocations: 59.93 MB / 0.5273 GB, free: 2.016 MB / 462.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001594/0.5667, allocations: 0.5559 MB / 0.5278 GB, free: 1.453 MB / 462.1 MB Notification: Performance of pre-optimization done (n=85): time 3.867e-06/0.5667, allocations: 0 / 0.5278 GB, free: 1.453 MB / 462.1 MB Notification: Performance of matching and sorting (n=85): time 0.005589/0.5723, allocations: 1.879 MB / 0.5296 GB, free: 15.55 MB / 478.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.096e-05/0.5724, allocations: 67.95 kB / 0.5297 GB, free: 15.48 MB / 478.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.01085/0.5833, allocations: 5.624 MB / 0.5352 GB, free: 9.883 MB / 478.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0002058/0.5835, allocations: 41.7 kB / 0.5352 GB, free: 9.836 MB / 478.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.003636/0.5872, allocations: 2.943 MB / 0.5381 GB, free: 6.879 MB / 478.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0004691/0.5877, allocations: 291.9 kB / 0.5384 GB, free: 6.59 MB / 478.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0007664/0.5884, allocations: 422.5 kB / 0.5388 GB, free: 6.172 MB / 478.1 MB Notification: Performance of setup shared object (initialization): time 0.000137/0.5886, allocations: 309 kB / 0.5391 GB, free: 5.867 MB / 478.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001321/0.5899, allocations: 399.8 kB / 0.5395 GB, free: 5.477 MB / 478.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.002052/0.592, allocations: 1.091 MB / 0.5405 GB, free: 4.051 MB / 478.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.003614/0.5956, allocations: 1.611 MB / 0.5421 GB, free: 2.109 MB / 478.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.773e-05/0.5957, allocations: 11.94 kB / 0.5421 GB, free: 2.098 MB / 478.1 MB Notification: Performance of matching and sorting (n=200) (initialization): time 0.2611/0.8568, allocations: 2.212 MB / 0.5443 GB, free: 156.5 MB / 478.1 MB Notification: Performance of prepare postOptimizeDAE: time 4.555e-05/0.8569, allocations: 15.98 kB / 0.5443 GB, free: 156.5 MB / 478.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0003957/0.8573, allocations: 160.3 kB / 0.5445 GB, free: 156.5 MB / 478.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 6.807e-05/0.8574, allocations: 34.44 kB / 0.5445 GB, free: 156.5 MB / 478.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002094/0.8595, allocations: 362.1 kB / 0.5448 GB, free: 156.5 MB / 478.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.008e-05/0.8596, allocations: 50.02 kB / 0.5449 GB, free: 156.5 MB / 478.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.003582/0.8632, allocations: 185.2 kB / 0.5451 GB, free: 156.5 MB / 478.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0003818/0.8636, allocations: 122.8 kB / 0.5452 GB, free: 156.5 MB / 478.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 108 * 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 (184): * Single equations (assignments): 176 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 8 * 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.00237/0.866, allocations: 0.7186 MB / 0.5459 GB, free: 156.3 MB / 478.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.00153/0.8675, allocations: 0.7195 MB / 0.5466 GB, free: 156.3 MB / 478.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.006358/0.8739, allocations: 2.169 MB / 0.5487 GB, free: 156.2 MB / 478.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.854e-05/0.8739, allocations: 9 kB / 0.5487 GB, free: 156.2 MB / 478.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.245e-06/0.8739, allocations: 2.25 kB / 0.5487 GB, free: 156.2 MB / 478.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.444e-05/0.8739, allocations: 7.312 kB / 0.5487 GB, free: 156.2 MB / 478.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.009081/0.883, allocations: 3.622 MB / 0.5522 GB, free: 155.8 MB / 478.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 0.0002686/0.8834, allocations: 142.1 kB / 0.5524 GB, free: 155.8 MB / 478.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001136/0.8845, allocations: 154 kB / 0.5525 GB, free: 155.8 MB / 478.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.394e-05/0.8845, allocations: 5.875 kB / 0.5525 GB, free: 155.8 MB / 478.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001708/0.8847, allocations: 60.7 kB / 0.5526 GB, free: 155.8 MB / 478.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.185e-05/0.8847, allocations: 2.5 kB / 0.5526 GB, free: 155.8 MB / 478.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.42e-06/0.8848, allocations: 2.109 kB / 0.5526 GB, free: 155.8 MB / 478.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.00697/0.8917, allocations: 2.163 MB / 0.5547 GB, free: 154.9 MB / 478.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.00266/0.8944, allocations: 0.8208 MB / 0.5555 GB, free: 154.3 MB / 478.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0008607/0.8953, allocations: 12.16 kB / 0.5555 GB, free: 154.3 MB / 478.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001978/0.8973, allocations: 39.25 kB / 0.5556 GB, free: 154.3 MB / 478.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003853/0.8977, allocations: 100.7 kB / 0.5557 GB, free: 154.3 MB / 478.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002151/0.8979, allocations: 71.02 kB / 0.5557 GB, free: 154.3 MB / 478.1 MB Notification: Performance of sorting global known variables: time 0.009684/0.9076, allocations: 3.634 MB / 0.5593 GB, free: 153.1 MB / 478.1 MB Notification: Performance of sort global known variables: time 6.61e-07/0.9077, allocations: 3.562 kB / 0.5593 GB, free: 153.1 MB / 478.1 MB Notification: Performance of remove unused functions: time 0.004577/0.9122, allocations: 1.086 MB / 0.5603 GB, free: 153 MB / 478.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 3 * Number of states: 4 (c1.vinternal,c2.vinternal,c3.vinternal,c4.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 (70): * Single equations (assignments): 56 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 8 * 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.002579/0.9148, allocations: 1.19 MB / 0.5615 GB, free: 152.8 MB / 478.1 MB Notification: Performance of simCode: created initialization part: time 0.003954/0.9188, allocations: 1.436 MB / 0.5629 GB, free: 152.2 MB / 478.1 MB Notification: Performance of simCode: created event and clocks part: time 5.971e-06/0.9188, allocations: 0 / 0.5629 GB, free: 152.2 MB / 478.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001639/0.9205, allocations: 0.7719 MB / 0.5637 GB, free: 151.8 MB / 478.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.005894/0.9264, allocations: 0.9886 MB / 0.5646 GB, free: 151.3 MB / 478.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01522/0.9416, allocations: 8.134 MB / 0.5726 GB, free: 147.3 MB / 478.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.002326/0.944, allocations: 2.6 MB / 0.5751 GB, free: 146 MB / 478.1 MB Notification: Performance of simCode: alias equations: time 0.003091/0.9471, allocations: 0.6901 MB / 0.5758 GB, free: 145.5 MB / 478.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0005081/0.9477, allocations: 283.4 kB / 0.576 GB, free: 145.2 MB / 478.1 MB Notification: Performance of SimCode: time 8.72e-07/0.9477, allocations: 0 / 0.576 GB, free: 145.2 MB / 478.1 MB Notification: Performance of Templates: time 0.08119/1.029, allocations: 55.6 MB / 0.6304 GB, free: 90.07 MB / 478.1 MB make -j1 -f Modelica_3.2.3_Modelica.Electrical.Spice3.Examples.FourInverters.makefile (rm -f Modelica_3.2.3_Modelica.Electrical.Spice3.Examples.FourInverters.pipe ; mkfifo Modelica_3.2.3_Modelica.Electrical.Spice3.Examples.FourInverters.pipe ; head -c 1048576 < Modelica_3.2.3_Modelica.Electrical.Spice3.Examples.FourInverters.pipe >> ../files/Modelica_3.2.3_Modelica.Electrical.Spice3.Examples.FourInverters.sim & ./Modelica_3.2.3_Modelica.Electrical.Spice3.Examples.FourInverters -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_3.2.3_Modelica.Electrical.Spice3.Examples.FourInverters.pipe 2>&1) diffSimulationResults("Modelica_3.2.3_Modelica.Electrical.Spice3.Examples.FourInverters_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v3.2.3+build.4/Modelica/Electrical/Spice3/Examples/FourInverters/FourInverters.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_3.2.3_Modelica.Electrical.Spice3.Examples.FourInverters.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches