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.0009076/0.0009076, allocations: 85.05 kB / 21.5 MB, free: 2.988 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.0009018/0.0009018, allocations: 142.1 kB / 24.89 MB, free: 8.777 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.9201/0.9201, allocations: 173.4 MB / 201.5 MB, free: 8.762 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 1.172e-06/1.172e-06, allocations: 0 / 268.5 MB, free: 6.047 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 1.086e-05/1.203e-05, allocations: 5.969 kB / 268.5 MB, free: 6.043 MB / 250.7 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Spice3.Examples.Inverter): time 0.005276/0.005288, allocations: 7.57 MB / 276 MB, free: 14.43 MB / 266.7 MB Notification: Performance of NFInst.instExpressions: time 0.1173/0.1226, allocations: 18.44 MB / 294.5 MB, free: 13.99 MB / 266.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0009874/0.1235, allocations: 93.59 kB / 294.6 MB, free: 13.99 MB / 266.7 MB Notification: Performance of NFTyping.typeComponents: time 0.001985/0.1255, allocations: 0.7953 MB / 295.4 MB, free: 13.95 MB / 266.7 MB Notification: Performance of NFTyping.typeBindings: time 0.005144/0.1307, allocations: 1.891 MB / 297.2 MB, free: 13.56 MB / 266.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.00433/0.135, allocations: 1.364 MB / 298.6 MB, free: 13.34 MB / 266.7 MB Notification: Performance of NFFlatten.flatten: time 0.004323/0.1393, allocations: 3.395 MB / 302 MB, free: 12.68 MB / 266.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0003118/0.1396, allocations: 141.2 kB / 302.1 MB, free: 12.59 MB / 266.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001843/0.1415, allocations: 1.503 MB / 303.6 MB, free: 12.47 MB / 266.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0006658/0.1421, allocations: 431.3 kB / 304.1 MB, free: 12.39 MB / 266.7 MB Notification: Performance of NFPackage.collectConstants: time 0.0001167/0.1423, allocations: 44 kB / 304.1 MB, free: 12.39 MB / 266.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.002863/0.1451, allocations: 1.172 MB / 305.3 MB, free: 12.34 MB / 266.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0001301/0.1453, allocations: 172.2 kB / 305.4 MB, free: 12.27 MB / 266.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0004297/0.1457, allocations: 383.4 kB / 305.8 MB, free: 12.2 MB / 266.7 MB Notification: Performance of NFConvertDAE.convert: time 0.002134/0.1478, allocations: 1.797 MB / 307.6 MB, free: 11.87 MB / 266.7 MB Notification: Performance of FrontEnd - DAE generated: time 4.668e-06/0.1478, allocations: 0 / 307.6 MB, free: 11.87 MB / 266.7 MB Notification: Performance of FrontEnd: time 1.393e-06/0.1478, allocations: 0 / 307.6 MB, free: 11.87 MB / 266.7 MB Notification: Performance of Transformations before backend: time 2.731e-05/0.1479, allocations: 4 kB / 307.6 MB, free: 11.86 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.001805/0.1497, allocations: 1.937 MB / 309.6 MB, free: 10.65 MB / 266.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.451e-05/0.1497, allocations: 9.297 kB / 309.6 MB, free: 10.65 MB / 266.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001904/0.1499, allocations: 140 kB / 309.7 MB, free: 10.64 MB / 266.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001222/0.1511, allocations: 1.121 MB / 310.8 MB, free: 9.934 MB / 266.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.848e-05/0.1511, allocations: 14.97 kB / 310.8 MB, free: 9.93 MB / 266.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.951e-05/0.1512, allocations: 32.02 kB / 310.9 MB, free: 9.914 MB / 266.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003878/0.1516, allocations: 284.9 kB / 311.1 MB, free: 9.734 MB / 266.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.858e-06/0.1516, allocations: 0 / 311.1 MB, free: 9.734 MB / 266.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.262e-05/0.1516, allocations: 20.05 kB / 311.2 MB, free: 9.719 MB / 266.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.264e-05/0.1516, allocations: 13.34 kB / 311.2 MB, free: 9.715 MB / 266.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.000236/0.1519, allocations: 109.8 kB / 311.3 MB, free: 9.695 MB / 266.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001346/0.1532, allocations: 0.7967 MB / 312.1 MB, free: 9.258 MB / 266.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002153/0.1534, allocations: 178.8 kB / 312.3 MB, free: 9.164 MB / 266.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002175/0.1536, allocations: 205.5 kB / 312.5 MB, free: 9.117 MB / 266.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.01201/0.1657, allocations: 11.58 MB / 324 MB, free: 13.31 MB / 282.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001936/0.1658, allocations: 159.7 kB / 324.2 MB, free: 13.15 MB / 282.7 MB Notification: Performance of pre-optimization done (n=29): time 2.165e-06/0.1659, allocations: 0 / 324.2 MB, free: 13.15 MB / 282.7 MB Notification: Performance of matching and sorting (n=29): time 0.0005459/0.1664, allocations: 332 kB / 324.5 MB, free: 12.82 MB / 282.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.454e-05/0.1664, allocations: 67.39 kB / 324.6 MB, free: 12.74 MB / 282.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0007914/0.1672, allocations: 1.321 MB / 325.9 MB, free: 11.65 MB / 282.7 MB Notification: Performance of collectPreVariables (initialization): time 2.685e-05/0.1672, allocations: 33.69 kB / 325.9 MB, free: 11.61 MB / 282.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002069/0.1675, allocations: 410.6 kB / 326.3 MB, free: 11.29 MB / 282.7 MB Notification: Performance of collectInitialBindings (initialization): time 5.974e-05/0.1675, allocations: 100.8 kB / 326.4 MB, free: 11.2 MB / 282.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001003/0.1676, allocations: 112 kB / 326.5 MB, free: 11.09 MB / 282.7 MB Notification: Performance of setup shared object (initialization): time 7.107e-05/0.1677, allocations: 323.6 kB / 326.9 MB, free: 10.78 MB / 282.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 6.596e-05/0.1678, allocations: 47.88 kB / 326.9 MB, free: 10.73 MB / 282.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001495/0.1679, allocations: 253.8 kB / 327.2 MB, free: 10.41 MB / 282.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002486/0.1682, allocations: 345.8 kB / 327.5 MB, free: 10.02 MB / 282.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.727e-06/0.1682, allocations: 2.531 kB / 327.5 MB, free: 10.02 MB / 282.7 MB Notification: Performance of matching and sorting (n=62) (initialization): time 0.0004217/0.1686, allocations: 413.4 kB / 327.9 MB, free: 9.617 MB / 282.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.426e-05/0.1686, allocations: 8 kB / 327.9 MB, free: 9.609 MB / 282.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.723e-05/0.1686, allocations: 8 kB / 327.9 MB, free: 9.602 MB / 282.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001564/0.1688, allocations: 81.31 kB / 328 MB, free: 9.52 MB / 282.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000193/0.169, allocations: 103.8 kB / 328.1 MB, free: 9.418 MB / 282.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0003042/0.1693, allocations: 0.5737 MB / 328.7 MB, free: 8.824 MB / 282.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002601/0.1695, allocations: 59.61 kB / 328.7 MB, free: 8.766 MB / 282.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.854e-05/0.1696, allocations: 20 kB / 328.8 MB, free: 8.746 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.0001662/0.1697, allocations: 153.6 kB / 328.9 MB, free: 8.586 MB / 282.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 9.66e-05/0.1698, allocations: 123.8 kB / 329 MB, free: 8.465 MB / 282.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0006085/0.1704, allocations: 449.1 kB / 329.5 MB, free: 8.027 MB / 282.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.138e-06/0.1704, allocations: 4 kB / 329.5 MB, free: 8.023 MB / 282.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.302e-06/0.1704, allocations: 0 / 329.5 MB, free: 8.023 MB / 282.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.338e-06/0.1705, allocations: 3.984 kB / 329.5 MB, free: 8.02 MB / 282.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0007912/0.1712, allocations: 0.8897 MB / 330.4 MB, free: 7.281 MB / 282.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.61e-05/0.1713, allocations: 4.062 kB / 330.4 MB, free: 7.277 MB / 282.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 9.74e-05/0.1714, allocations: 43.91 kB / 330.4 MB, free: 7.234 MB / 282.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001103/0.1715, allocations: 61.61 kB / 330.5 MB, free: 7.176 MB / 282.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.869e-05/0.1715, allocations: 11.92 kB / 330.5 MB, free: 7.164 MB / 282.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0002554/0.1717, allocations: 0.5577 MB / 331 MB, free: 6.586 MB / 282.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.943e-06/0.1717, allocations: 4 kB / 331 MB, free: 6.582 MB / 282.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003109/0.1721, allocations: 395.5 kB / 331.4 MB, free: 6.176 MB / 282.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001952/0.1722, allocations: 193.2 kB / 331.6 MB, free: 5.988 MB / 282.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 9.683e-05/0.1723, allocations: 8 kB / 331.6 MB, free: 5.98 MB / 282.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001908/0.1725, allocations: 20.86 kB / 331.6 MB, free: 5.961 MB / 282.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.482e-05/0.1726, allocations: 35.88 kB / 331.7 MB, free: 5.926 MB / 282.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.949e-05/0.1726, allocations: 4 kB / 331.7 MB, free: 5.922 MB / 282.7 MB Notification: Performance of sorting global known variables: time 0.0004245/0.173, allocations: 0.6857 MB / 332.4 MB, free: 5.301 MB / 282.7 MB Notification: Performance of sort global known variables: time 6e-08/0.173, allocations: 0 / 332.4 MB, free: 5.301 MB / 282.7 MB Notification: Performance of remove unused functions: time 0.000513/0.1736, allocations: 331.6 kB / 332.7 MB, free: 4.977 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.0006154/0.1742, allocations: 0.6638 MB / 333.4 MB, free: 4.414 MB / 282.7 MB Notification: Performance of simCode: created initialization part: time 0.0003395/0.1745, allocations: 266.3 kB / 333.6 MB, free: 4.148 MB / 282.7 MB Notification: Performance of simCode: created event and clocks part: time 1.624e-05/0.1745, allocations: 20 kB / 333.6 MB, free: 4.129 MB / 282.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0001613/0.1747, allocations: 148.3 kB / 333.8 MB, free: 3.973 MB / 282.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006844/0.1754, allocations: 314.6 kB / 334.1 MB, free: 3.664 MB / 282.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001848/0.1772, allocations: 1.995 MB / 336.1 MB, free: 1.629 MB / 282.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001251/0.1773, allocations: 211.2 kB / 336.3 MB, free: 1.398 MB / 282.7 MB Notification: Performance of simCode: alias equations: time 0.0003247/0.1777, allocations: 199.9 kB / 336.5 MB, free: 1.199 MB / 282.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003301/0.178, allocations: 317.2 kB / 336.8 MB, free: 0.8867 MB / 282.7 MB Notification: Performance of SimCode: time 6.51e-07/0.178, allocations: 0 / 336.8 MB, free: 0.8867 MB / 282.7 MB Notification: Performance of Templates: time 0.02492/0.2029, allocations: 22.46 MB / 359.3 MB, free: 10.69 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 -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.928253629244864]