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.001073/0.001073, allocations: 178 kB / 16.41 MB, free: 5.707 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.317/1.317, allocations: 205.4 MB / 222.5 MB, free: 9.109 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.0007678/0.000768, allocations: 86.11 kB / 270.9 MB, free: 8.355 MB / 218.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0002853/0.0002853, allocations: 12 kB / 327 MB, free: 200 kB / 266.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2248/0.2251, allocations: 47.57 MB / 374.5 MB, free: 45.41 MB / 298.7 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Spice3.Examples.InvertersApartRecord): time 0.009928/0.2351, allocations: 12.4 MB / 386.9 MB, free: 35.59 MB / 298.7 MB Notification: Performance of NFInst.instExpressions: time 0.01736/0.2525, allocations: 17.94 MB / 404.9 MB, free: 18.44 MB / 298.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.002463/0.255, allocations: 31.81 kB / 404.9 MB, free: 18.41 MB / 298.7 MB Notification: Performance of NFTyping.typeComponents: time 0.002928/0.258, allocations: 0.933 MB / 405.9 MB, free: 17.47 MB / 298.7 MB Notification: Performance of NFTyping.typeBindings: time 0.006651/0.2646, allocations: 1.809 MB / 407.7 MB, free: 15.65 MB / 298.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.003869/0.2685, allocations: 1.065 MB / 408.7 MB, free: 14.58 MB / 298.7 MB Notification: Performance of NFFlatten.flatten: time 0.007967/0.2765, allocations: 5.927 MB / 414.7 MB, free: 8.629 MB / 298.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0008497/0.2774, allocations: 420.5 kB / 415.1 MB, free: 8.191 MB / 298.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001178/0.2786, allocations: 0.8395 MB / 415.9 MB, free: 7.348 MB / 298.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0008712/0.2794, allocations: 0.994 MB / 416.9 MB, free: 6.348 MB / 298.7 MB Notification: Performance of NFPackage.collectConstants: time 0.0001498/0.2796, allocations: 44 kB / 416.9 MB, free: 6.305 MB / 298.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.003561/0.2832, allocations: 1.066 MB / 418 MB, free: 5.238 MB / 298.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0002177/0.2834, allocations: 277.9 kB / 418.3 MB, free: 4.965 MB / 298.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0006763/0.2841, allocations: 0.6287 MB / 418.9 MB, free: 4.328 MB / 298.7 MB Notification: Performance of NFConvertDAE.convert: time 0.001965/0.2861, allocations: 2.714 MB / 421.6 MB, free: 1.605 MB / 298.7 MB Notification: Performance of FrontEnd - DAE generated: time 4.448e-06/0.2861, allocations: 0 / 421.6 MB, free: 1.605 MB / 298.7 MB Notification: Performance of FrontEnd: time 2.044e-06/0.2861, allocations: 0 / 421.6 MB, free: 1.605 MB / 298.7 MB Notification: Performance of Transformations before backend: time 3.124e-05/0.2861, allocations: 0 / 421.6 MB, free: 1.605 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.004208/0.2903, allocations: 3.272 MB / 424.9 MB, free: 14.25 MB / 314.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.738e-05/0.2904, allocations: 8.031 kB / 424.9 MB, free: 14.25 MB / 314.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0003884/0.2908, allocations: 411.1 kB / 425.3 MB, free: 13.84 MB / 314.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.003222/0.294, allocations: 2.274 MB / 427.6 MB, free: 11.5 MB / 314.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.23e-05/0.2941, allocations: 37 kB / 427.6 MB, free: 11.46 MB / 314.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001166/0.2942, allocations: 59.89 kB / 427.7 MB, free: 11.41 MB / 314.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001274/0.2955, allocations: 0.7421 MB / 428.4 MB, free: 10.66 MB / 314.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.298e-05/0.2955, allocations: 4 kB / 428.4 MB, free: 10.66 MB / 314.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.823e-05/0.2956, allocations: 20 kB / 428.4 MB, free: 10.64 MB / 314.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.892e-05/0.2956, allocations: 19.98 kB / 428.5 MB, free: 10.62 MB / 314.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001529/0.2971, allocations: 0.8593 MB / 429.3 MB, free: 9.754 MB / 314.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.005139/0.3023, allocations: 3.086 MB / 432.4 MB, free: 6.586 MB / 314.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001133/0.3034, allocations: 0.6142 MB / 433 MB, free: 5.965 MB / 314.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0009338/0.3044, allocations: 0.6673 MB / 433.7 MB, free: 5.289 MB / 314.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.02954/0.3339, allocations: 30.22 MB / 463.9 MB, free: 2.961 MB / 346.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0008198/0.3348, allocations: 385.6 kB / 464.3 MB, free: 2.57 MB / 346.7 MB Notification: Performance of pre-optimization done (n=49): time 3.467e-06/0.3348, allocations: 0 / 464.3 MB, free: 2.57 MB / 346.7 MB Notification: Performance of matching and sorting (n=49): time 0.00251/0.3373, allocations: 1.159 MB / 465.4 MB, free: 1.402 MB / 346.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.577e-05/0.3374, allocations: 59.41 kB / 465.5 MB, free: 1.332 MB / 346.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.003537/0.341, allocations: 2.921 MB / 468.4 MB, free: 14.4 MB / 362.7 MB Notification: Performance of collectPreVariables (initialization): time 7.346e-05/0.341, allocations: 33.64 kB / 468.5 MB, free: 14.36 MB / 362.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.001182/0.3422, allocations: 1.505 MB / 470 MB, free: 12.85 MB / 362.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001593/0.3424, allocations: 165.7 kB / 470.1 MB, free: 12.68 MB / 362.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.287e-05/0.3425, allocations: 12 kB / 470.1 MB, free: 12.67 MB / 362.7 MB Notification: Performance of setup shared object (initialization): time 0.0001155/0.3426, allocations: 345.9 kB / 470.5 MB, free: 12.33 MB / 362.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0005723/0.3432, allocations: 261.9 kB / 470.7 MB, free: 12.07 MB / 362.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000768/0.3439, allocations: 0.6215 MB / 471.4 MB, free: 11.28 MB / 362.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0006887/0.3446, allocations: 336.5 kB / 471.7 MB, free: 10.95 MB / 362.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.042e-05/0.3446, allocations: 4 kB / 471.7 MB, free: 10.95 MB / 362.7 MB Notification: Performance of matching and sorting (n=110) (initialization): time 0.002032/0.3467, allocations: 1.268 MB / 473 MB, free: 9.672 MB / 362.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.27e-05/0.3467, allocations: 8 kB / 473 MB, free: 9.664 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.727e-05/0.3468, allocations: 83.95 kB / 473 MB, free: 9.582 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 3.065e-05/0.3469, allocations: 20 kB / 473.1 MB, free: 9.562 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000713/0.3476, allocations: 216.1 kB / 473.3 MB, free: 9.352 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.882e-05/0.3476, allocations: 27.92 kB / 473.3 MB, free: 9.324 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001028/0.3487, allocations: 111.1 kB / 473.4 MB, free: 9.215 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001176/0.3488, allocations: 68 kB / 473.5 MB, free: 9.148 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.0008144/0.3496, allocations: 439.9 kB / 473.9 MB, free: 8.711 MB / 362.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003608/0.35, allocations: 383.3 kB / 474.3 MB, free: 8.332 MB / 362.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002811/0.3528, allocations: 1.245 MB / 475.5 MB, free: 7.074 MB / 362.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.708e-06/0.3528, allocations: 7.953 kB / 475.5 MB, free: 7.066 MB / 362.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.69e-06/0.3528, allocations: 0 / 475.5 MB, free: 7.066 MB / 362.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.923e-06/0.3528, allocations: 7.922 kB / 475.5 MB, free: 7.059 MB / 362.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003237/0.3561, allocations: 2.14 MB / 477.7 MB, free: 4.852 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.542e-05/0.3562, allocations: 71.95 kB / 477.7 MB, free: 4.781 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0005094/0.3567, allocations: 111.9 kB / 477.9 MB, free: 4.672 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 6.852e-06/0.3567, allocations: 0 / 477.9 MB, free: 4.672 MB / 362.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.66e-05/0.3568, allocations: 36 kB / 477.9 MB, free: 4.637 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 5.159e-06/0.3568, allocations: 4 kB / 477.9 MB, free: 4.633 MB / 362.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.913e-06/0.3568, allocations: 0 / 477.9 MB, free: 4.633 MB / 362.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002168/0.359, allocations: 1.367 MB / 479.3 MB, free: 3.234 MB / 362.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0006449/0.3596, allocations: 484.1 kB / 479.7 MB, free: 2.738 MB / 362.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002463/0.3599, allocations: 11.98 kB / 479.7 MB, free: 2.727 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0006483/0.3605, allocations: 44.03 kB / 479.8 MB, free: 2.684 MB / 362.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.000154/0.3607, allocations: 55.94 kB / 479.8 MB, free: 2.629 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.408e-05/0.3608, allocations: 39.98 kB / 479.9 MB, free: 2.59 MB / 362.7 MB Notification: Performance of sorting global known variables: time 0.002381/0.3632, allocations: 1.884 MB / 481.8 MB, free: 0.707 MB / 362.7 MB Notification: Performance of sort global known variables: time 1.2e-07/0.3632, allocations: 4 kB / 481.8 MB, free: 0.7031 MB / 362.7 MB Notification: Performance of remove unused functions: time 0.001321/0.3645, allocations: 0.5855 MB / 482.4 MB, free: 120 kB / 362.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.0009877/0.3655, allocations: 0.7417 MB / 483.1 MB, free: 15.36 MB / 378.7 MB Notification: Performance of simCode: created initialization part: time 0.001537/0.3671, allocations: 0.8452 MB / 483.9 MB, free: 14.5 MB / 378.7 MB Notification: Performance of simCode: created event and clocks part: time 3.647e-06/0.3671, allocations: 0 / 483.9 MB, free: 14.5 MB / 378.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0007093/0.3678, allocations: 471.5 kB / 484.4 MB, free: 14.01 MB / 378.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001595/0.3694, allocations: 494.5 kB / 484.9 MB, free: 13.52 MB / 378.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00834/0.3777, allocations: 4.992 MB / 489.9 MB, free: 8.492 MB / 378.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001699/0.3795, allocations: 1.673 MB / 491.6 MB, free: 6.793 MB / 378.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0005514/0.3801, allocations: 155.4 kB / 491.7 MB, free: 6.641 MB / 378.7 MB Notification: Performance of SimCode: time 1.243e-06/0.3801, allocations: 0 / 491.7 MB, free: 6.641 MB / 378.7 MB Notification: Performance of Templates: time 0.2233/0.6034, allocations: 37.26 MB / 0.5166 GB, free: 117 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