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.0009269/0.0009269, allocations: 72.08 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.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.0008801/0.0008801, allocations: 142.1 kB / 24.97 MB, free: 8.316 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.9916/0.9916, allocations: 173.3 MB / 201.5 MB, free: 9.316 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.483e-06/1.483e-06, allocations: 3.938 kB / 268.1 MB, free: 6.727 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 2.127e-05/2.275e-05, allocations: 2.312 kB / 268.1 MB, free: 6.723 MB / 250.7 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Spice3.Examples.Inverter): time 0.005785/0.005808, allocations: 7.712 MB / 275.8 MB, free: 14.97 MB / 266.7 MB Notification: Performance of NFInst.instExpressions: time 0.141/0.1468, allocations: 18.45 MB / 294.2 MB, free: 13.54 MB / 266.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001397/0.1482, allocations: 95.03 kB / 294.3 MB, free: 13.54 MB / 266.7 MB Notification: Performance of NFTyping.typeComponents: time 0.001932/0.1502, allocations: 0.7736 MB / 295.1 MB, free: 13.52 MB / 266.7 MB Notification: Performance of NFTyping.typeBindings: time 0.004734/0.1549, allocations: 1.87 MB / 297 MB, free: 13.15 MB / 266.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.00381/0.1587, allocations: 1.351 MB / 298.3 MB, free: 12.95 MB / 266.7 MB Notification: Performance of NFFlatten.flatten: time 0.00395/0.1627, allocations: 3.355 MB / 301.7 MB, free: 12.31 MB / 266.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002861/0.163, allocations: 130.5 kB / 301.8 MB, free: 12.24 MB / 266.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0009182/0.1639, allocations: 0.7993 MB / 302.6 MB, free: 12.15 MB / 266.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0004831/0.1644, allocations: 414 kB / 303 MB, free: 12.07 MB / 266.7 MB Notification: Performance of NFPackage.collectConstants: time 9.098e-05/0.1644, allocations: 44.34 kB / 303 MB, free: 12.07 MB / 266.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.002243/0.1667, allocations: 1.172 MB / 304.2 MB, free: 12.03 MB / 266.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0001039/0.1668, allocations: 172.1 kB / 304.4 MB, free: 11.96 MB / 266.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0004604/0.1673, allocations: 377.7 kB / 304.8 MB, free: 11.89 MB / 266.7 MB Notification: Performance of NFConvertDAE.convert: time 0.001643/0.1689, allocations: 1.786 MB / 306.5 MB, free: 11.6 MB / 266.7 MB Notification: Performance of FrontEnd - DAE generated: time 4.879e-06/0.1689, allocations: 0 / 306.5 MB, free: 11.6 MB / 266.7 MB Notification: Performance of FrontEnd: time 1.383e-06/0.1689, allocations: 0 / 306.5 MB, free: 11.6 MB / 266.7 MB Notification: Performance of Transformations before backend: time 2.408e-05/0.1689, allocations: 0 / 306.5 MB, free: 11.6 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.001629/0.1706, allocations: 2.129 MB / 308.7 MB, free: 10.19 MB / 266.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.962e-05/0.1706, allocations: 11.8 kB / 308.7 MB, free: 10.19 MB / 266.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001643/0.1708, allocations: 221.9 kB / 308.9 MB, free: 10.07 MB / 266.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001062/0.1718, allocations: 1.422 MB / 310.3 MB, free: 9.34 MB / 266.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.773e-05/0.1718, allocations: 20.66 kB / 310.3 MB, free: 9.332 MB / 266.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.246e-05/0.1719, allocations: 31.31 kB / 310.4 MB, free: 9.316 MB / 266.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004112/0.1723, allocations: 324.9 kB / 310.7 MB, free: 9.137 MB / 266.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.009e-05/0.1723, allocations: 6.797 kB / 310.7 MB, free: 9.133 MB / 266.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.002e-05/0.1723, allocations: 14.95 kB / 310.7 MB, free: 9.121 MB / 266.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.158e-05/0.1724, allocations: 6 kB / 310.7 MB, free: 9.121 MB / 266.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002855/0.1726, allocations: 256.9 kB / 311 MB, free: 9.062 MB / 266.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001395/0.174, allocations: 1.477 MB / 312.4 MB, free: 8.07 MB / 266.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002496/0.1743, allocations: 186.5 kB / 312.6 MB, free: 7.988 MB / 266.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002445/0.1745, allocations: 248.8 kB / 312.9 MB, free: 7.914 MB / 266.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.006161/0.1807, allocations: 7.771 MB / 320.6 MB, free: 0.6211 MB / 266.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.000234/0.1809, allocations: 184.9 kB / 320.8 MB, free: 436 kB / 266.7 MB Notification: Performance of pre-optimization done (n=29): time 2.034e-06/0.1809, allocations: 0 / 320.8 MB, free: 436 kB / 266.7 MB Notification: Performance of matching and sorting (n=29): time 0.000827/0.1818, allocations: 0.571 MB / 321.4 MB, free: 15.85 MB / 282.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.749e-05/0.1818, allocations: 55.41 kB / 321.4 MB, free: 15.79 MB / 282.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001197/0.183, allocations: 1.589 MB / 323 MB, free: 14.15 MB / 282.7 MB Notification: Performance of collectPreVariables (initialization): time 3.281e-05/0.183, allocations: 33.7 kB / 323.1 MB, free: 14.11 MB / 282.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0005137/0.1835, allocations: 0.8205 MB / 323.9 MB, free: 13.29 MB / 282.7 MB Notification: Performance of collectInitialBindings (initialization): time 7.168e-05/0.1836, allocations: 98.42 kB / 324 MB, free: 13.19 MB / 282.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001156/0.1837, allocations: 135.7 kB / 324.1 MB, free: 13.05 MB / 282.7 MB Notification: Performance of setup shared object (initialization): time 0.0001156/0.1838, allocations: 0.4926 MB / 324.6 MB, free: 12.55 MB / 282.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001171/0.184, allocations: 76.95 kB / 324.7 MB, free: 12.48 MB / 282.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002421/0.1842, allocations: 356.8 kB / 325 MB, free: 12 MB / 282.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003822/0.1846, allocations: 467 kB / 325.5 MB, free: 11.45 MB / 282.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.819e-06/0.1846, allocations: 4 kB / 325.5 MB, free: 11.44 MB / 282.7 MB Notification: Performance of matching and sorting (n=62) (initialization): time 0.0006386/0.1852, allocations: 0.6176 MB / 326.1 MB, free: 10.82 MB / 282.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.944e-05/0.1852, allocations: 15.88 kB / 326.1 MB, free: 10.8 MB / 282.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.94e-05/0.1853, allocations: 45.73 kB / 326.2 MB, free: 10.76 MB / 282.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002327/0.1855, allocations: 134.6 kB / 326.3 MB, free: 10.63 MB / 282.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002179/0.1857, allocations: 99.83 kB / 326.4 MB, free: 10.54 MB / 282.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0004969/0.1862, allocations: 0.9244 MB / 327.3 MB, free: 9.582 MB / 282.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002568/0.1865, allocations: 59.61 kB / 327.4 MB, free: 9.523 MB / 282.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.836e-05/0.1865, allocations: 36 kB / 327.4 MB, free: 9.488 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.0001989/0.1867, allocations: 204.3 kB / 327.6 MB, free: 9.277 MB / 282.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001532/0.1869, allocations: 202.8 kB / 327.8 MB, free: 9.078 MB / 282.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0008166/0.1877, allocations: 0.5856 MB / 328.4 MB, free: 8.484 MB / 282.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.348e-06/0.1877, allocations: 4 kB / 328.4 MB, free: 8.48 MB / 282.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.636e-06/0.1877, allocations: 0 / 328.4 MB, free: 8.48 MB / 282.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.951e-06/0.1877, allocations: 11.86 kB / 328.4 MB, free: 8.469 MB / 282.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001158/0.1889, allocations: 1.221 MB / 329.6 MB, free: 7.195 MB / 282.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.213e-05/0.1889, allocations: 36 kB / 329.7 MB, free: 7.16 MB / 282.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000108/0.189, allocations: 31.97 kB / 329.7 MB, free: 7.129 MB / 282.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001457/0.1892, allocations: 127.5 kB / 329.8 MB, free: 7 MB / 282.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.188e-05/0.1892, allocations: 16 kB / 329.8 MB, free: 6.984 MB / 282.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0004021/0.1896, allocations: 0.9171 MB / 330.8 MB, free: 6.035 MB / 282.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.42e-07/0.1896, allocations: 0 / 330.8 MB, free: 6.035 MB / 282.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0005483/0.1901, allocations: 0.647 MB / 331.4 MB, free: 5.355 MB / 282.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002133/0.1903, allocations: 220.6 kB / 331.6 MB, free: 5.141 MB / 282.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 9.583e-05/0.1904, allocations: 8 kB / 331.6 MB, free: 5.133 MB / 282.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001909/0.1906, allocations: 11.98 kB / 331.6 MB, free: 5.121 MB / 282.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.04e-05/0.1907, allocations: 47.88 kB / 331.7 MB, free: 5.074 MB / 282.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.837e-05/0.1908, allocations: 24 kB / 331.7 MB, free: 5.051 MB / 282.7 MB Notification: Performance of sorting global known variables: time 0.0007166/0.1915, allocations: 0.8907 MB / 332.6 MB, free: 4.141 MB / 282.7 MB Notification: Performance of sort global known variables: time 9e-08/0.1915, allocations: 4 kB / 332.6 MB, free: 4.137 MB / 282.7 MB Notification: Performance of remove unused functions: time 0.000553/0.192, allocations: 335.5 kB / 332.9 MB, free: 3.809 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.0006071/0.1926, allocations: 0.5982 MB / 333.5 MB, free: 3.305 MB / 282.7 MB Notification: Performance of simCode: created initialization part: time 0.0005129/0.1931, allocations: 373.9 kB / 333.9 MB, free: 2.926 MB / 282.7 MB Notification: Performance of simCode: created event and clocks part: time 2.394e-06/0.1931, allocations: 0.5 kB / 333.9 MB, free: 2.926 MB / 282.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0002163/0.1934, allocations: 216.1 kB / 334.1 MB, free: 2.699 MB / 282.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000796/0.1942, allocations: 332 kB / 334.4 MB, free: 2.379 MB / 282.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002114/0.1963, allocations: 2.108 MB / 336.5 MB, free: 220 kB / 282.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001401/0.1964, allocations: 211.2 kB / 336.7 MB, free: 15.98 MB / 298.7 MB Notification: Performance of simCode: alias equations: time 0.000346/0.1968, allocations: 199.9 kB / 336.9 MB, free: 15.79 MB / 298.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 9.908e-05/0.1969, allocations: 84.5 kB / 337 MB, free: 15.7 MB / 298.7 MB Notification: Performance of SimCode: time 1.042e-06/0.1969, allocations: 0 / 337 MB, free: 15.7 MB / 298.7 MB Notification: Performance of Templates: time 0.02173/0.2186, allocations: 19.55 MB / 356.6 MB, free: 12.41 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: 3.2140876539051533]