Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_3.2.3_cpp_Modelica.Electrical.Spice3.Examples.InvertersApartRecord.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo", uses=false) Using package ModelicaServices with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo) 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 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+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_cpp_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_cpp_Modelica.Electrical.Spice3.Examples.InvertersApartRecord") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.001314/0.001314, allocations: 178.9 kB / 16.72 MB, free: 4.961 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.467/1.467, allocations: 205.4 MB / 222.9 MB, free: 9.023 MB / 186.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.001113/0.001113, allocations: 89.53 kB / 271.2 MB, free: 8.246 MB / 218.7 MB Notification: Performance of FrontEnd - loaded program: time 0.000329/0.0003292, allocations: 8 kB / 327.5 MB, free: 15.89 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2201/0.2204, allocations: 47.57 MB / 375.1 MB, free: 45.41 MB / 298.7 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Spice3.Examples.InvertersApartRecord): time 0.00919/0.2297, allocations: 12.41 MB / 387.5 MB, free: 35.55 MB / 298.7 MB Notification: Performance of NFInst.instExpressions: time 0.01796/0.2477, allocations: 17.93 MB / 405.4 MB, free: 18.29 MB / 298.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.002951/0.2507, allocations: 31.81 kB / 405.4 MB, free: 18.25 MB / 298.7 MB Notification: Performance of NFTyping.typeComponents: time 0.003156/0.2539, allocations: 0.9369 MB / 406.4 MB, free: 17.31 MB / 298.7 MB Notification: Performance of NFTyping.typeBindings: time 0.006945/0.2608, allocations: 1.813 MB / 408.2 MB, free: 15.49 MB / 298.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0037/0.2645, allocations: 1.061 MB / 409.3 MB, free: 14.42 MB / 298.7 MB Notification: Performance of NFFlatten.flatten: time 0.008393/0.273, allocations: 5.923 MB / 415.2 MB, free: 8.477 MB / 298.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0008913/0.2739, allocations: 425.6 kB / 415.6 MB, free: 8.039 MB / 298.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001293/0.2752, allocations: 0.8512 MB / 416.5 MB, free: 7.184 MB / 298.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0008467/0.276, allocations: 0.9862 MB / 417.4 MB, free: 6.191 MB / 298.7 MB Notification: Performance of NFPackage.collectConstants: time 0.0001597/0.2762, allocations: 51.94 kB / 417.5 MB, free: 6.141 MB / 298.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.003308/0.2795, allocations: 1.081 MB / 418.6 MB, free: 5.059 MB / 298.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0002698/0.2798, allocations: 269.9 kB / 418.8 MB, free: 4.793 MB / 298.7 MB Notification: Performance of NFVerifyModel.verify: time 0.001278/0.2811, allocations: 1.295 MB / 420.1 MB, free: 3.484 MB / 298.7 MB Notification: Performance of NFConvertDAE.convert: time 0.002067/0.2832, allocations: 2.714 MB / 422.8 MB, free: 0.7617 MB / 298.7 MB Notification: Performance of FrontEnd - DAE generated: time 6.452e-06/0.2832, allocations: 0 / 422.8 MB, free: 0.7617 MB / 298.7 MB Notification: Performance of FrontEnd: time 2.554e-06/0.2832, allocations: 0 / 422.8 MB, free: 0.7617 MB / 298.7 MB Notification: Performance of Transformations before backend: time 3.612e-05/0.2833, allocations: 0 / 422.8 MB, free: 0.7617 MB / 298.7 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.004326/0.2876, allocations: 3.237 MB / 426.1 MB, free: 13.45 MB / 314.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.215e-05/0.2876, allocations: 16.02 kB / 426.1 MB, free: 13.43 MB / 314.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.000431/0.2881, allocations: 399.1 kB / 426.5 MB, free: 13.04 MB / 314.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.003582/0.2917, allocations: 2.449 MB / 428.9 MB, free: 10.52 MB / 314.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.28e-05/0.2917, allocations: 37 kB / 429 MB, free: 10.48 MB / 314.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.000117/0.2918, allocations: 55.89 kB / 429 MB, free: 10.43 MB / 314.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001316/0.2932, allocations: 0.75 MB / 429.8 MB, free: 9.672 MB / 314.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.401e-05/0.2932, allocations: 0 / 429.8 MB, free: 9.672 MB / 314.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.424e-05/0.2933, allocations: 20 kB / 429.8 MB, free: 9.652 MB / 314.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.07e-05/0.2933, allocations: 23.98 kB / 429.8 MB, free: 9.629 MB / 314.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001567/0.2949, allocations: 0.8592 MB / 430.7 MB, free: 8.762 MB / 314.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.004747/0.2996, allocations: 3.086 MB / 433.8 MB, free: 5.594 MB / 314.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001155/0.3008, allocations: 0.6142 MB / 434.4 MB, free: 4.969 MB / 314.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.000963/0.3018, allocations: 0.6712 MB / 435 MB, free: 4.289 MB / 314.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.02994/0.3317, allocations: 30.22 MB / 465.3 MB, free: 1.961 MB / 346.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0007665/0.3325, allocations: 385.6 kB / 465.6 MB, free: 1.574 MB / 346.7 MB Notification: Performance of pre-optimization done (n=49): time 2.625e-06/0.3325, allocations: 0 / 465.6 MB, free: 1.574 MB / 346.7 MB Notification: Performance of matching and sorting (n=49): time 0.002277/0.3348, allocations: 1.155 MB / 466.8 MB, free: 416 kB / 346.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.18e-05/0.3349, allocations: 59.41 kB / 466.9 MB, free: 344 kB / 346.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.003454/0.3384, allocations: 2.909 MB / 469.8 MB, free: 13.42 MB / 362.7 MB Notification: Performance of collectPreVariables (initialization): time 5.861e-05/0.3384, allocations: 37.7 kB / 469.8 MB, free: 13.38 MB / 362.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.001126/0.3396, allocations: 1.505 MB / 471.3 MB, free: 11.86 MB / 362.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.000138/0.3397, allocations: 165.7 kB / 471.5 MB, free: 11.7 MB / 362.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.102e-05/0.3398, allocations: 16 kB / 471.5 MB, free: 11.68 MB / 362.7 MB Notification: Performance of setup shared object (initialization): time 0.0001268/0.3399, allocations: 341.9 kB / 471.8 MB, free: 11.34 MB / 362.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0005824/0.3405, allocations: 261.9 kB / 472.1 MB, free: 11.09 MB / 362.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0007865/0.3413, allocations: 0.6255 MB / 472.7 MB, free: 10.29 MB / 362.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001579/0.3429, allocations: 0.9364 MB / 473.6 MB, free: 9.176 MB / 362.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 8.586e-06/0.3429, allocations: 4 kB / 473.6 MB, free: 9.172 MB / 362.7 MB Notification: Performance of matching and sorting (n=110) (initialization): time 0.002012/0.3449, allocations: 1.272 MB / 474.9 MB, free: 7.891 MB / 362.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.259e-05/0.3449, allocations: 12 kB / 474.9 MB, free: 7.879 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001033/0.3451, allocations: 83.98 kB / 475 MB, free: 7.797 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.865e-05/0.3451, allocations: 20 kB / 475 MB, free: 7.777 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0007136/0.3458, allocations: 215.9 kB / 475.2 MB, free: 7.566 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.241e-05/0.3458, allocations: 23.88 kB / 475.3 MB, free: 7.543 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0009509/0.3468, allocations: 115.1 kB / 475.4 MB, free: 7.43 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.000102/0.3469, allocations: 68 kB / 475.4 MB, free: 7.363 MB / 362.7 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 ($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 (102): * Single equations (assignments): 98 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 4 * 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.0007271/0.3476, allocations: 443.8 kB / 475.9 MB, free: 6.922 MB / 362.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003351/0.348, allocations: 383.3 kB / 476.2 MB, free: 6.543 MB / 362.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002956/0.351, allocations: 1.237 MB / 477.5 MB, free: 5.297 MB / 362.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.488e-06/0.351, allocations: 8 kB / 477.5 MB, free: 5.289 MB / 362.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.558e-06/0.351, allocations: 0 / 477.5 MB, free: 5.289 MB / 362.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.193e-06/0.351, allocations: 3.984 kB / 477.5 MB, free: 5.285 MB / 362.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003259/0.3543, allocations: 2.144 MB / 479.6 MB, free: 3.07 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 0.000119/0.3544, allocations: 71.98 kB / 479.7 MB, free: 3 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004647/0.3549, allocations: 95.92 kB / 479.8 MB, free: 2.906 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 7.264e-06/0.3549, allocations: 8.062 kB / 479.8 MB, free: 2.898 MB / 362.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.744e-05/0.355, allocations: 32 kB / 479.8 MB, free: 2.867 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.629e-06/0.355, allocations: 3.938 kB / 479.8 MB, free: 2.863 MB / 362.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.501e-06/0.355, allocations: 7.984 kB / 479.9 MB, free: 2.855 MB / 362.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002135/0.3571, allocations: 1.356 MB / 481.2 MB, free: 1.469 MB / 362.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0006487/0.3578, allocations: 480.2 kB / 481.7 MB, free: 0.9766 MB / 362.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002484/0.358, allocations: 8 kB / 481.7 MB, free: 0.9688 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0006495/0.3587, allocations: 44.03 kB / 481.7 MB, free: 0.9258 MB / 362.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001471/0.3589, allocations: 63.88 kB / 481.8 MB, free: 0.8633 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.175e-05/0.3589, allocations: 43.98 kB / 481.8 MB, free: 0.8203 MB / 362.7 MB Notification: Performance of sorting global known variables: time 0.002366/0.3613, allocations: 1.888 MB / 483.7 MB, free: 14.93 MB / 378.7 MB Notification: Performance of sort global known variables: time 2.61e-07/0.3613, allocations: 3.938 kB / 483.7 MB, free: 14.93 MB / 378.7 MB Notification: Performance of remove unused functions: time 0.00138/0.3627, allocations: 0.5894 MB / 484.3 MB, free: 14.34 MB / 378.7 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 (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.00109/0.3638, allocations: 0.7768 MB / 485.1 MB, free: 13.55 MB / 378.7 MB Notification: Performance of simCode: created initialization part: time 0.001594/0.3654, allocations: 0.8452 MB / 485.9 MB, free: 12.68 MB / 378.7 MB Notification: Performance of simCode: created event and clocks part: time 3.447e-06/0.3654, allocations: 0 / 485.9 MB, free: 12.68 MB / 378.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0007373/0.3662, allocations: 463.2 kB / 486.4 MB, free: 12.21 MB / 378.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001964/0.3681, allocations: 486.5 kB / 486.9 MB, free: 11.73 MB / 378.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00683/0.375, allocations: 4.992 MB / 491.9 MB, free: 6.695 MB / 378.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001156/0.3762, allocations: 1.665 MB / 493.5 MB, free: 5.004 MB / 378.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003732/0.3766, allocations: 155.4 kB / 493.7 MB, free: 4.852 MB / 378.7 MB Notification: Performance of SimCode: time 9.22e-07/0.3766, allocations: 0 / 493.7 MB, free: 4.852 MB / 378.7 MB Notification: Performance of Templates: time 0.2002/0.5767, allocations: 37.2 MB / 0.5184 GB, free: 116.3 MB / 394.7 MB make -j1 -f Modelica_3.2.3_cpp_Modelica.Electrical.Spice3.Examples.InvertersApartRecord.makefile (rm -f Modelica_3.2.3_cpp_Modelica.Electrical.Spice3.Examples.InvertersApartRecord.pipe ; mkfifo Modelica_3.2.3_cpp_Modelica.Electrical.Spice3.Examples.InvertersApartRecord.pipe ; head -c 1048576 < Modelica_3.2.3_cpp_Modelica.Electrical.Spice3.Examples.InvertersApartRecord.pipe >> ../files/Modelica_3.2.3_cpp_Modelica.Electrical.Spice3.Examples.InvertersApartRecord.sim & ./Modelica_3.2.3_cpp_Modelica.Electrical.Spice3.Examples.InvertersApartRecord --alarm=480 -emit_protected > Modelica_3.2.3_cpp_Modelica.Electrical.Spice3.Examples.InvertersApartRecord.pipe 2>&1) diffSimulationResults("Modelica_3.2.3_cpp_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","../files/Modelica_3.2.3_cpp_Modelica.Electrical.Spice3.Examples.InvertersApartRecord.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches