Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.0.0_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) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0009679/0.0009679, allocations: 85.17 kB / 21.5 MB, free: 2.992 MB / 18.57 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.0008665/0.0008665, allocations: 147.1 kB / 24.89 MB, free: 8.727 MB / 18.57 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 0.9278/0.9278, allocations: 173.4 MB / 201.5 MB, free: 8.738 MB / 186.7 MB " [Timeout remaining time 179] Using package Modelica with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+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=2000,variableFilter="time|mp.S.v",fileNamePrefix="Modelica_4.0.0_Modelica.Electrical.Spice3.Examples.Inverter") translateModel(Modelica.Electrical.Spice3.Examples.Inverter,tolerance=1e-07,outputFormat="mat",numberOfIntervals=2000,variableFilter="time|mp.S.v",fileNamePrefix="Modelica_4.0.0_Modelica.Electrical.Spice3.Examples.Inverter") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 2.685e-06/2.685e-06, allocations: 4 kB / 268.5 MB, free: 5.992 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 1.65e-05/1.919e-05, allocations: 2.312 kB / 268.5 MB, free: 5.988 MB / 250.7 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Spice3.Examples.Inverter): time 0.005441/0.00546, allocations: 7.605 MB / 276.1 MB, free: 14.34 MB / 266.7 MB Notification: Performance of NFInst.instExpressions: time 0.1213/0.1267, allocations: 18.44 MB / 294.6 MB, free: 14.55 MB / 266.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0009806/0.1277, allocations: 99.5 kB / 294.6 MB, free: 14.55 MB / 266.7 MB Notification: Performance of NFTyping.typeComponents: time 0.001728/0.1294, allocations: 0.7933 MB / 295.4 MB, free: 14.51 MB / 266.7 MB Notification: Performance of NFTyping.typeBindings: time 0.00422/0.1337, allocations: 1.828 MB / 297.3 MB, free: 14.12 MB / 266.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.003087/0.1367, allocations: 1.311 MB / 298.6 MB, free: 13.9 MB / 266.7 MB Notification: Performance of NFFlatten.flatten: time 0.00338/0.1401, allocations: 3.398 MB / 302 MB, free: 13.24 MB / 266.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002477/0.1404, allocations: 146.4 kB / 302.1 MB, free: 13.15 MB / 266.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001383/0.1418, allocations: 1.499 MB / 303.6 MB, free: 13.03 MB / 266.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0004499/0.1422, allocations: 432.2 kB / 304 MB, free: 12.95 MB / 266.7 MB Notification: Performance of NFPackage.collectConstants: time 6.48e-05/0.1423, allocations: 39.88 kB / 304.1 MB, free: 12.95 MB / 266.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.002053/0.1443, allocations: 1.219 MB / 305.3 MB, free: 12.88 MB / 266.7 MB Notification: Performance of NFScalarize.scalarize: time 8.109e-05/0.1444, allocations: 175 kB / 305.5 MB, free: 12.77 MB / 266.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0002516/0.1447, allocations: 388.4 kB / 305.9 MB, free: 12.66 MB / 266.7 MB Notification: Performance of NFConvertDAE.convert: time 0.001372/0.146, allocations: 1.794 MB / 307.6 MB, free: 12.08 MB / 266.7 MB Notification: Performance of FrontEnd - DAE generated: time 3.486e-06/0.146, allocations: 0 / 307.6 MB, free: 12.08 MB / 266.7 MB Notification: Performance of FrontEnd: time 1.233e-06/0.146, allocations: 2.344 kB / 307.6 MB, free: 12.08 MB / 266.7 MB Notification: Performance of Transformations before backend: time 1.337e-05/0.146, allocations: 0 / 307.6 MB, free: 12.08 MB / 266.7 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.001273/0.1473, allocations: 1.932 MB / 309.6 MB, free: 10.86 MB / 266.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.01e-05/0.1473, allocations: 17.78 kB / 309.6 MB, free: 10.86 MB / 266.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001283/0.1475, allocations: 139.1 kB / 309.7 MB, free: 10.84 MB / 266.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0008289/0.1483, allocations: 1.12 MB / 310.9 MB, free: 10.14 MB / 266.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.437e-05/0.1483, allocations: 23.69 kB / 310.9 MB, free: 10.13 MB / 266.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.136e-05/0.1484, allocations: 28.92 kB / 310.9 MB, free: 10.12 MB / 266.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000288/0.1486, allocations: 285.1 kB / 311.2 MB, free: 9.934 MB / 266.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.538e-06/0.1487, allocations: 0 / 311.2 MB, free: 9.934 MB / 266.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.352e-05/0.1487, allocations: 10.66 kB / 311.2 MB, free: 9.926 MB / 266.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.728e-06/0.1487, allocations: 13.5 kB / 311.2 MB, free: 9.922 MB / 266.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.000173/0.1489, allocations: 120.8 kB / 311.3 MB, free: 9.895 MB / 266.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0009421/0.1498, allocations: 0.7962 MB / 312.1 MB, free: 9.457 MB / 266.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001685/0.15, allocations: 179.8 kB / 312.3 MB, free: 9.367 MB / 266.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001629/0.1501, allocations: 208.7 kB / 312.5 MB, free: 9.316 MB / 266.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.009309/0.1594, allocations: 11.57 MB / 324.1 MB, free: 13.52 MB / 282.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001847/0.1596, allocations: 159.2 kB / 324.2 MB, free: 13.36 MB / 282.7 MB Notification: Performance of pre-optimization done (n=29): time 1.764e-06/0.1596, allocations: 4 kB / 324.2 MB, free: 13.36 MB / 282.7 MB Notification: Performance of matching and sorting (n=29): time 0.0005165/0.1601, allocations: 334.5 kB / 324.6 MB, free: 13.03 MB / 282.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.847e-05/0.1602, allocations: 55.41 kB / 324.6 MB, free: 12.96 MB / 282.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0006948/0.1609, allocations: 1.327 MB / 325.9 MB, free: 11.87 MB / 282.7 MB Notification: Performance of collectPreVariables (initialization): time 2.314e-05/0.1609, allocations: 33.7 kB / 326 MB, free: 11.83 MB / 282.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0004366/0.1613, allocations: 407 kB / 326.4 MB, free: 11.5 MB / 282.7 MB Notification: Performance of collectInitialBindings (initialization): time 5.678e-05/0.1614, allocations: 105 kB / 326.5 MB, free: 11.41 MB / 282.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 9.329e-05/0.1615, allocations: 108.3 kB / 326.6 MB, free: 11.31 MB / 282.7 MB Notification: Performance of setup shared object (initialization): time 7.176e-05/0.1616, allocations: 325.9 kB / 326.9 MB, free: 10.99 MB / 282.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 5.911e-05/0.1616, allocations: 44.98 kB / 326.9 MB, free: 10.95 MB / 282.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001423/0.1618, allocations: 250.7 kB / 327.2 MB, free: 10.62 MB / 282.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002471/0.162, allocations: 345.9 kB / 327.5 MB, free: 10.23 MB / 282.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.088e-06/0.162, allocations: 4 kB / 327.5 MB, free: 10.23 MB / 282.7 MB Notification: Performance of matching and sorting (n=62) (initialization): time 0.0003982/0.1624, allocations: 416.7 kB / 327.9 MB, free: 9.816 MB / 282.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.591e-05/0.1624, allocations: 8 kB / 327.9 MB, free: 9.809 MB / 282.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.817e-05/0.1624, allocations: 11.97 kB / 328 MB, free: 9.797 MB / 282.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001542/0.1626, allocations: 79.2 kB / 328 MB, free: 9.719 MB / 282.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001976/0.1628, allocations: 107.8 kB / 328.1 MB, free: 9.613 MB / 282.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.000291/0.1631, allocations: 0.5674 MB / 328.7 MB, free: 9.027 MB / 282.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002277/0.1633, allocations: 67.59 kB / 328.8 MB, free: 8.961 MB / 282.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.908e-05/0.1634, allocations: 24.03 kB / 328.8 MB, free: 8.938 MB / 282.7 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.0001523/0.1635, allocations: 149.6 kB / 328.9 MB, free: 8.781 MB / 282.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.887e-05/0.1636, allocations: 119.8 kB / 329.1 MB, free: 8.664 MB / 282.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0005672/0.1642, allocations: 452.2 kB / 329.5 MB, free: 8.223 MB / 282.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.847e-06/0.1642, allocations: 4 kB / 329.5 MB, free: 8.219 MB / 282.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.393e-06/0.1642, allocations: 0 / 329.5 MB, free: 8.219 MB / 282.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.467e-06/0.1642, allocations: 4 kB / 329.5 MB, free: 8.215 MB / 282.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0007176/0.1649, allocations: 0.8905 MB / 330.4 MB, free: 7.477 MB / 282.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.085e-05/0.1649, allocations: 7.984 kB / 330.4 MB, free: 7.469 MB / 282.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 9.797e-05/0.165, allocations: 35.97 kB / 330.4 MB, free: 7.434 MB / 282.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001097/0.1651, allocations: 68.83 kB / 330.5 MB, free: 7.363 MB / 282.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.977e-05/0.1651, allocations: 15.92 kB / 330.5 MB, free: 7.348 MB / 282.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0002465/0.1654, allocations: 0.5519 MB / 331.1 MB, free: 6.777 MB / 282.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.362e-06/0.1654, allocations: 4 kB / 331.1 MB, free: 6.773 MB / 282.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.000301/0.1657, allocations: 386 kB / 331.5 MB, free: 6.375 MB / 282.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001809/0.1659, allocations: 204.1 kB / 331.7 MB, free: 6.18 MB / 282.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 8.236e-05/0.166, allocations: 4 kB / 331.7 MB, free: 6.176 MB / 282.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001783/0.1661, allocations: 24.02 kB / 331.7 MB, free: 6.152 MB / 282.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.4e-05/0.1662, allocations: 40.19 kB / 331.7 MB, free: 6.117 MB / 282.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.994e-05/0.1662, allocations: 11.94 kB / 331.7 MB, free: 6.105 MB / 282.7 MB Notification: Performance of sorting global known variables: time 0.0004012/0.1666, allocations: 0.6747 MB / 332.4 MB, free: 5.492 MB / 282.7 MB Notification: Performance of sort global known variables: time 6e-08/0.1666, allocations: 0 / 332.4 MB, free: 5.492 MB / 282.7 MB Notification: Performance of remove unused functions: time 0.0004596/0.1671, allocations: 335.6 kB / 332.7 MB, free: 5.164 MB / 282.7 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.0006055/0.1677, allocations: 0.6576 MB / 333.4 MB, free: 4.605 MB / 282.7 MB Notification: Performance of simCode: created initialization part: time 0.0003337/0.168, allocations: 269 kB / 333.7 MB, free: 4.336 MB / 282.7 MB Notification: Performance of simCode: created event and clocks part: time 1.375e-05/0.168, allocations: 16 kB / 333.7 MB, free: 4.32 MB / 282.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0004061/0.1684, allocations: 154.5 kB / 333.8 MB, free: 4.16 MB / 282.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006436/0.1691, allocations: 317.3 kB / 334.1 MB, free: 3.852 MB / 282.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001778/0.1709, allocations: 1.991 MB / 336.1 MB, free: 1.816 MB / 282.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001124/0.171, allocations: 215.1 kB / 336.3 MB, free: 1.582 MB / 282.7 MB Notification: Performance of simCode: alias equations: time 0.0003122/0.1713, allocations: 203.9 kB / 336.5 MB, free: 1.379 MB / 282.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003189/0.1716, allocations: 309.2 kB / 336.8 MB, free: 1.074 MB / 282.7 MB Notification: Performance of SimCode: time 9.52e-07/0.1716, allocations: 0 / 336.8 MB, free: 1.074 MB / 282.7 MB Notification: Performance of Templates: time 0.02554/0.1972, allocations: 22.47 MB / 359.3 MB, free: 10.88 MB / 314.7 MB " [Timeout remaining time 660] make -j1 -f Modelica_4.0.0_Modelica.Electrical.Spice3.Examples.Inverter.makefile [Timeout 660] (rm -f Modelica_4.0.0_Modelica.Electrical.Spice3.Examples.Inverter.pipe ; mkfifo Modelica_4.0.0_Modelica.Electrical.Spice3.Examples.Inverter.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Electrical.Spice3.Examples.Inverter.pipe >> ../files/Modelica_4.0.0_Modelica.Electrical.Spice3.Examples.Inverter.sim & ./Modelica_4.0.0_Modelica.Electrical.Spice3.Examples.Inverter -abortSlowSimulation -alarm=240 -s gbode -gbm=radauIIA3 -emit_protected -lv LOG_STATS > Modelica_4.0.0_Modelica.Electrical.Spice3.Examples.Inverter.pipe 2>&1) [Timeout 240] diffSimulationResults("Modelica_4.0.0_Modelica.Electrical.Spice3.Examples.Inverter_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Electrical/Spice3/Examples/Inverter/Inverter.csv","",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) [Timeout 660] "" [Timeout remaining time 660] Reference file matches [Calling sys.exit(0), Time elapsed: 2.925515209324658]