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.001035/0.001035, allocations: 103.8 kB / 17.16 MB, free: 6.316 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.001063/0.001063, allocations: 190 kB / 18.07 MB, free: 5.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.378/1.378, allocations: 205.1 MB / 223.9 MB, free: 12.48 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.001158/0.001158, allocations: 47.91 kB / 280 MB, free: 3.578 MB / 222.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08972/0.09089, allocations: 46.62 MB / 326.6 MB, free: 4.887 MB / 270.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Spice3.Examples.InvertersApartRecord): time 0.01238/0.1033, allocations: 13.89 MB / 340.5 MB, free: 6.934 MB / 286.1 MB Notification: Performance of NFInst.instExpressions: time 0.02167/0.125, allocations: 19.89 MB / 360.4 MB, free: 2.969 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.002043/0.1271, allocations: 31.81 kB / 360.4 MB, free: 2.938 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.002848/0.13, allocations: 1.059 MB / 361.5 MB, free: 1.867 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.006317/0.1363, allocations: 1.887 MB / 363.4 MB, free: 15.96 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.004905/0.1413, allocations: 1.152 MB / 364.5 MB, free: 14.81 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.01096/0.1523, allocations: 6.207 MB / 370.7 MB, free: 8.586 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001247/0.1536, allocations: 445.5 kB / 371.1 MB, free: 8.121 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.002155/0.1557, allocations: 0.9366 MB / 372.1 MB, free: 7.18 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.00137/0.1571, allocations: 1.075 MB / 373.2 MB, free: 6.098 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0002003/0.1573, allocations: 52 kB / 373.2 MB, free: 6.047 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.003992/0.1613, allocations: 1.128 MB / 374.3 MB, free: 4.918 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0004971/0.1619, allocations: 309.6 kB / 374.6 MB, free: 4.613 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 0.001841/0.1637, allocations: 1.354 MB / 376 MB, free: 3.25 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.1608/0.3245, allocations: 3.69 MB / 379.7 MB, free: 23.49 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 7.393e-06/0.3246, allocations: 1.375 kB / 379.7 MB, free: 23.49 MB / 318.1 MB Notification: Performance of FrontEnd: time 2.124e-06/0.3246, allocations: 0 / 379.7 MB, free: 23.49 MB / 318.1 MB Notification: Performance of Transformations before backend: time 0.0001832/0.3248, allocations: 0 / 379.7 MB, free: 23.49 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.006351/0.3311, allocations: 3.705 MB / 383.4 MB, free: 21.46 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.156e-05/0.3312, allocations: 9.594 kB / 383.4 MB, free: 21.46 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0006354/0.3318, allocations: 393.9 kB / 383.8 MB, free: 21.26 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.00386/0.3357, allocations: 2.451 MB / 386.2 MB, free: 20.45 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.756e-05/0.3358, allocations: 43.17 kB / 386.3 MB, free: 20.45 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001569/0.3359, allocations: 56.64 kB / 386.3 MB, free: 20.45 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001468/0.3374, allocations: 0.7283 MB / 387.1 MB, free: 20.4 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.445e-05/0.3374, allocations: 1.125 kB / 387.1 MB, free: 20.4 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.29e-05/0.3375, allocations: 20.64 kB / 387.1 MB, free: 20.4 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.717e-05/0.3375, allocations: 22.08 kB / 387.1 MB, free: 20.4 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001611/0.3392, allocations: 0.8174 MB / 387.9 MB, free: 20.4 MB / 318.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.005682/0.3449, allocations: 3.07 MB / 391 MB, free: 19.87 MB / 318.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001156/0.346, allocations: 0.5809 MB / 391.6 MB, free: 19.84 MB / 318.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0009394/0.347, allocations: 0.6449 MB / 392.2 MB, free: 19.82 MB / 318.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.02381/0.3708, allocations: 30.18 MB / 422.4 MB, free: 11.25 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0007483/0.3716, allocations: 361.5 kB / 422.8 MB, free: 10.89 MB / 334.1 MB Notification: Performance of pre-optimization done (n=49): time 3.316e-06/0.3716, allocations: 0 / 422.8 MB, free: 10.89 MB / 334.1 MB Notification: Performance of matching and sorting (n=49): time 0.002631/0.3743, allocations: 1.101 MB / 423.9 MB, free: 9.781 MB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.785e-05/0.3743, allocations: 63.08 kB / 423.9 MB, free: 9.711 MB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.00433/0.3787, allocations: 2.953 MB / 426.9 MB, free: 6.75 MB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0001431/0.3788, allocations: 37.7 kB / 426.9 MB, free: 6.707 MB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.001248/0.3801, allocations: 1.492 MB / 428.4 MB, free: 5.207 MB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.000228/0.3803, allocations: 162.4 kB / 428.6 MB, free: 5.051 MB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0003209/0.3807, allocations: 230.1 kB / 428.8 MB, free: 4.82 MB / 334.1 MB Notification: Performance of setup shared object (initialization): time 0.0001262/0.3808, allocations: 341.2 kB / 429.1 MB, free: 4.484 MB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0006103/0.3814, allocations: 241.9 kB / 429.3 MB, free: 4.25 MB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0009901/0.3824, allocations: 0.6023 MB / 430 MB, free: 3.484 MB / 334.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001639/0.3841, allocations: 0.8984 MB / 430.8 MB, free: 2.473 MB / 334.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.116e-05/0.3841, allocations: 4.875 kB / 430.9 MB, free: 2.469 MB / 334.1 MB Notification: Performance of matching and sorting (n=110) (initialization): time 0.002579/0.3867, allocations: 1.23 MB / 432.1 MB, free: 1.301 MB / 334.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.85e-05/0.3867, allocations: 10.19 kB / 432.1 MB, free: 1.293 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001286/0.3869, allocations: 89.95 kB / 432.2 MB, free: 1.207 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 3.353e-05/0.3869, allocations: 19.94 kB / 432.2 MB, free: 1.188 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0007293/0.3876, allocations: 201.1 kB / 432.4 MB, free: 1.004 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.51e-05/0.3877, allocations: 30.27 kB / 432.4 MB, free: 0.9805 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001704/0.3894, allocations: 103.1 kB / 432.5 MB, free: 0.8789 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001447/0.3896, allocations: 67.19 kB / 432.6 MB, free: 0.8164 MB / 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.0008567/0.3904, allocations: 436.9 kB / 433 MB, free: 404 kB / 334.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0007635/0.3912, allocations: 383.8 kB / 433.4 MB, free: 16 kB / 334.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002978/0.3942, allocations: 1.216 MB / 434.6 MB, free: 14.82 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.047e-06/0.3942, allocations: 4 kB / 434.6 MB, free: 14.82 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.991e-06/0.3942, allocations: 0 / 434.6 MB, free: 14.82 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.26e-06/0.3942, allocations: 6.297 kB / 434.6 MB, free: 14.82 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003762/0.398, allocations: 2.1 MB / 436.7 MB, free: 12.66 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 0.0001043/0.3981, allocations: 75 kB / 436.8 MB, free: 12.59 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0005098/0.3986, allocations: 86.64 kB / 436.9 MB, free: 12.5 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 8.135e-06/0.3987, allocations: 4 kB / 436.9 MB, free: 12.5 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.428e-05/0.3987, allocations: 35.98 kB / 436.9 MB, free: 12.46 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 5.25e-06/0.3987, allocations: 0 / 436.9 MB, free: 12.46 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.078e-06/0.3988, allocations: 8.062 kB / 436.9 MB, free: 12.46 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002812/0.4016, allocations: 1.296 MB / 438.2 MB, free: 11.14 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001072/0.4027, allocations: 482.4 kB / 438.7 MB, free: 10.64 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0003348/0.403, allocations: 10.48 kB / 438.7 MB, free: 10.64 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0006854/0.4037, allocations: 35.95 kB / 438.7 MB, free: 10.6 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001712/0.4039, allocations: 56.02 kB / 438.8 MB, free: 10.55 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.824e-05/0.404, allocations: 39.98 kB / 438.8 MB, free: 10.51 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.002639/0.4066, allocations: 1.92 MB / 440.8 MB, free: 8.59 MB / 350.1 MB Notification: Performance of sort global known variables: time 3e-07/0.4066, allocations: 0 / 440.8 MB, free: 8.59 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.001594/0.4082, allocations: 0.5855 MB / 441.3 MB, free: 8.004 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.001094/0.4093, allocations: 0.7858 MB / 442.1 MB, free: 7.371 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.001644/0.411, allocations: 0.816 MB / 442.9 MB, free: 6.566 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 3.707e-06/0.411, allocations: 2.406 kB / 442.9 MB, free: 6.566 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0007433/0.4118, allocations: 446 kB / 443.4 MB, free: 6.113 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002268/0.414, allocations: 490.4 kB / 443.9 MB, free: 5.629 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.007145/0.4212, allocations: 5.198 MB / 449.1 MB, free: 452 kB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001205/0.4224, allocations: 1.673 MB / 450.7 MB, free: 14.73 MB / 366.1 MB Notification: Performance of simCode: alias equations: time 0.001564/0.424, allocations: 357.5 kB / 451.1 MB, free: 14.39 MB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002474/0.4243, allocations: 153.6 kB / 451.2 MB, free: 14.24 MB / 366.1 MB Notification: Performance of SimCode: time 1.373e-06/0.4243, allocations: 0 / 451.2 MB, free: 14.24 MB / 366.1 MB Notification: Performance of Templates: time 0.05465/0.4789, allocations: 30.21 MB / 481.4 MB, free: 124 kB / 382.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","../files/Modelica_3.2.3_Modelica.Electrical.Spice3.Examples.InvertersApartRecord.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches