Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_3.2.3_Modelica.Electrical.Spice3.Examples.Inverter.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.Inverter,tolerance=1e-07,outputFormat="mat",numberOfIntervals=3998,variableFilter="time|mp.S.v",fileNamePrefix="Modelica_3.2.3_Modelica.Electrical.Spice3.Examples.Inverter") translateModel(Modelica.Electrical.Spice3.Examples.Inverter,tolerance=1e-07,outputFormat="mat",numberOfIntervals=3998,variableFilter="time|mp.S.v",fileNamePrefix="Modelica_3.2.3_Modelica.Electrical.Spice3.Examples.Inverter") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001113/0.001113, allocations: 114 kB / 17.28 MB, free: 6.219 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.001171/0.001171, allocations: 189.3 kB / 18.2 MB, free: 5.297 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.366/1.366, allocations: 205.1 MB / 224.1 MB, free: 12.43 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.001107/0.001107, allocations: 43.94 kB / 280.2 MB, free: 3.496 MB / 222.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09288/0.094, allocations: 46.63 MB / 326.8 MB, free: 4.793 MB / 270.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Spice3.Examples.Inverter): time 0.007448/0.1015, allocations: 7.683 MB / 334.5 MB, free: 13.07 MB / 286.1 MB Notification: Performance of NFInst.instExpressions: time 0.0189/0.1204, allocations: 18.28 MB / 352.7 MB, free: 10.72 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001498/0.122, allocations: 31.75 kB / 352.8 MB, free: 10.69 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.002821/0.1249, allocations: 0.7438 MB / 353.5 MB, free: 9.941 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.006308/0.1312, allocations: 1.519 MB / 355 MB, free: 8.414 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.004279/0.1355, allocations: 1.125 MB / 356.2 MB, free: 7.281 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.005195/0.1407, allocations: 3.206 MB / 359.4 MB, free: 4.066 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0003677/0.1411, allocations: 240.6 kB / 359.6 MB, free: 3.809 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0005886/0.1417, allocations: 0.4976 MB / 360.1 MB, free: 3.309 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0005571/0.1423, allocations: 0.5473 MB / 360.6 MB, free: 2.758 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 8.071e-05/0.1424, allocations: 40 kB / 360.7 MB, free: 2.719 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.003357/0.1457, allocations: 1.124 MB / 361.8 MB, free: 1.594 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001606/0.1459, allocations: 170.8 kB / 362 MB, free: 1.426 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0005538/0.1464, allocations: 0.687 MB / 362.7 MB, free: 0.7344 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.002644/0.1491, allocations: 2.203 MB / 364.9 MB, free: 14.52 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.38e-06/0.1491, allocations: 4 kB / 364.9 MB, free: 14.52 MB / 318.1 MB Notification: Performance of FrontEnd: time 2.054e-06/0.1491, allocations: 0 / 364.9 MB, free: 14.52 MB / 318.1 MB Notification: Performance of Transformations before backend: time 1.835e-05/0.1492, allocations: 0 / 364.9 MB, free: 14.52 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: 80 * Number of variables: 80 Notification: Performance of Generate backend data structure: time 0.002809/0.152, allocations: 2.02 MB / 366.9 MB, free: 12.44 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.405e-05/0.152, allocations: 8.031 kB / 366.9 MB, free: 12.43 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002124/0.1522, allocations: 193.7 kB / 367.1 MB, free: 12.24 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001778/0.154, allocations: 1.373 MB / 368.5 MB, free: 10.79 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.084e-05/0.1541, allocations: 16.56 kB / 368.5 MB, free: 10.78 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 7.871e-05/0.1542, allocations: 35.89 kB / 368.5 MB, free: 10.74 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0008693/0.155, allocations: 437.1 kB / 368.9 MB, free: 10.3 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.132e-05/0.1551, allocations: 0 / 368.9 MB, free: 10.3 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.436e-05/0.1551, allocations: 11.98 kB / 369 MB, free: 10.29 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.297e-05/0.1551, allocations: 8 kB / 369 MB, free: 10.29 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001002/0.1561, allocations: 478.1 kB / 369.4 MB, free: 9.82 MB / 318.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002586/0.1587, allocations: 1.623 MB / 371 MB, free: 8.133 MB / 318.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0008687/0.1596, allocations: 379.2 kB / 371.4 MB, free: 7.754 MB / 318.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0006735/0.1603, allocations: 409.9 kB / 371.8 MB, free: 7.352 MB / 318.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.1852/0.3456, allocations: 15.23 MB / 387.1 MB, free: 49.12 MB / 318.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0009341/0.3465, allocations: 253.8 kB / 387.3 MB, free: 49.04 MB / 318.1 MB Notification: Performance of pre-optimization done (n=29): time 2.865e-06/0.3465, allocations: 1.656 kB / 387.3 MB, free: 49.04 MB / 318.1 MB Notification: Performance of matching and sorting (n=29): time 0.003016/0.3496, allocations: 0.8414 MB / 388.1 MB, free: 48.78 MB / 318.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.018e-05/0.3496, allocations: 60.55 kB / 388.2 MB, free: 48.71 MB / 318.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002624/0.3523, allocations: 1.466 MB / 389.7 MB, free: 48.14 MB / 318.1 MB Notification: Performance of collectPreVariables (initialization): time 5.661e-05/0.3523, allocations: 33.2 kB / 389.7 MB, free: 48.11 MB / 318.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0007092/0.3531, allocations: 0.7262 MB / 390.4 MB, free: 47.55 MB / 318.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001173/0.3532, allocations: 92.94 kB / 390.5 MB, free: 47.48 MB / 318.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002794/0.3535, allocations: 128.5 kB / 390.6 MB, free: 47.42 MB / 318.1 MB Notification: Performance of setup shared object (initialization): time 9.708e-05/0.3536, allocations: 331.3 kB / 391 MB, free: 47.1 MB / 318.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0006292/0.3542, allocations: 156.5 kB / 391.1 MB, free: 47.07 MB / 318.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0007319/0.355, allocations: 360.2 kB / 391.5 MB, free: 46.77 MB / 318.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001284/0.3563, allocations: 0.5344 MB / 392 MB, free: 46.41 MB / 318.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.634e-06/0.3563, allocations: 1.312 kB / 392 MB, free: 46.41 MB / 318.1 MB Notification: Performance of matching and sorting (n=62) (initialization): time 0.002178/0.3585, allocations: 0.7639 MB / 392.8 MB, free: 46.11 MB / 318.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.195e-05/0.3585, allocations: 7.781 kB / 392.8 MB, free: 46.11 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001003/0.3586, allocations: 42.23 kB / 392.8 MB, free: 46.11 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0004481/0.3591, allocations: 136.7 kB / 393 MB, free: 46.09 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0006301/0.3597, allocations: 106.1 kB / 393.1 MB, free: 46.07 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0007512/0.3605, allocations: 0.6752 MB / 393.7 MB, free: 45.51 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0009623/0.3615, allocations: 73.75 kB / 393.8 MB, free: 45.47 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.076e-05/0.3616, allocations: 37.38 kB / 393.8 MB, free: 45.47 MB / 318.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 30 * 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 (53): * Single equations (assignments): 52 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 0 systems * Non-linear torn systems (#iteration vars, #inner vars): 1 system {(1,5)} Notification: Performance of prepare postOptimizeDAE: time 0.0005736/0.3622, allocations: 276.1 kB / 394.1 MB, free: 45.26 MB / 318.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002896/0.3625, allocations: 186.6 kB / 394.3 MB, free: 45.16 MB / 318.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002694/0.3652, allocations: 0.7442 MB / 395 MB, free: 44.93 MB / 318.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.042e-06/0.3652, allocations: 3.938 kB / 395 MB, free: 44.93 MB / 318.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.711e-06/0.3652, allocations: 2.719 kB / 395 MB, free: 44.93 MB / 318.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.873e-06/0.3652, allocations: 0 / 395 MB, free: 44.93 MB / 318.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002637/0.3679, allocations: 1.324 MB / 396.4 MB, free: 44.15 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.435e-05/0.368, allocations: 39.25 kB / 396.4 MB, free: 44.14 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003638/0.3683, allocations: 42.86 kB / 396.4 MB, free: 44.13 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0003519/0.3687, allocations: 132.9 kB / 396.6 MB, free: 44.09 MB / 318.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.033e-05/0.3688, allocations: 16.34 kB / 396.6 MB, free: 44.09 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0006035/0.3694, allocations: 0.6637 MB / 397.3 MB, free: 43.52 MB / 318.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.517e-06/0.3694, allocations: 3.938 kB / 397.3 MB, free: 43.51 MB / 318.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001798/0.3712, allocations: 0.7094 MB / 398 MB, free: 43.09 MB / 318.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0004757/0.3717, allocations: 285.5 kB / 398.2 MB, free: 42.85 MB / 318.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.000213/0.3719, allocations: 7.906 kB / 398.3 MB, free: 42.85 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0006438/0.3726, allocations: 30.58 kB / 398.3 MB, free: 42.83 MB / 318.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001643/0.3728, allocations: 46.59 kB / 398.3 MB, free: 42.81 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.62e-05/0.3729, allocations: 20.48 kB / 398.4 MB, free: 42.81 MB / 318.1 MB Notification: Performance of sorting global known variables: time 0.001614/0.3745, allocations: 0.9705 MB / 399.3 MB, free: 42.26 MB / 318.1 MB Notification: Performance of sort global known variables: time 2.51e-07/0.3745, allocations: 1.375 kB / 399.3 MB, free: 42.26 MB / 318.1 MB Notification: Performance of remove unused functions: time 0.001423/0.3759, allocations: 328 kB / 399.6 MB, free: 42.23 MB / 318.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 3 * Number of states: 0 () * 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 (21): * Single equations (assignments): 14 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 6 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 0 systems * Non-linear torn systems (#iteration vars, #inner vars): 1 system {(1,5)} Notification: Performance of Backend phase and start with SimCode phase: time 0.0009803/0.3769, allocations: 0.5804 MB / 400.2 MB, free: 41.98 MB / 318.1 MB Notification: Performance of simCode: created initialization part: time 0.001771/0.3787, allocations: 0.5261 MB / 400.7 MB, free: 41.73 MB / 318.1 MB Notification: Performance of simCode: created event and clocks part: time 2.966e-06/0.3787, allocations: 0 / 400.7 MB, free: 41.73 MB / 318.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0008744/0.3796, allocations: 293.6 kB / 401 MB, free: 41.58 MB / 318.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001466/0.3811, allocations: 265.9 kB / 401.3 MB, free: 41.42 MB / 318.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00409/0.3852, allocations: 2.644 MB / 403.9 MB, free: 39.52 MB / 318.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005482/0.3858, allocations: 1.153 MB / 405.1 MB, free: 38.33 MB / 318.1 MB Notification: Performance of simCode: alias equations: time 0.0009013/0.3867, allocations: 200.5 kB / 405.3 MB, free: 38.14 MB / 318.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001766/0.3869, allocations: 91.44 kB / 405.4 MB, free: 38.05 MB / 318.1 MB Notification: Performance of SimCode: time 9.11e-07/0.3869, allocations: 0 / 405.4 MB, free: 38.05 MB / 318.1 MB Notification: Performance of Templates: time 0.03971/0.4266, allocations: 19.65 MB / 425 MB, free: 18.41 MB / 318.1 MB make -j1 -f Modelica_3.2.3_Modelica.Electrical.Spice3.Examples.Inverter.makefile (rm -f Modelica_3.2.3_Modelica.Electrical.Spice3.Examples.Inverter.pipe ; mkfifo Modelica_3.2.3_Modelica.Electrical.Spice3.Examples.Inverter.pipe ; head -c 1048576 < Modelica_3.2.3_Modelica.Electrical.Spice3.Examples.Inverter.pipe >> ../files/Modelica_3.2.3_Modelica.Electrical.Spice3.Examples.Inverter.sim & ./Modelica_3.2.3_Modelica.Electrical.Spice3.Examples.Inverter -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_3.2.3_Modelica.Electrical.Spice3.Examples.Inverter.pipe 2>&1) diffSimulationResults("Modelica_3.2.3_Modelica.Electrical.Spice3.Examples.Inverter_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v3.2.3+build.4/Modelica/Electrical/Spice3/Examples/Inverter/Inverter.csv","../files/Modelica_3.2.3_Modelica.Electrical.Spice3.Examples.Inverter.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches