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.001106/0.001106, allocations: 99.02 kB / 17.58 MB, free: 5.418 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.001149/0.001149, allocations: 192 kB / 18.51 MB, free: 4.508 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.297/1.297, allocations: 205.1 MB / 224.4 MB, free: 12.31 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.001408/0.001408, allocations: 55.92 kB / 280.6 MB, free: 3.18 MB / 222.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08716/0.08858, allocations: 46.64 MB / 327.3 MB, free: 4.477 MB / 270.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Spice3.Examples.InvertersApartRecord): time 0.014/0.1026, allocations: 14.03 MB / 341.3 MB, free: 6.379 MB / 286.1 MB Notification: Performance of NFInst.instExpressions: time 0.02615/0.1288, allocations: 19.73 MB / 361 MB, free: 2.578 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.003294/0.1321, allocations: 27.81 kB / 361.1 MB, free: 2.551 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.003796/0.136, allocations: 1.209 MB / 362.3 MB, free: 1.328 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.007527/0.1436, allocations: 2.258 MB / 364.5 MB, free: 15.05 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.00428/0.1479, allocations: 1.389 MB / 365.9 MB, free: 13.66 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.009191/0.1571, allocations: 6.321 MB / 372.2 MB, free: 7.32 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0006854/0.1578, allocations: 469.1 kB / 372.7 MB, free: 6.832 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.00109/0.1589, allocations: 0.964 MB / 373.7 MB, free: 5.863 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001025/0.1599, allocations: 1.087 MB / 374.7 MB, free: 4.77 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001897/0.1601, allocations: 76 kB / 374.8 MB, free: 4.695 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.003454/0.1636, allocations: 1.152 MB / 376 MB, free: 3.543 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0003304/0.164, allocations: 349.6 kB / 376.3 MB, free: 3.199 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 0.001272/0.1652, allocations: 1.378 MB / 377.7 MB, free: 1.812 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.1552/0.3204, allocations: 3.759 MB / 381.4 MB, free: 24.6 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.102e-06/0.3205, allocations: 0.7031 kB / 381.4 MB, free: 24.6 MB / 318.1 MB Notification: Performance of FrontEnd: time 1.774e-06/0.3205, allocations: 1.375 kB / 381.4 MB, free: 24.6 MB / 318.1 MB Notification: Performance of Transformations before backend: time 6.391e-05/0.3206, allocations: 0 / 381.4 MB, free: 24.6 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: 154 * Number of variables: 154 Notification: Performance of Generate backend data structure: time 0.005424/0.326, allocations: 3.705 MB / 385.2 MB, free: 22.51 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.298e-05/0.326, allocations: 10.41 kB / 385.2 MB, free: 22.51 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0005202/0.3266, allocations: 394.2 kB / 385.5 MB, free: 22.31 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.003582/0.3302, allocations: 2.457 MB / 388 MB, free: 21.49 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.476e-05/0.3302, allocations: 41.59 kB / 388 MB, free: 21.49 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001362/0.3304, allocations: 54.62 kB / 388.1 MB, free: 21.49 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001315/0.3317, allocations: 0.727 MB / 388.8 MB, free: 21.45 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.375e-05/0.3317, allocations: 0 / 388.8 MB, free: 21.45 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.862e-05/0.3318, allocations: 19.52 kB / 388.8 MB, free: 21.45 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.386e-05/0.3318, allocations: 21.02 kB / 388.9 MB, free: 21.45 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001631/0.3334, allocations: 0.8156 MB / 389.7 MB, free: 21.44 MB / 318.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.005407/0.3389, allocations: 3.067 MB / 392.7 MB, free: 20.91 MB / 318.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001194/0.3401, allocations: 0.5808 MB / 393.3 MB, free: 20.88 MB / 318.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0009566/0.341, allocations: 0.6391 MB / 394 MB, free: 20.87 MB / 318.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.02335/0.3644, allocations: 30.19 MB / 424.2 MB, free: 10.92 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0007667/0.3652, allocations: 369.4 kB / 424.5 MB, free: 10.55 MB / 334.1 MB Notification: Performance of pre-optimization done (n=49): time 2.244e-06/0.3652, allocations: 0 / 424.5 MB, free: 10.55 MB / 334.1 MB Notification: Performance of matching and sorting (n=49): time 0.00222/0.3675, allocations: 1.102 MB / 425.6 MB, free: 9.438 MB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.004e-05/0.3675, allocations: 55.41 kB / 425.7 MB, free: 9.371 MB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.003446/0.371, allocations: 2.952 MB / 428.6 MB, free: 6.41 MB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 6.852e-05/0.371, allocations: 37.7 kB / 428.7 MB, free: 6.367 MB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.001192/0.3722, allocations: 1.495 MB / 430.2 MB, free: 4.867 MB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001432/0.3724, allocations: 167 kB / 430.3 MB, free: 4.707 MB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002908/0.3727, allocations: 230.1 kB / 430.5 MB, free: 4.477 MB / 334.1 MB Notification: Performance of setup shared object (initialization): time 0.0001249/0.3728, allocations: 337.9 kB / 430.9 MB, free: 4.141 MB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000586/0.3734, allocations: 241.9 kB / 431.1 MB, free: 3.906 MB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0008387/0.3743, allocations: 0.6073 MB / 431.7 MB, free: 3.133 MB / 334.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001531/0.3758, allocations: 0.8912 MB / 432.6 MB, free: 2.125 MB / 334.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.774e-06/0.3758, allocations: 4 kB / 432.6 MB, free: 2.121 MB / 334.1 MB Notification: Performance of matching and sorting (n=110) (initialization): time 0.002623/0.3784, allocations: 1.236 MB / 433.8 MB, free: 0.9531 MB / 334.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.215e-05/0.3785, allocations: 9.594 kB / 433.9 MB, free: 0.9453 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001272/0.3786, allocations: 84 kB / 433.9 MB, free: 0.8633 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 3.832e-05/0.3787, allocations: 19.94 kB / 434 MB, free: 0.8438 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0007635/0.3794, allocations: 201.1 kB / 434.2 MB, free: 0.6602 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.522e-05/0.3795, allocations: 30.36 kB / 434.2 MB, free: 0.6367 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001305/0.3808, allocations: 109.4 kB / 434.3 MB, free: 0.5312 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001115/0.3809, allocations: 64 kB / 434.4 MB, free: 480 kB / 334.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.0007279/0.3817, allocations: 437.2 kB / 434.8 MB, free: 48 kB / 334.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0004312/0.3821, allocations: 383.4 kB / 435.2 MB, free: 15.66 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.00286/0.385, allocations: 1.206 MB / 436.4 MB, free: 14.47 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.223e-06/0.385, allocations: 4 kB / 436.4 MB, free: 14.47 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.919e-06/0.385, allocations: 0 / 436.4 MB, free: 14.47 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.879e-06/0.385, allocations: 4 kB / 436.4 MB, free: 14.46 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003405/0.3884, allocations: 2.103 MB / 438.5 MB, free: 12.31 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 0.000101/0.3885, allocations: 72 kB / 438.5 MB, free: 12.24 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0005014/0.389, allocations: 94.64 kB / 438.6 MB, free: 12.15 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 6.462e-06/0.389, allocations: 1.359 kB / 438.6 MB, free: 12.15 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.686e-05/0.3891, allocations: 35.98 kB / 438.7 MB, free: 12.12 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.416e-06/0.3891, allocations: 0 / 438.7 MB, free: 12.12 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.794e-06/0.3891, allocations: 64 / 438.7 MB, free: 12.12 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002224/0.3914, allocations: 1.304 MB / 440 MB, free: 10.79 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0007828/0.3922, allocations: 480.2 kB / 440.4 MB, free: 10.3 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0003108/0.3925, allocations: 12 kB / 440.5 MB, free: 10.29 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000662/0.3931, allocations: 27.95 kB / 440.5 MB, free: 10.26 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001467/0.3933, allocations: 65.66 kB / 440.5 MB, free: 10.2 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.271e-05/0.3934, allocations: 39.98 kB / 440.6 MB, free: 10.16 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.00231/0.3957, allocations: 1.916 MB / 442.5 MB, free: 8.242 MB / 350.1 MB Notification: Performance of sort global known variables: time 3.5e-07/0.3957, allocations: 0 / 442.5 MB, free: 8.242 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.001585/0.3973, allocations: 0.5934 MB / 443.1 MB, free: 7.648 MB / 350.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.001082/0.3984, allocations: 0.7804 MB / 443.9 MB, free: 7.023 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.001738/0.4002, allocations: 0.8337 MB / 444.7 MB, free: 6.203 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 2.405e-06/0.4002, allocations: 0 / 444.7 MB, free: 6.203 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0007772/0.401, allocations: 449.7 kB / 445.1 MB, free: 5.75 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002169/0.4031, allocations: 0.528 MB / 445.7 MB, free: 5.223 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.006484/0.4096, allocations: 4.392 MB / 450.1 MB, free: 0.8242 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001215/0.4109, allocations: 1.673 MB / 451.7 MB, free: 15.12 MB / 366.1 MB Notification: Performance of simCode: alias equations: time 0.001405/0.4123, allocations: 361.3 kB / 452.1 MB, free: 14.76 MB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002392/0.4126, allocations: 147.4 kB / 452.2 MB, free: 14.61 MB / 366.1 MB Notification: Performance of SimCode: time 6.91e-07/0.4126, allocations: 0 / 452.2 MB, free: 14.61 MB / 366.1 MB Notification: Performance of Templates: time 0.05433/0.4669, allocations: 31.26 MB / 483.5 MB, free: 15.48 MB / 398.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