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.001383/0.001383, allocations: 79.69 kB / 21.7 MB, free: 2.848 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.001126/0.001126, allocations: 159.8 kB / 24.99 MB, free: 7.789 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.9597/0.9597, allocations: 177 MB / 205.2 MB, free: 5.559 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.603e-06/1.603e-06, allocations: 0 / 273 MB, free: 1.746 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 2.38e-05/2.541e-05, allocations: 5.125 kB / 273 MB, free: 1.742 MB / 250.7 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Spice3.Examples.Inverter): time 0.005962/0.005987, allocations: 7.734 MB / 280.7 MB, free: 9.965 MB / 266.7 MB Notification: Performance of NFInst.instExpressions: time 0.1229/0.1289, allocations: 18.5 MB / 299.2 MB, free: 14.02 MB / 266.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.000982/0.1299, allocations: 93.94 kB / 299.3 MB, free: 14.02 MB / 266.7 MB Notification: Performance of NFTyping.typeComponents: time 0.001793/0.1317, allocations: 0.7773 MB / 300.1 MB, free: 13.87 MB / 266.7 MB Notification: Performance of NFTyping.typeBindings: time 0.00456/0.1362, allocations: 1.873 MB / 302 MB, free: 13.16 MB / 266.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.003626/0.1399, allocations: 1.339 MB / 303.3 MB, free: 12.78 MB / 266.7 MB Notification: Performance of NFFlatten.flatten: time 0.003857/0.1437, allocations: 3.408 MB / 306.7 MB, free: 11.8 MB / 266.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0003066/0.144, allocations: 124 kB / 306.8 MB, free: 11.72 MB / 266.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0009542/0.145, allocations: 0.7944 MB / 307.6 MB, free: 11.5 MB / 266.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0004816/0.1455, allocations: 418.4 kB / 308 MB, free: 11.39 MB / 266.7 MB Notification: Performance of NFPackage.collectConstants: time 8.696e-05/0.1455, allocations: 41.34 kB / 308.1 MB, free: 11.39 MB / 266.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.002474/0.148, allocations: 1.178 MB / 309.2 MB, free: 11.14 MB / 266.7 MB Notification: Performance of NFScalarize.scalarize: time 9.913e-05/0.1481, allocations: 173.6 kB / 309.4 MB, free: 11.01 MB / 266.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0003269/0.1484, allocations: 375.5 kB / 309.8 MB, free: 10.88 MB / 266.7 MB Notification: Performance of NFConvertDAE.convert: time 0.001846/0.1503, allocations: 1.796 MB / 311.6 MB, free: 9.996 MB / 266.7 MB Notification: Performance of FrontEnd - DAE generated: time 6.622e-06/0.1503, allocations: 0 / 311.6 MB, free: 9.996 MB / 266.7 MB Notification: Performance of FrontEnd: time 2.204e-06/0.1503, allocations: 3.938 kB / 311.6 MB, free: 9.992 MB / 266.7 MB Notification: Performance of Transformations before backend: time 4.05e-05/0.1503, allocations: 0 / 311.6 MB, free: 9.992 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.001828/0.1522, allocations: 2.121 MB / 313.7 MB, free: 8.359 MB / 266.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.316e-05/0.1522, allocations: 12.61 kB / 313.7 MB, free: 8.355 MB / 266.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002137/0.1524, allocations: 222.8 kB / 313.9 MB, free: 8.242 MB / 266.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001134/0.1536, allocations: 1.425 MB / 315.4 MB, free: 7.121 MB / 266.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.692e-05/0.1536, allocations: 20.66 kB / 315.4 MB, free: 7.102 MB / 266.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.04e-05/0.1536, allocations: 31.94 kB / 315.4 MB, free: 7.07 MB / 266.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004244/0.154, allocations: 322.6 kB / 315.7 MB, free: 6.746 MB / 266.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.004e-05/0.1541, allocations: 4 kB / 315.7 MB, free: 6.742 MB / 266.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.65e-05/0.1541, allocations: 15.98 kB / 315.7 MB, free: 6.727 MB / 266.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.133e-05/0.1541, allocations: 4 kB / 315.8 MB, free: 6.723 MB / 266.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.000293/0.1544, allocations: 255.8 kB / 316 MB, free: 6.469 MB / 266.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001519/0.1559, allocations: 1.478 MB / 317.5 MB, free: 4.941 MB / 266.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002777/0.1562, allocations: 184.6 kB / 317.7 MB, free: 4.75 MB / 266.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002516/0.1564, allocations: 248.7 kB / 317.9 MB, free: 4.504 MB / 266.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.007315/0.1638, allocations: 7.779 MB / 325.7 MB, free: 12.52 MB / 282.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002674/0.164, allocations: 185.5 kB / 325.9 MB, free: 12.33 MB / 282.7 MB Notification: Performance of pre-optimization done (n=29): time 2.405e-06/0.164, allocations: 0 / 325.9 MB, free: 12.33 MB / 282.7 MB Notification: Performance of matching and sorting (n=29): time 0.0008807/0.1649, allocations: 0.5553 MB / 326.4 MB, free: 11.76 MB / 282.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.769e-05/0.1649, allocations: 71.28 kB / 326.5 MB, free: 11.68 MB / 282.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001271/0.1662, allocations: 1.589 MB / 328.1 MB, free: 10.05 MB / 282.7 MB Notification: Performance of collectPreVariables (initialization): time 3.268e-05/0.1662, allocations: 29.7 kB / 328.1 MB, free: 10.01 MB / 282.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0004961/0.1667, allocations: 0.8261 MB / 328.9 MB, free: 9.18 MB / 282.7 MB Notification: Performance of collectInitialBindings (initialization): time 6.443e-05/0.1668, allocations: 95.27 kB / 329 MB, free: 9.086 MB / 282.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001198/0.1669, allocations: 135.7 kB / 329.2 MB, free: 8.945 MB / 282.7 MB Notification: Performance of setup shared object (initialization): time 0.0001187/0.167, allocations: 0.4926 MB / 329.6 MB, free: 8.445 MB / 282.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001233/0.1672, allocations: 68.97 kB / 329.7 MB, free: 8.379 MB / 282.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002446/0.1674, allocations: 371.7 kB / 330.1 MB, free: 7.891 MB / 282.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003855/0.1678, allocations: 471.1 kB / 330.5 MB, free: 7.305 MB / 282.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.908e-06/0.1678, allocations: 0 / 330.5 MB, free: 7.305 MB / 282.7 MB Notification: Performance of matching and sorting (n=62) (initialization): time 0.0006736/0.1685, allocations: 0.6296 MB / 331.2 MB, free: 6.664 MB / 282.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.942e-05/0.1685, allocations: 8 kB / 331.2 MB, free: 6.656 MB / 282.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.767e-05/0.1685, allocations: 36 kB / 331.2 MB, free: 6.621 MB / 282.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002327/0.1688, allocations: 132.3 kB / 331.3 MB, free: 6.488 MB / 282.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002237/0.169, allocations: 107.8 kB / 331.4 MB, free: 6.383 MB / 282.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0006506/0.1696, allocations: 0.9132 MB / 332.4 MB, free: 5.438 MB / 282.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003009/0.1699, allocations: 63.61 kB / 332.4 MB, free: 5.375 MB / 282.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.997e-05/0.17, allocations: 39.94 kB / 332.5 MB, free: 5.336 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.0002123/0.1702, allocations: 192.4 kB / 332.6 MB, free: 5.137 MB / 282.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001369/0.1703, allocations: 206.8 kB / 332.8 MB, free: 4.934 MB / 282.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.00084/0.1712, allocations: 0.5889 MB / 333.4 MB, free: 4.336 MB / 282.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.452e-06/0.1712, allocations: 4 kB / 333.4 MB, free: 4.332 MB / 282.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.941e-06/0.1712, allocations: 7.922 kB / 333.5 MB, free: 4.324 MB / 282.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.739e-06/0.1712, allocations: 0 / 333.5 MB, free: 4.324 MB / 282.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001202/0.1724, allocations: 1.215 MB / 334.7 MB, free: 3.051 MB / 282.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.107e-05/0.1724, allocations: 36.06 kB / 334.7 MB, free: 3.016 MB / 282.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001082/0.1725, allocations: 39.91 kB / 334.7 MB, free: 2.977 MB / 282.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001561/0.1727, allocations: 123.6 kB / 334.9 MB, free: 2.852 MB / 282.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.703e-05/0.1727, allocations: 20.55 kB / 334.9 MB, free: 2.832 MB / 282.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0004207/0.1731, allocations: 0.8985 MB / 335.8 MB, free: 1.902 MB / 282.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.751e-06/0.1732, allocations: 11.16 kB / 335.8 MB, free: 1.895 MB / 282.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.000611/0.1738, allocations: 0.6489 MB / 336.4 MB, free: 1.211 MB / 282.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002624/0.174, allocations: 220.6 kB / 336.7 MB, free: 0.9961 MB / 282.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001099/0.1741, allocations: 8 kB / 336.7 MB, free: 0.9883 MB / 282.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002057/0.1743, allocations: 19.97 kB / 336.7 MB, free: 0.9688 MB / 282.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001012/0.1744, allocations: 43.89 kB / 336.7 MB, free: 0.9258 MB / 282.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.863e-05/0.1745, allocations: 16 kB / 336.7 MB, free: 0.9102 MB / 282.7 MB Notification: Performance of sorting global known variables: time 0.0007818/0.1753, allocations: 0.8984 MB / 337.6 MB, free: 15.99 MB / 298.7 MB Notification: Performance of sort global known variables: time 2.1e-07/0.1753, allocations: 4 kB / 337.6 MB, free: 15.99 MB / 298.7 MB Notification: Performance of remove unused functions: time 0.0006535/0.1759, allocations: 335.6 kB / 338 MB, free: 15.66 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.0006698/0.1766, allocations: 0.6051 MB / 338.6 MB, free: 15.04 MB / 298.7 MB Notification: Performance of simCode: created initialization part: time 0.0006935/0.1773, allocations: 370.5 kB / 338.9 MB, free: 14.67 MB / 298.7 MB Notification: Performance of simCode: created event and clocks part: time 1.964e-06/0.1773, allocations: 0 / 338.9 MB, free: 14.67 MB / 298.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0002309/0.1775, allocations: 216.5 kB / 339.1 MB, free: 14.44 MB / 298.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0008101/0.1783, allocations: 323 kB / 339.5 MB, free: 14.14 MB / 298.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00218/0.1805, allocations: 2.115 MB / 341.6 MB, free: 11.97 MB / 298.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001315/0.1806, allocations: 219 kB / 341.8 MB, free: 11.73 MB / 298.7 MB Notification: Performance of simCode: alias equations: time 0.0003568/0.181, allocations: 199.9 kB / 342 MB, free: 11.53 MB / 298.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 9.865e-05/0.1811, allocations: 88.5 kB / 342.1 MB, free: 11.45 MB / 298.7 MB Notification: Performance of SimCode: time 1.212e-06/0.1811, allocations: 4 kB / 342.1 MB, free: 11.44 MB / 298.7 MB Notification: Performance of Templates: time 0.02272/0.2038, allocations: 19.56 MB / 361.6 MB, free: 8.105 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.1316163709852844]