Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_3.2.3_Modelica.Electrical.Spice3.Examples.InvertersApartRecord.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.InvertersApartRecord,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|mp1.S.v|mp2.S.v|v.p.v",fileNamePrefix="Modelica_3.2.3_Modelica.Electrical.Spice3.Examples.InvertersApartRecord") translateModel(Modelica.Electrical.Spice3.Examples.InvertersApartRecord,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|mp1.S.v|mp2.S.v|v.p.v",fileNamePrefix="Modelica_3.2.3_Modelica.Electrical.Spice3.Examples.InvertersApartRecord") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001057/0.001058, allocations: 114.5 kB / 17.73 MB, free: 5.34 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.00113/0.00113, allocations: 183 kB / 18.66 MB, free: 4.414 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.393/1.393, allocations: 205.1 MB / 224.5 MB, free: 12.24 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.002233/0.002233, allocations: 47.94 kB / 328.5 MB, free: 3.305 MB / 270.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09963/0.1019, allocations: 46.61 MB / 375.1 MB, free: 4.582 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Spice3.Examples.InvertersApartRecord): time 0.2146/0.3166, allocations: 14.02 MB / 389.2 MB, free: 4.73 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.02408/0.3407, allocations: 19.73 MB / 408.9 MB, free: 6.504 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.004239/0.3449, allocations: 91.41 kB / 409 MB, free: 6.457 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.004161/0.3492, allocations: 1.201 MB / 410.2 MB, free: 5.809 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.01004/0.3593, allocations: 2.263 MB / 412.4 MB, free: 4.395 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.005636/0.3649, allocations: 1.387 MB / 413.8 MB, free: 3.578 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.01124/0.3762, allocations: 6.35 MB / 420.2 MB, free: 0.6367 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0008358/0.3771, allocations: 457.2 kB / 420.6 MB, free: 420 kB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001889/0.379, allocations: 1.002 MB / 421.6 MB, free: 15.95 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001301/0.3803, allocations: 1.094 MB / 422.7 MB, free: 15.3 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0002142/0.3805, allocations: 77.84 kB / 422.8 MB, free: 15.3 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.004834/0.3853, allocations: 1.157 MB / 424 MB, free: 14.67 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0004496/0.3858, allocations: 333.6 kB / 424.3 MB, free: 14.34 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.002107/0.3879, allocations: 1.378 MB / 425.7 MB, free: 12.95 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0069/0.3948, allocations: 3.798 MB / 429.5 MB, free: 9.141 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.591e-06/0.3949, allocations: 0 / 429.5 MB, free: 9.141 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.784e-06/0.3949, allocations: 0 / 429.5 MB, free: 9.141 MB / 350.1 MB Notification: Performance of Transformations before backend: time 4.377e-05/0.3949, allocations: 0 / 429.5 MB, free: 9.141 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: 154 * Number of variables: 154 Notification: Performance of Generate backend data structure: time 0.005175/0.4001, allocations: 3.685 MB / 433.1 MB, free: 5.379 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.555e-05/0.4002, allocations: 12.03 kB / 433.2 MB, free: 5.367 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0005251/0.4007, allocations: 399.1 kB / 433.5 MB, free: 4.973 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.003499/0.4042, allocations: 2.434 MB / 436 MB, free: 2.465 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.776e-05/0.4043, allocations: 40.94 kB / 436 MB, free: 2.422 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001276/0.4044, allocations: 55.98 kB / 436.1 MB, free: 2.367 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001478/0.4059, allocations: 0.7304 MB / 436.8 MB, free: 1.629 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.508e-05/0.4059, allocations: 0 / 436.8 MB, free: 1.629 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.52e-05/0.406, allocations: 16 kB / 436.8 MB, free: 1.613 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.462e-05/0.4061, allocations: 23.98 kB / 436.8 MB, free: 1.59 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001591/0.4077, allocations: 0.8163 MB / 437.7 MB, free: 0.7773 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.005317/0.413, allocations: 3.071 MB / 440.7 MB, free: 13.62 MB / 366.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001231/0.4143, allocations: 0.5751 MB / 441.3 MB, free: 13.04 MB / 366.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001056/0.4153, allocations: 0.6447 MB / 441.9 MB, free: 12.39 MB / 366.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.02976/0.4451, allocations: 30.17 MB / 472.1 MB, free: 10.11 MB / 398.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0007746/0.4459, allocations: 369.4 kB / 472.5 MB, free: 9.738 MB / 398.1 MB Notification: Performance of pre-optimization done (n=49): time 2.906e-06/0.4459, allocations: 0 / 472.5 MB, free: 9.738 MB / 398.1 MB Notification: Performance of matching and sorting (n=49): time 0.002393/0.4483, allocations: 1.097 MB / 473.6 MB, free: 8.633 MB / 398.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.388e-05/0.4484, allocations: 63.39 kB / 473.6 MB, free: 8.559 MB / 398.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.003571/0.452, allocations: 2.948 MB / 476.6 MB, free: 5.602 MB / 398.1 MB Notification: Performance of collectPreVariables (initialization): time 6.29e-05/0.4521, allocations: 33.7 kB / 476.6 MB, free: 5.562 MB / 398.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.001277/0.4533, allocations: 1.497 MB / 478.1 MB, free: 4.055 MB / 398.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001479/0.4535, allocations: 165.7 kB / 478.3 MB, free: 3.891 MB / 398.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0003136/0.4538, allocations: 242.1 kB / 478.5 MB, free: 3.648 MB / 398.1 MB Notification: Performance of setup shared object (initialization): time 0.0001242/0.454, allocations: 334 kB / 478.8 MB, free: 3.316 MB / 398.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0005871/0.4546, allocations: 245.8 kB / 479.1 MB, free: 3.074 MB / 398.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0008146/0.4554, allocations: 0.597 MB / 479.7 MB, free: 2.305 MB / 398.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001519/0.4569, allocations: 0.9013 MB / 480.6 MB, free: 1.23 MB / 398.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.763e-05/0.4569, allocations: 4 kB / 480.6 MB, free: 1.227 MB / 398.1 MB Notification: Performance of matching and sorting (n=110) (initialization): time 0.002337/0.4593, allocations: 1.233 MB / 481.8 MB, free: 15.98 MB / 414.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.399e-05/0.4593, allocations: 12 kB / 481.8 MB, free: 15.97 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001149/0.4594, allocations: 80 kB / 481.9 MB, free: 15.89 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 3.408e-05/0.4595, allocations: 16 kB / 481.9 MB, free: 15.88 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0007321/0.4602, allocations: 208 kB / 482.1 MB, free: 15.67 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.574e-05/0.4603, allocations: 27.92 kB / 482.2 MB, free: 15.64 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0009479/0.4612, allocations: 103.1 kB / 482.3 MB, free: 15.54 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001138/0.4613, allocations: 65.48 kB / 482.3 MB, free: 15.48 MB / 414.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.0006983/0.462, allocations: 445.4 kB / 482.8 MB, free: 15.04 MB / 414.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003376/0.4624, allocations: 383.3 kB / 483.1 MB, free: 14.66 MB / 414.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002612/0.465, allocations: 1.211 MB / 484.3 MB, free: 13.44 MB / 414.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.866e-06/0.465, allocations: 4 kB / 484.3 MB, free: 13.43 MB / 414.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.317e-06/0.465, allocations: 0 / 484.3 MB, free: 13.43 MB / 414.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.054e-06/0.465, allocations: 11.81 kB / 484.4 MB, free: 13.43 MB / 414.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003183/0.4682, allocations: 2.108 MB / 486.5 MB, free: 11.25 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 0.0001067/0.4684, allocations: 68 kB / 486.5 MB, free: 11.18 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004977/0.4689, allocations: 91.84 kB / 486.6 MB, free: 11.09 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 6.372e-06/0.4689, allocations: 4 kB / 486.6 MB, free: 11.09 MB / 414.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.66e-05/0.4689, allocations: 32 kB / 486.7 MB, free: 11.05 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.387e-06/0.469, allocations: 0 / 486.7 MB, free: 11.05 MB / 414.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.408e-06/0.469, allocations: 8.062 kB / 486.7 MB, free: 11.05 MB / 414.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002204/0.4712, allocations: 1.291 MB / 487.9 MB, free: 9.727 MB / 414.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0006402/0.4718, allocations: 484.2 kB / 488.4 MB, free: 9.23 MB / 414.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002836/0.4721, allocations: 11.98 kB / 488.4 MB, free: 9.219 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0006808/0.4728, allocations: 31.97 kB / 488.5 MB, free: 9.188 MB / 414.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001626/0.473, allocations: 60.02 kB / 488.5 MB, free: 9.129 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.62e-05/0.4731, allocations: 47.86 kB / 488.6 MB, free: 9.082 MB / 414.1 MB Notification: Performance of sorting global known variables: time 0.002394/0.4755, allocations: 1.916 MB / 490.5 MB, free: 7.168 MB / 414.1 MB Notification: Performance of sort global known variables: time 1.4e-07/0.4755, allocations: 0 / 490.5 MB, free: 7.168 MB / 414.1 MB Notification: Performance of remove unused functions: time 0.00136/0.4768, allocations: 0.5894 MB / 491.1 MB, free: 6.578 MB / 414.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.001109/0.478, allocations: 0.7806 MB / 491.9 MB, free: 5.789 MB / 414.1 MB Notification: Performance of simCode: created initialization part: time 0.001636/0.4796, allocations: 0.8096 MB / 492.7 MB, free: 4.953 MB / 414.1 MB Notification: Performance of simCode: created event and clocks part: time 2.916e-06/0.4796, allocations: 0 / 492.7 MB, free: 4.953 MB / 414.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0007782/0.4804, allocations: 451.8 kB / 493.1 MB, free: 4.488 MB / 414.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.00171/0.4821, allocations: 0.5145 MB / 493.6 MB, free: 3.973 MB / 414.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.006009/0.4881, allocations: 4.318 MB / 497.9 MB, free: 15.62 MB / 430.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001136/0.4893, allocations: 1.669 MB / 499.6 MB, free: 13.92 MB / 430.1 MB Notification: Performance of simCode: alias equations: time 0.00095/0.4903, allocations: 361.3 kB / 500 MB, free: 13.56 MB / 430.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002251/0.4905, allocations: 151.4 kB / 0.4884 GB, free: 13.41 MB / 430.1 MB Notification: Performance of SimCode: time 8.81e-07/0.4905, allocations: 0 / 0.4884 GB, free: 13.41 MB / 430.1 MB Notification: Performance of Templates: time 0.05687/0.5474, allocations: 31.38 MB / 0.519 GB, free: 13.98 MB / 462.1 MB make -j1 -f Modelica_3.2.3_Modelica.Electrical.Spice3.Examples.InvertersApartRecord.makefile (rm -f Modelica_3.2.3_Modelica.Electrical.Spice3.Examples.InvertersApartRecord.pipe ; mkfifo Modelica_3.2.3_Modelica.Electrical.Spice3.Examples.InvertersApartRecord.pipe ; head -c 1048576 < Modelica_3.2.3_Modelica.Electrical.Spice3.Examples.InvertersApartRecord.pipe >> ../files/Modelica_3.2.3_Modelica.Electrical.Spice3.Examples.InvertersApartRecord.sim & ./Modelica_3.2.3_Modelica.Electrical.Spice3.Examples.InvertersApartRecord -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_3.2.3_Modelica.Electrical.Spice3.Examples.InvertersApartRecord.pipe 2>&1) diffSimulationResults("Modelica_3.2.3_Modelica.Electrical.Spice3.Examples.InvertersApartRecord_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v3.2.3+build.4/Modelica/Electrical/Spice3/Examples/InvertersApartRecord/InvertersApartRecord.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_3.2.3_Modelica.Electrical.Spice3.Examples.InvertersApartRecord.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches