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.0009617/0.0009617, allocations: 88.86 kB / 21.5 MB, free: 2.988 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.0009606/0.0009606, allocations: 163.4 kB / 24.91 MB, free: 8.715 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 0.8927/0.8927, allocations: 177 MB / 205.2 MB, free: 5.012 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.232e-06/1.232e-06, allocations: 0 / 273.4 MB, free: 1.023 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 1.065e-05/1.188e-05, allocations: 5.406 kB / 273.4 MB, free: 1.02 MB / 250.7 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Spice3.Examples.Inverter): time 0.005341/0.005353, allocations: 7.62 MB / 281 MB, free: 9.355 MB / 266.7 MB Notification: Performance of NFInst.instExpressions: time 0.1301/0.1354, allocations: 18.49 MB / 299.5 MB, free: 14.45 MB / 266.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001106/0.1365, allocations: 97.03 kB / 299.6 MB, free: 14.45 MB / 266.7 MB Notification: Performance of NFTyping.typeComponents: time 0.002029/0.1385, allocations: 0.7942 MB / 300.4 MB, free: 14.18 MB / 266.7 MB Notification: Performance of NFTyping.typeBindings: time 0.005296/0.1438, allocations: 1.84 MB / 302.3 MB, free: 13.46 MB / 266.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.004185/0.148, allocations: 1.307 MB / 303.6 MB, free: 12.91 MB / 266.7 MB Notification: Performance of NFFlatten.flatten: time 0.003944/0.152, allocations: 3.431 MB / 307 MB, free: 11.85 MB / 266.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0003358/0.1523, allocations: 148.6 kB / 307.1 MB, free: 11.73 MB / 266.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001861/0.1542, allocations: 1.538 MB / 308.7 MB, free: 11.28 MB / 266.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0007279/0.1549, allocations: 431.7 kB / 309.1 MB, free: 11.11 MB / 266.7 MB Notification: Performance of NFPackage.collectConstants: time 0.0001121/0.155, allocations: 39 kB / 309.1 MB, free: 11.11 MB / 266.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.003128/0.1581, allocations: 1.226 MB / 310.4 MB, free: 10.73 MB / 266.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0001357/0.1583, allocations: 171.8 kB / 310.5 MB, free: 10.59 MB / 266.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0004684/0.1587, allocations: 387.5 kB / 310.9 MB, free: 10.45 MB / 266.7 MB Notification: Performance of NFConvertDAE.convert: time 0.002362/0.1611, allocations: 1.801 MB / 312.7 MB, free: 9.426 MB / 266.7 MB Notification: Performance of FrontEnd - DAE generated: time 4.378e-06/0.1611, allocations: 0 / 312.7 MB, free: 9.426 MB / 266.7 MB Notification: Performance of FrontEnd: time 1.824e-06/0.1611, allocations: 0 / 312.7 MB, free: 9.426 MB / 266.7 MB Notification: Performance of Transformations before backend: time 4.607e-05/0.1611, allocations: 0 / 312.7 MB, free: 9.426 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.001487/0.1626, allocations: 1.952 MB / 314.7 MB, free: 7.664 MB / 266.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.367e-05/0.1627, allocations: 11.98 kB / 314.7 MB, free: 7.652 MB / 266.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001177/0.1628, allocations: 139.8 kB / 314.8 MB, free: 7.516 MB / 266.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0008424/0.1636, allocations: 1.113 MB / 315.9 MB, free: 6.312 MB / 266.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.416e-05/0.1636, allocations: 16.66 kB / 315.9 MB, free: 6.297 MB / 266.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.153e-05/0.1637, allocations: 31.98 kB / 316 MB, free: 6.266 MB / 266.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003104/0.164, allocations: 285.4 kB / 316.2 MB, free: 5.973 MB / 266.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.588e-06/0.164, allocations: 0 / 316.2 MB, free: 5.973 MB / 266.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.238e-05/0.164, allocations: 12 kB / 316.3 MB, free: 5.961 MB / 266.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.06e-05/0.164, allocations: 11.98 kB / 316.3 MB, free: 5.949 MB / 266.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001651/0.1642, allocations: 112.5 kB / 316.4 MB, free: 5.844 MB / 266.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0009509/0.1652, allocations: 0.806 MB / 317.2 MB, free: 5.012 MB / 266.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001662/0.1653, allocations: 181.1 kB / 317.4 MB, free: 4.828 MB / 266.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.000153/0.1655, allocations: 198.1 kB / 317.6 MB, free: 4.633 MB / 266.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.01095/0.1764, allocations: 11.59 MB / 329.1 MB, free: 8.609 MB / 282.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002544/0.1767, allocations: 147.8 kB / 329.3 MB, free: 8.453 MB / 282.7 MB Notification: Performance of pre-optimization done (n=29): time 1.783e-06/0.1767, allocations: 0 / 329.3 MB, free: 8.453 MB / 282.7 MB Notification: Performance of matching and sorting (n=29): time 0.0006938/0.1774, allocations: 342.9 kB / 329.6 MB, free: 8.109 MB / 282.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.369e-05/0.1774, allocations: 55.41 kB / 329.7 MB, free: 8.043 MB / 282.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001021/0.1784, allocations: 1.326 MB / 331 MB, free: 6.68 MB / 282.7 MB Notification: Performance of collectPreVariables (initialization): time 3.1e-05/0.1785, allocations: 33.7 kB / 331 MB, free: 6.641 MB / 282.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002606/0.1787, allocations: 420.2 kB / 331.4 MB, free: 6.227 MB / 282.7 MB Notification: Performance of collectInitialBindings (initialization): time 7.058e-05/0.1788, allocations: 95.25 kB / 331.5 MB, free: 6.133 MB / 282.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001302/0.1789, allocations: 106 kB / 331.6 MB, free: 6.023 MB / 282.7 MB Notification: Performance of setup shared object (initialization): time 9.017e-05/0.179, allocations: 329.9 kB / 332 MB, free: 5.695 MB / 282.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 8.561e-05/0.1791, allocations: 40.98 kB / 332 MB, free: 5.652 MB / 282.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001869/0.1793, allocations: 246.9 kB / 332.2 MB, free: 5.324 MB / 282.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003359/0.1796, allocations: 346.2 kB / 332.6 MB, free: 4.895 MB / 282.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.35e-06/0.1796, allocations: 3.984 kB / 332.6 MB, free: 4.891 MB / 282.7 MB Notification: Performance of matching and sorting (n=62) (initialization): time 0.0005868/0.1802, allocations: 414.6 kB / 333 MB, free: 4.477 MB / 282.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.77e-05/0.1802, allocations: 8 kB / 333 MB, free: 4.469 MB / 282.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.338e-05/0.1803, allocations: 19.94 kB / 333 MB, free: 4.449 MB / 282.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001911/0.1805, allocations: 69.25 kB / 333.1 MB, free: 4.379 MB / 282.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002657/0.1807, allocations: 111.8 kB / 333.2 MB, free: 4.27 MB / 282.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0003719/0.1811, allocations: 0.5763 MB / 333.8 MB, free: 3.668 MB / 282.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003865/0.1815, allocations: 59.59 kB / 333.8 MB, free: 3.609 MB / 282.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.199e-05/0.1815, allocations: 24 kB / 333.9 MB, free: 3.586 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.0001932/0.1817, allocations: 145.6 kB / 334 MB, free: 3.434 MB / 282.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001235/0.1818, allocations: 127.9 kB / 334.1 MB, free: 3.309 MB / 282.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0007733/0.1826, allocations: 457.4 kB / 334.6 MB, free: 2.859 MB / 282.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.519e-06/0.1826, allocations: 1.734 kB / 334.6 MB, free: 2.859 MB / 282.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.864e-06/0.1826, allocations: 0 / 334.6 MB, free: 2.859 MB / 282.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.238e-06/0.1826, allocations: 0 / 334.6 MB, free: 2.859 MB / 282.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0009878/0.1836, allocations: 0.8854 MB / 335.5 MB, free: 1.93 MB / 282.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.023e-05/0.1837, allocations: 12.05 kB / 335.5 MB, free: 1.918 MB / 282.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001313/0.1838, allocations: 43.91 kB / 335.5 MB, free: 1.875 MB / 282.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001433/0.1839, allocations: 57.94 kB / 335.6 MB, free: 1.816 MB / 282.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.698e-05/0.184, allocations: 17.11 kB / 335.6 MB, free: 1.801 MB / 282.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.000323/0.1843, allocations: 0.5562 MB / 336.1 MB, free: 1.219 MB / 282.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.242e-06/0.1843, allocations: 4.031 kB / 336.1 MB, free: 1.215 MB / 282.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004029/0.1847, allocations: 383.8 kB / 336.5 MB, free: 0.8125 MB / 282.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002417/0.1849, allocations: 189.3 kB / 336.7 MB, free: 0.6289 MB / 282.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001206/0.185, allocations: 8 kB / 336.7 MB, free: 0.6211 MB / 282.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002567/0.1853, allocations: 15.98 kB / 336.7 MB, free: 0.6055 MB / 282.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.711e-05/0.1854, allocations: 39.88 kB / 336.8 MB, free: 0.5664 MB / 282.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.955e-05/0.1854, allocations: 8 kB / 336.8 MB, free: 0.5586 MB / 282.7 MB Notification: Performance of sorting global known variables: time 0.0005839/0.186, allocations: 0.6829 MB / 337.5 MB, free: 15.85 MB / 298.7 MB Notification: Performance of sort global known variables: time 1.8e-07/0.186, allocations: 0 / 337.5 MB, free: 15.85 MB / 298.7 MB Notification: Performance of remove unused functions: time 0.0007377/0.1867, allocations: 339.4 kB / 337.8 MB, free: 15.52 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.0008161/0.1876, allocations: 0.6642 MB / 338.5 MB, free: 14.85 MB / 298.7 MB Notification: Performance of simCode: created initialization part: time 0.0004596/0.188, allocations: 267.8 kB / 338.7 MB, free: 14.57 MB / 298.7 MB Notification: Performance of simCode: created event and clocks part: time 2.004e-05/0.188, allocations: 20 kB / 338.7 MB, free: 14.55 MB / 298.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0002197/0.1883, allocations: 153.6 kB / 338.9 MB, free: 14.39 MB / 298.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0008877/0.1891, allocations: 312 kB / 339.2 MB, free: 14.09 MB / 298.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002588/0.1917, allocations: 2.009 MB / 341.2 MB, free: 12.03 MB / 298.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000152/0.1919, allocations: 211.2 kB / 341.4 MB, free: 11.8 MB / 298.7 MB Notification: Performance of simCode: alias equations: time 0.0004267/0.1923, allocations: 199.9 kB / 341.6 MB, free: 11.6 MB / 298.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0004239/0.1927, allocations: 313.2 kB / 341.9 MB, free: 11.29 MB / 298.7 MB Notification: Performance of SimCode: time 1.062e-06/0.1927, allocations: 0 / 341.9 MB, free: 11.29 MB / 298.7 MB Notification: Performance of Templates: time 0.03154/0.2243, allocations: 22.51 MB / 364.4 MB, free: 5.027 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 -s gbode -gbm=radauIIA3 -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: 2.8182806028053164]