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.0009887/0.0009889, allocations: 92.03 kB / 16.95 MB, free: 6.441 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.001084/0.001084, allocations: 181.2 kB / 17.84 MB, free: 6.008 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.577/1.577, allocations: 205.4 MB / 224 MB, free: 13.15 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.0004608/0.0004608, allocations: 20 kB / 280.8 MB, free: 3.742 MB / 222.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1073/0.1077, allocations: 47.58 MB / 328.4 MB, free: 4.086 MB / 270.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Spice3.Examples.FourInverters): time 0.02058/0.1283, allocations: 22.49 MB / 350.8 MB, free: 13.53 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.02682/0.1553, allocations: 19.5 MB / 370.3 MB, free: 9.973 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.005242/0.1606, allocations: 63.62 kB / 370.4 MB, free: 9.91 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.004352/0.1649, allocations: 1.239 MB / 371.6 MB, free: 8.664 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 0.01193/0.1769, allocations: 2.584 MB / 374.2 MB, free: 6.062 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.005249/0.1822, allocations: 1.198 MB / 375.4 MB, free: 4.859 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.2099/0.3921, allocations: 11.56 MB / 387 MB, free: 14.86 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.00226/0.3945, allocations: 0.795 MB / 387.8 MB, free: 14.58 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.004168/0.3986, allocations: 1.6 MB / 389.4 MB, free: 14.58 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.004223/0.4029, allocations: 1.87 MB / 391.2 MB, free: 14.35 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0006166/0.4035, allocations: 81.53 kB / 391.3 MB, free: 14.35 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.005666/0.4092, allocations: 1.107 MB / 392.4 MB, free: 14.33 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0006425/0.4098, allocations: 0.5033 MB / 392.9 MB, free: 14.1 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 0.002556/0.4124, allocations: 1.179 MB / 394.1 MB, free: 13.84 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.006383/0.4188, allocations: 4.814 MB / 398.9 MB, free: 13.17 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.021e-06/0.4188, allocations: 0 / 398.9 MB, free: 13.17 MB / 318.1 MB Notification: Performance of FrontEnd: time 2.715e-06/0.4188, allocations: 0 / 398.9 MB, free: 13.17 MB / 318.1 MB Notification: Performance of Transformations before backend: time 0.000179/0.419, allocations: 0 / 398.9 MB, free: 13.17 MB / 318.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.008713/0.4277, allocations: 5.9 MB / 404.8 MB, free: 9.812 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.632e-05/0.4278, allocations: 8.531 kB / 404.8 MB, free: 9.812 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0008127/0.4286, allocations: 0.7534 MB / 405.6 MB, free: 9.418 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.005859/0.4345, allocations: 4.333 MB / 409.9 MB, free: 7.66 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.293e-05/0.4345, allocations: 68.19 kB / 410 MB, free: 7.652 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001983/0.4347, allocations: 100 kB / 410.1 MB, free: 7.648 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001978/0.4367, allocations: 1.314 MB / 411.4 MB, free: 7.305 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.996e-05/0.4368, allocations: 0 / 411.4 MB, free: 7.305 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001136/0.4369, allocations: 34.38 kB / 411.4 MB, free: 7.305 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.047e-05/0.4369, allocations: 40.16 kB / 411.5 MB, free: 7.297 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.00208/0.439, allocations: 1.528 MB / 413 MB, free: 6.438 MB / 318.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.007915/0.4469, allocations: 5.673 MB / 418.7 MB, free: 2.484 MB / 318.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001396/0.4484, allocations: 1.029 MB / 419.7 MB, free: 1.852 MB / 318.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001339/0.4497, allocations: 1.245 MB / 420.9 MB, free: 1.168 MB / 318.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0618/0.5115, allocations: 59.99 MB / 480.9 MB, free: 1.676 MB / 382.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001076/0.5126, allocations: 0.5728 MB / 481.5 MB, free: 1.207 MB / 382.1 MB Notification: Performance of pre-optimization done (n=85): time 3.757e-06/0.5127, allocations: 0 / 481.5 MB, free: 1.207 MB / 382.1 MB Notification: Performance of matching and sorting (n=85): time 0.004213/0.5169, allocations: 1.945 MB / 483.5 MB, free: 15.55 MB / 398.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.739e-05/0.517, allocations: 63.95 kB / 483.5 MB, free: 15.48 MB / 398.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.009378/0.5263, allocations: 5.56 MB / 489.1 MB, free: 11.09 MB / 398.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0002241/0.5266, allocations: 37.7 kB / 489.1 MB, free: 11.05 MB / 398.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.003174/0.5298, allocations: 2.938 MB / 492 MB, free: 8.102 MB / 398.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0004207/0.5302, allocations: 293.5 kB / 492.3 MB, free: 7.82 MB / 398.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001174/0.5304, allocations: 32 kB / 492.4 MB, free: 7.789 MB / 398.1 MB Notification: Performance of setup shared object (initialization): time 0.0001585/0.5305, allocations: 369.6 kB / 492.7 MB, free: 7.426 MB / 398.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0009837/0.5315, allocations: 423.8 kB / 493.1 MB, free: 7.016 MB / 398.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001429/0.533, allocations: 1.105 MB / 494.2 MB, free: 5.582 MB / 398.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001254/0.5342, allocations: 0.5713 MB / 494.8 MB, free: 5.016 MB / 398.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.785e-05/0.5343, allocations: 8 kB / 494.8 MB, free: 5.008 MB / 398.1 MB Notification: Performance of matching and sorting (n=200) (initialization): time 0.004789/0.5391, allocations: 2.241 MB / 497.1 MB, free: 2.762 MB / 398.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.591e-05/0.5391, allocations: 16 kB / 497.1 MB, free: 2.746 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0002339/0.5393, allocations: 164 kB / 497.2 MB, free: 2.586 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 4.62e-05/0.5394, allocations: 36 kB / 497.3 MB, free: 2.551 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001196/0.5406, allocations: 371.9 kB / 497.6 MB, free: 2.188 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.674e-05/0.5407, allocations: 51.8 kB / 497.7 MB, free: 2.137 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002853/0.5435, allocations: 200.6 kB / 497.9 MB, free: 1.941 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002465/0.5438, allocations: 128 kB / 498 MB, free: 1.816 MB / 398.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 ($PRE.vin.counter,vin.counter,$PRE.v.counter,v.counter,$whenCondition2,$whenCondition1,$PRE.vin.T0,vin.T0,$PRE.vin.counter2,vin.counter2,$PRE.v.T0,v.T0,$PRE.v.counter2,v.counter2) * 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 (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.001788/0.5456, allocations: 0.7121 MB / 498.7 MB, free: 1.094 MB / 398.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.00148/0.5471, allocations: 0.7179 MB / 499.4 MB, free: 376 kB / 398.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.005994/0.5531, allocations: 2.213 MB / 0.4899 GB, free: 14.15 MB / 414.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.202e-05/0.5531, allocations: 8 kB / 0.4899 GB, free: 14.14 MB / 414.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.083e-06/0.5531, allocations: 0 / 0.4899 GB, free: 14.14 MB / 414.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.158e-05/0.5531, allocations: 7.984 kB / 0.4899 GB, free: 14.14 MB / 414.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.007444/0.5606, allocations: 3.649 MB / 0.4935 GB, free: 10.43 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 0.0002128/0.5608, allocations: 140 kB / 0.4936 GB, free: 10.3 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.00073/0.5616, allocations: 175.6 kB / 0.4938 GB, free: 10.13 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.003e-05/0.5616, allocations: 4 kB / 0.4938 GB, free: 10.12 MB / 414.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9e-05/0.5617, allocations: 56 kB / 0.4938 GB, free: 10.07 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.271e-05/0.5617, allocations: 11.94 kB / 0.4938 GB, free: 10.06 MB / 414.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.006e-06/0.5617, allocations: 0 / 0.4938 GB, free: 10.06 MB / 414.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.004296/0.566, allocations: 2.216 MB / 0.496 GB, free: 7.812 MB / 414.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001783/0.5678, allocations: 0.8123 MB / 0.4968 GB, free: 6.973 MB / 414.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0005265/0.5683, allocations: 16 kB / 0.4968 GB, free: 6.957 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001095/0.5694, allocations: 56.25 kB / 0.4969 GB, free: 6.906 MB / 414.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002154/0.5697, allocations: 96.44 kB / 0.497 GB, free: 6.812 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001518/0.5698, allocations: 71.98 kB / 0.497 GB, free: 6.742 MB / 414.1 MB Notification: Performance of sorting global known variables: time 0.006125/0.576, allocations: 3.563 MB / 0.5005 GB, free: 3.211 MB / 414.1 MB Notification: Performance of sort global known variables: time 3.61e-07/0.576, allocations: 0 / 0.5005 GB, free: 3.211 MB / 414.1 MB Notification: Performance of remove unused functions: time 0.003578/0.5796, allocations: 1.081 MB / 0.5016 GB, free: 2.129 MB / 414.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 (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.001756/0.5813, allocations: 1.127 MB / 0.5027 GB, free: 1.211 MB / 414.1 MB Notification: Performance of simCode: created initialization part: time 0.002608/0.584, allocations: 1.467 MB / 0.5041 GB, free: 15.69 MB / 430.1 MB Notification: Performance of simCode: created event and clocks part: time 3.346e-06/0.584, allocations: 0 / 0.5041 GB, free: 15.69 MB / 430.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001203/0.5852, allocations: 0.7942 MB / 0.5049 GB, free: 14.85 MB / 430.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.004158/0.5894, allocations: 0.9448 MB / 0.5058 GB, free: 13.91 MB / 430.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01184/0.6012, allocations: 9.231 MB / 0.5148 GB, free: 4.641 MB / 430.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001857/0.6031, allocations: 2.604 MB / 0.5174 GB, free: 2.008 MB / 430.1 MB Notification: Performance of simCode: alias equations: time 0.002521/0.6056, allocations: 0.685 MB / 0.518 GB, free: 1.32 MB / 430.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003953/0.606, allocations: 291.4 kB / 0.5183 GB, free: 1.035 MB / 430.1 MB Notification: Performance of SimCode: time 1.293e-06/0.606, allocations: 0 / 0.5183 GB, free: 1.035 MB / 430.1 MB Notification: Performance of Templates: time 0.3055/0.9116, allocations: 51.91 MB / 0.569 GB, free: 121.4 MB / 446.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","../files/Modelica_3.2.3_Modelica.Electrical.Spice3.Examples.FourInverters.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches