Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_trunk_Modelica.Electrical.Spice3.Examples.Inverter.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.0009611/0.0009611, allocations: 81.91 kB / 21.43 MB, free: 3.062 MB / 18.57 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.0009366/0.0009366, allocations: 162.7 kB / 24.82 MB, free: 9.262 MB / 18.57 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.006/1.006, allocations: 177 MB / 205.1 MB, free: 5.449 MB / 186.7 MB " [Timeout remaining time 179] Using package Modelica with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo) Using package Complex with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo) Using package ModelicaServices with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo) Running command: translateModel(Modelica.Electrical.Spice3.Examples.Inverter,tolerance=1e-07,outputFormat="mat",numberOfIntervals=2000,variableFilter="time|mp.S.v",fileNamePrefix="Modelica_trunk_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_trunk_Modelica.Electrical.Spice3.Examples.Inverter") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 1.794e-06/1.794e-06, allocations: 0 / 273.3 MB, free: 1.219 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 1.611e-05/1.791e-05, allocations: 6.312 kB / 273.3 MB, free: 1.211 MB / 250.7 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Spice3.Examples.Inverter): time 0.005742/0.00576, allocations: 7.582 MB / 280.9 MB, free: 9.586 MB / 266.7 MB Notification: Performance of NFInst.instExpressions: time 0.1324/0.1381, allocations: 18.17 MB / 299.1 MB, free: 14.41 MB / 266.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0008632/0.139, allocations: 96.44 kB / 299.2 MB, free: 14.41 MB / 266.7 MB Notification: Performance of NFTyping.typeComponents: time 0.001576/0.1406, allocations: 0.7744 MB / 299.9 MB, free: 14.25 MB / 266.7 MB Notification: Performance of NFTyping.typeBindings: time 0.003869/0.1444, allocations: 1.871 MB / 301.8 MB, free: 13.55 MB / 266.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.002919/0.1474, allocations: 1.349 MB / 303.2 MB, free: 13.15 MB / 266.7 MB Notification: Performance of NFFlatten.flatten: time 0.003222/0.1506, allocations: 3.461 MB / 306.6 MB, free: 12.12 MB / 266.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002434/0.1508, allocations: 127.7 kB / 306.7 MB, free: 12.04 MB / 266.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001432/0.1523, allocations: 1.546 MB / 308.3 MB, free: 11.66 MB / 266.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0004505/0.1527, allocations: 425.8 kB / 308.7 MB, free: 11.5 MB / 266.7 MB Notification: Performance of NFPackage.collectConstants: time 7.73e-05/0.1528, allocations: 41.75 kB / 308.7 MB, free: 11.5 MB / 266.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.00182/0.1546, allocations: 1.183 MB / 309.9 MB, free: 11.16 MB / 266.7 MB Notification: Performance of NFScalarize.scalarize: time 8.454e-05/0.1547, allocations: 171.9 kB / 310.1 MB, free: 11.04 MB / 266.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0002487/0.1549, allocations: 386.7 kB / 310.5 MB, free: 10.9 MB / 266.7 MB Notification: Performance of NFConvertDAE.convert: time 0.001427/0.1564, allocations: 1.793 MB / 312.3 MB, free: 9.879 MB / 266.7 MB Notification: Performance of FrontEnd - DAE generated: time 3.517e-06/0.1564, allocations: 2.344 kB / 312.3 MB, free: 9.879 MB / 266.7 MB Notification: Performance of FrontEnd: time 8.92e-07/0.1564, allocations: 0 / 312.3 MB, free: 9.879 MB / 266.7 MB Notification: Performance of Transformations before backend: time 1.342e-05/0.1564, allocations: 0 / 312.3 MB, free: 9.879 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.001314/0.1577, allocations: 2.157 MB / 314.4 MB, free: 7.898 MB / 266.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.212e-05/0.1577, allocations: 15.97 kB / 314.4 MB, free: 7.883 MB / 266.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001378/0.1579, allocations: 218.8 kB / 314.7 MB, free: 7.668 MB / 266.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0008714/0.1587, allocations: 1.38 MB / 316 MB, free: 6.207 MB / 266.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.376e-05/0.1588, allocations: 20.66 kB / 316.1 MB, free: 6.188 MB / 266.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.459e-05/0.1588, allocations: 35.94 kB / 316.1 MB, free: 6.152 MB / 266.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002994/0.1591, allocations: 290.6 kB / 316.4 MB, free: 5.859 MB / 266.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.608e-06/0.1591, allocations: 0 / 316.4 MB, free: 5.859 MB / 266.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.303e-05/0.1591, allocations: 16 kB / 316.4 MB, free: 5.844 MB / 266.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.217e-06/0.1591, allocations: 15.98 kB / 316.4 MB, free: 5.828 MB / 266.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002064/0.1593, allocations: 214.6 kB / 316.6 MB, free: 5.617 MB / 266.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001124/0.1605, allocations: 1.228 MB / 317.8 MB, free: 4.352 MB / 266.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001788/0.1606, allocations: 168.5 kB / 318 MB, free: 4.172 MB / 266.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001732/0.1608, allocations: 228.7 kB / 318.2 MB, free: 3.945 MB / 266.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.006838/0.1677, allocations: 7.8 MB / 326 MB, free: 11.96 MB / 282.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002001/0.1679, allocations: 177.5 kB / 326.2 MB, free: 11.78 MB / 282.7 MB Notification: Performance of pre-optimization done (n=29): time 1.283e-06/0.1679, allocations: 4 kB / 326.2 MB, free: 11.77 MB / 282.7 MB Notification: Performance of matching and sorting (n=29): time 0.0006527/0.1685, allocations: 0.524 MB / 326.7 MB, free: 11.24 MB / 282.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.832e-05/0.1685, allocations: 59.41 kB / 326.8 MB, free: 11.17 MB / 282.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001/0.1695, allocations: 1.561 MB / 328.4 MB, free: 9.562 MB / 282.7 MB Notification: Performance of collectPreVariables (initialization): time 2.797e-05/0.1696, allocations: 33.7 kB / 328.4 MB, free: 9.523 MB / 282.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0004691/0.17, allocations: 0.8414 MB / 329.2 MB, free: 8.676 MB / 282.7 MB Notification: Performance of collectInitialBindings (initialization): time 6.269e-05/0.1701, allocations: 95.25 kB / 329.3 MB, free: 8.582 MB / 282.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001191/0.1702, allocations: 139.6 kB / 329.5 MB, free: 8.438 MB / 282.7 MB Notification: Performance of setup shared object (initialization): time 0.0001217/0.1703, allocations: 0.4965 MB / 330 MB, free: 7.934 MB / 282.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 7.925e-05/0.1704, allocations: 57.59 kB / 330 MB, free: 7.879 MB / 282.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002128/0.1706, allocations: 359.7 kB / 330.4 MB, free: 7.402 MB / 282.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003406/0.171, allocations: 455 kB / 330.8 MB, free: 6.832 MB / 282.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.751e-06/0.171, allocations: 4 kB / 330.8 MB, free: 6.828 MB / 282.7 MB Notification: Performance of matching and sorting (n=62) (initialization): time 0.0005666/0.1715, allocations: 0.5756 MB / 331.4 MB, free: 6.242 MB / 282.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.754e-05/0.1716, allocations: 15.92 kB / 331.4 MB, free: 6.227 MB / 282.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.807e-05/0.1716, allocations: 46.03 kB / 331.4 MB, free: 6.184 MB / 282.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001725/0.1718, allocations: 123.6 kB / 331.6 MB, free: 6.059 MB / 282.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001973/0.172, allocations: 103.8 kB / 331.7 MB, free: 5.957 MB / 282.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0004184/0.1724, allocations: 0.9061 MB / 332.6 MB, free: 5.02 MB / 282.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002483/0.1726, allocations: 67.55 kB / 332.6 MB, free: 4.953 MB / 282.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.174e-05/0.1727, allocations: 32.03 kB / 332.7 MB, free: 4.922 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.000181/0.1729, allocations: 196.3 kB / 332.9 MB, free: 4.719 MB / 282.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001249/0.173, allocations: 206.8 kB / 333.1 MB, free: 4.516 MB / 282.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0007116/0.1737, allocations: 0.5702 MB / 333.6 MB, free: 3.938 MB / 282.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.038e-06/0.1737, allocations: 4 kB / 333.6 MB, free: 3.934 MB / 282.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.643e-06/0.1737, allocations: 0 / 333.6 MB, free: 3.934 MB / 282.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.599e-06/0.1737, allocations: 3.938 kB / 333.6 MB, free: 3.93 MB / 282.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.00108/0.1748, allocations: 1.246 MB / 334.9 MB, free: 2.625 MB / 282.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.747e-05/0.1748, allocations: 36 kB / 334.9 MB, free: 2.59 MB / 282.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 9.294e-05/0.1749, allocations: 31.97 kB / 335 MB, free: 2.559 MB / 282.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001392/0.175, allocations: 124.3 kB / 335.1 MB, free: 2.434 MB / 282.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.199e-05/0.1751, allocations: 23.5 kB / 335.1 MB, free: 2.414 MB / 282.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0003899/0.1755, allocations: 0.8976 MB / 336 MB, free: 1.484 MB / 282.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.944e-06/0.1755, allocations: 4 kB / 336 MB, free: 1.48 MB / 282.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004582/0.1759, allocations: 0.6239 MB / 336.6 MB, free: 0.8203 MB / 282.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002172/0.1761, allocations: 224.5 kB / 336.8 MB, free: 0.6016 MB / 282.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 8.045e-05/0.1762, allocations: 11.98 kB / 336.9 MB, free: 0.5898 MB / 282.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001889/0.1764, allocations: 15.98 kB / 336.9 MB, free: 0.5742 MB / 282.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.075e-05/0.1765, allocations: 47.86 kB / 336.9 MB, free: 0.5273 MB / 282.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.64e-05/0.1765, allocations: 23.98 kB / 336.9 MB, free: 0.5039 MB / 282.7 MB Notification: Performance of sorting global known variables: time 0.000555/0.1771, allocations: 0.8395 MB / 337.8 MB, free: 15.64 MB / 298.7 MB Notification: Performance of sort global known variables: time 6e-08/0.1771, allocations: 0 / 337.8 MB, free: 15.64 MB / 298.7 MB Notification: Performance of remove unused functions: time 0.0005595/0.1776, allocations: 335.6 kB / 338.1 MB, free: 15.32 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.0006463/0.1783, allocations: 0.6529 MB / 338.8 MB, free: 14.65 MB / 298.7 MB Notification: Performance of simCode: created initialization part: time 0.0004021/0.1787, allocations: 354.7 kB / 339.1 MB, free: 14.29 MB / 298.7 MB Notification: Performance of simCode: created event and clocks part: time 1.392e-06/0.1787, allocations: 0 / 339.1 MB, free: 14.29 MB / 298.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0001865/0.1789, allocations: 208 kB / 339.3 MB, free: 14.07 MB / 298.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0007478/0.1796, allocations: 337.5 kB / 339.6 MB, free: 13.75 MB / 298.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00197/0.1816, allocations: 2.103 MB / 341.7 MB, free: 11.59 MB / 298.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001242/0.1817, allocations: 215 kB / 342 MB, free: 11.36 MB / 298.7 MB Notification: Performance of simCode: alias equations: time 0.000336/0.182, allocations: 199.9 kB / 342.1 MB, free: 11.16 MB / 298.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003486/0.1824, allocations: 366 kB / 342.5 MB, free: 10.8 MB / 298.7 MB Notification: Performance of SimCode: time 5.41e-07/0.1824, allocations: 0 / 342.5 MB, free: 10.8 MB / 298.7 MB Notification: Performance of Templates: time 0.02537/0.2078, allocations: 22.72 MB / 365.2 MB, free: 4.324 MB / 314.7 MB " [Timeout remaining time 660] make -j1 -f Modelica_trunk_Modelica.Electrical.Spice3.Examples.Inverter.makefile [Timeout 660] (rm -f Modelica_trunk_Modelica.Electrical.Spice3.Examples.Inverter.pipe ; mkfifo Modelica_trunk_Modelica.Electrical.Spice3.Examples.Inverter.pipe ; head -c 1048576 < Modelica_trunk_Modelica.Electrical.Spice3.Examples.Inverter.pipe >> ../files/Modelica_trunk_Modelica.Electrical.Spice3.Examples.Inverter.sim & ./Modelica_trunk_Modelica.Electrical.Spice3.Examples.Inverter -abortSlowSimulation -alarm=240 -emit_protected -lv LOG_STATS > Modelica_trunk_Modelica.Electrical.Spice3.Examples.Inverter.pipe 2>&1) [Timeout 240] diffSimulationResults("Modelica_trunk_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.033636965788901]