Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.1.0_Modelica.Electrical.Spice3.Examples.Inverter.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo): time 0.001086/0.001086, allocations: 71.77 kB / 21.69 MB, free: 2.859 MB / 18.57 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo): time 0.001135/0.001135, allocations: 166.2 kB / 24.99 MB, free: 8.336 MB / 18.57 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo): time 0.9207/0.9207, allocations: 177.1 MB / 205.3 MB, free: 5.605 MB / 186.7 MB " [Timeout remaining time 179] Using package Modelica with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo) Using package Complex with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo) Using package ModelicaServices with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.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.1.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.1.0_Modelica.Electrical.Spice3.Examples.Inverter") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 1.062e-06/1.062e-06, allocations: 0 / 273 MB, free: 1.852 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 1.725e-05/1.831e-05, allocations: 2.312 kB / 273 MB, free: 1.848 MB / 250.7 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Spice3.Examples.Inverter): time 0.005404/0.005423, allocations: 7.731 MB / 280.8 MB, free: 10.08 MB / 266.7 MB Notification: Performance of NFInst.instExpressions: time 0.1208/0.1263, allocations: 18.49 MB / 299.3 MB, free: 14.01 MB / 266.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0009023/0.1272, allocations: 95.84 kB / 299.4 MB, free: 14.01 MB / 266.7 MB Notification: Performance of NFTyping.typeComponents: time 0.001728/0.1289, allocations: 0.7743 MB / 300.1 MB, free: 13.88 MB / 266.7 MB Notification: Performance of NFTyping.typeBindings: time 0.00435/0.1333, allocations: 1.873 MB / 302 MB, free: 13.18 MB / 266.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.00379/0.137, allocations: 1.344 MB / 303.3 MB, free: 12.79 MB / 266.7 MB Notification: Performance of NFFlatten.flatten: time 0.003713/0.1408, allocations: 3.393 MB / 306.7 MB, free: 11.87 MB / 266.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002762/0.141, allocations: 128.4 kB / 306.9 MB, free: 11.79 MB / 266.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0007731/0.1418, allocations: 0.8023 MB / 307.7 MB, free: 11.56 MB / 266.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0004011/0.1422, allocations: 415.1 kB / 308.1 MB, free: 11.45 MB / 266.7 MB Notification: Performance of NFPackage.collectConstants: time 5.898e-05/0.1423, allocations: 41.53 kB / 308.1 MB, free: 11.45 MB / 266.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.002363/0.1446, allocations: 1.179 MB / 309.3 MB, free: 11.22 MB / 266.7 MB Notification: Performance of NFScalarize.scalarize: time 8.938e-05/0.1447, allocations: 171.1 kB / 309.5 MB, free: 11.09 MB / 266.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0002998/0.145, allocations: 383.4 kB / 309.8 MB, free: 10.96 MB / 266.7 MB Notification: Performance of NFConvertDAE.convert: time 0.001797/0.1468, allocations: 1.789 MB / 311.6 MB, free: 10.14 MB / 266.7 MB Notification: Performance of FrontEnd - DAE generated: time 4.899e-06/0.1468, allocations: 0 / 311.6 MB, free: 10.14 MB / 266.7 MB Notification: Performance of FrontEnd: time 1.152e-06/0.1468, allocations: 0 / 311.6 MB, free: 10.14 MB / 266.7 MB Notification: Performance of Transformations before backend: time 1.429e-05/0.1468, allocations: 3 kB / 311.6 MB, free: 10.14 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.001527/0.1484, allocations: 2.127 MB / 313.8 MB, free: 8.508 MB / 266.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.71e-05/0.1484, allocations: 12.03 kB / 313.8 MB, free: 8.504 MB / 266.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001784/0.1486, allocations: 219.7 kB / 314 MB, free: 8.395 MB / 266.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001033/0.1496, allocations: 1.416 MB / 315.4 MB, free: 7.332 MB / 266.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.618e-05/0.1496, allocations: 27.69 kB / 315.4 MB, free: 7.309 MB / 266.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.856e-05/0.1497, allocations: 31.94 kB / 315.5 MB, free: 7.277 MB / 266.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003914/0.1501, allocations: 322.6 kB / 315.8 MB, free: 6.953 MB / 266.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.638e-06/0.1501, allocations: 7.922 kB / 315.8 MB, free: 6.945 MB / 266.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.889e-05/0.1501, allocations: 8 kB / 315.8 MB, free: 6.938 MB / 266.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.117e-05/0.1501, allocations: 12 kB / 315.8 MB, free: 6.926 MB / 266.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.00028/0.1504, allocations: 251.8 kB / 316 MB, free: 6.676 MB / 266.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001382/0.1518, allocations: 1.482 MB / 317.5 MB, free: 5.145 MB / 266.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.000248/0.152, allocations: 184.9 kB / 317.7 MB, free: 4.953 MB / 266.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002384/0.1523, allocations: 248.7 kB / 317.9 MB, free: 4.707 MB / 266.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.006895/0.1592, allocations: 7.773 MB / 325.7 MB, free: 12.73 MB / 282.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002506/0.1594, allocations: 193.4 kB / 325.9 MB, free: 12.53 MB / 282.7 MB Notification: Performance of pre-optimization done (n=29): time 2.255e-06/0.1594, allocations: 0 / 325.9 MB, free: 12.53 MB / 282.7 MB Notification: Performance of matching and sorting (n=29): time 0.0008328/0.1602, allocations: 0.5571 MB / 326.5 MB, free: 11.96 MB / 282.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.63e-05/0.1603, allocations: 55.41 kB / 326.5 MB, free: 11.89 MB / 282.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001175/0.1615, allocations: 1.585 MB / 328.1 MB, free: 10.27 MB / 282.7 MB Notification: Performance of collectPreVariables (initialization): time 2.693e-05/0.1615, allocations: 33.7 kB / 328.1 MB, free: 10.23 MB / 282.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0004709/0.162, allocations: 0.8339 MB / 329 MB, free: 9.387 MB / 282.7 MB Notification: Performance of collectInitialBindings (initialization): time 6.497e-05/0.162, allocations: 103.2 kB / 329.1 MB, free: 9.285 MB / 282.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001139/0.1621, allocations: 127.7 kB / 329.2 MB, free: 9.152 MB / 282.7 MB Notification: Performance of setup shared object (initialization): time 0.0001184/0.1623, allocations: 0.4965 MB / 329.7 MB, free: 8.648 MB / 282.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001197/0.1624, allocations: 72.95 kB / 329.8 MB, free: 8.578 MB / 282.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002457/0.1626, allocations: 364.2 kB / 330.1 MB, free: 8.094 MB / 282.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003895/0.163, allocations: 467.1 kB / 330.6 MB, free: 7.512 MB / 282.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.878e-06/0.163, allocations: 0 / 330.6 MB, free: 7.512 MB / 282.7 MB Notification: Performance of matching and sorting (n=62) (initialization): time 0.0006229/0.1636, allocations: 0.6223 MB / 331.2 MB, free: 6.879 MB / 282.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.712e-05/0.1636, allocations: 11.94 kB / 331.2 MB, free: 6.867 MB / 282.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.616e-05/0.1637, allocations: 47.25 kB / 331.3 MB, free: 6.824 MB / 282.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002156/0.1639, allocations: 131.6 kB / 331.4 MB, free: 6.691 MB / 282.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002147/0.1641, allocations: 103.8 kB / 331.5 MB, free: 6.59 MB / 282.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0004729/0.1646, allocations: 0.9174 MB / 332.4 MB, free: 5.641 MB / 282.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000261/0.1648, allocations: 63.61 kB / 332.5 MB, free: 5.578 MB / 282.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.215e-05/0.1649, allocations: 32 kB / 332.5 MB, free: 5.547 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.0001938/0.1651, allocations: 197.1 kB / 332.7 MB, free: 5.344 MB / 282.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001336/0.1652, allocations: 202.8 kB / 332.9 MB, free: 5.145 MB / 282.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0007888/0.166, allocations: 0.5979 MB / 333.5 MB, free: 4.539 MB / 282.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.697e-06/0.166, allocations: 0 / 333.5 MB, free: 4.539 MB / 282.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.029e-06/0.166, allocations: 7.938 kB / 333.5 MB, free: 4.531 MB / 282.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.559e-06/0.166, allocations: 0 / 333.5 MB, free: 4.531 MB / 282.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001132/0.1672, allocations: 1.222 MB / 334.7 MB, free: 3.25 MB / 282.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.32e-05/0.1672, allocations: 35.98 kB / 334.8 MB, free: 3.215 MB / 282.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001048/0.1673, allocations: 43.91 kB / 334.8 MB, free: 3.172 MB / 282.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001443/0.1674, allocations: 115.7 kB / 334.9 MB, free: 3.055 MB / 282.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.458e-05/0.1675, allocations: 23.98 kB / 334.9 MB, free: 3.031 MB / 282.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0004013/0.1679, allocations: 0.91 MB / 335.8 MB, free: 2.09 MB / 282.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.863e-06/0.1679, allocations: 0 / 335.8 MB, free: 2.09 MB / 282.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0005332/0.1684, allocations: 0.6393 MB / 336.5 MB, free: 1.414 MB / 282.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002094/0.1686, allocations: 220.7 kB / 336.7 MB, free: 1.199 MB / 282.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 9.712e-05/0.1687, allocations: 11.98 kB / 336.7 MB, free: 1.188 MB / 282.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002017/0.1689, allocations: 19.98 kB / 336.7 MB, free: 1.168 MB / 282.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.978e-05/0.169, allocations: 43.89 kB / 336.8 MB, free: 1.125 MB / 282.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.829e-05/0.169, allocations: 19.98 kB / 336.8 MB, free: 1.105 MB / 282.7 MB Notification: Performance of sorting global known variables: time 0.0007026/0.1697, allocations: 0.8984 MB / 337.7 MB, free: 192 kB / 282.7 MB Notification: Performance of sort global known variables: time 3.11e-07/0.1697, allocations: 0 / 337.7 MB, free: 192 kB / 282.7 MB Notification: Performance of remove unused functions: time 0.0005851/0.1703, allocations: 335.6 kB / 338 MB, free: 15.86 MB / 298.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.0006101/0.1709, allocations: 0.6013 MB / 338.6 MB, free: 15.25 MB / 298.7 MB Notification: Performance of simCode: created initialization part: time 0.0005005/0.1714, allocations: 375 kB / 339 MB, free: 14.87 MB / 298.7 MB Notification: Performance of simCode: created event and clocks part: time 1.423e-06/0.1714, allocations: 0 / 339 MB, free: 14.87 MB / 298.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0002233/0.1716, allocations: 220 kB / 339.2 MB, free: 14.64 MB / 298.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0007772/0.1724, allocations: 326.6 kB / 339.5 MB, free: 14.33 MB / 298.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002041/0.1745, allocations: 2.111 MB / 341.6 MB, free: 12.16 MB / 298.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001244/0.1746, allocations: 219 kB / 341.8 MB, free: 11.93 MB / 298.7 MB Notification: Performance of simCode: alias equations: time 0.0003275/0.1749, allocations: 199.8 kB / 342 MB, free: 11.73 MB / 298.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 9.993e-05/0.175, allocations: 96.48 kB / 342.1 MB, free: 11.63 MB / 298.7 MB Notification: Performance of SimCode: time 8.92e-07/0.175, allocations: 3.938 kB / 342.1 MB, free: 11.63 MB / 298.7 MB Notification: Performance of Templates: time 0.02258/0.1976, allocations: 19.59 MB / 361.7 MB, free: 8.281 MB / 314.7 MB " [Timeout remaining time 660] make -j1 -f Modelica_4.1.0_Modelica.Electrical.Spice3.Examples.Inverter.makefile [Timeout 660] (rm -f Modelica_4.1.0_Modelica.Electrical.Spice3.Examples.Inverter.pipe ; mkfifo Modelica_4.1.0_Modelica.Electrical.Spice3.Examples.Inverter.pipe ; head -c 1048576 < Modelica_4.1.0_Modelica.Electrical.Spice3.Examples.Inverter.pipe >> ../files/Modelica_4.1.0_Modelica.Electrical.Spice3.Examples.Inverter.sim & ./Modelica_4.1.0_Modelica.Electrical.Spice3.Examples.Inverter -abortSlowSimulation -alarm=240 -emit_protected -lv LOG_STATS > Modelica_4.1.0_Modelica.Electrical.Spice3.Examples.Inverter.pipe 2>&1) [Timeout 240] diffSimulationResults("Modelica_4.1.0_Modelica.Electrical.Spice3.Examples.Inverter_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.1.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: 3.124304110882804]