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.00128/0.00128, allocations: 80.8 kB / 21.5 MB, free: 2.992 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.001504/0.001504, allocations: 171.8 kB / 24.91 MB, free: 8.773 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.9675/0.9675, allocations: 177.1 MB / 205.3 MB, free: 5.039 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.883e-06/1.883e-06, allocations: 0 / 273.5 MB, free: 1.094 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 2.083e-05/2.271e-05, allocations: 2.312 kB / 273.5 MB, free: 1.09 MB / 250.7 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Spice3.Examples.Inverter): time 0.005938/0.005961, allocations: 7.627 MB / 281.1 MB, free: 9.426 MB / 266.7 MB Notification: Performance of NFInst.instExpressions: time 0.1327/0.1387, allocations: 18.48 MB / 299.6 MB, free: 14.44 MB / 266.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001524/0.1402, allocations: 97.94 kB / 299.7 MB, free: 14.44 MB / 266.7 MB Notification: Performance of NFTyping.typeComponents: time 0.002336/0.1425, allocations: 0.7995 MB / 300.5 MB, free: 14.2 MB / 266.7 MB Notification: Performance of NFTyping.typeBindings: time 0.006723/0.1492, allocations: 1.835 MB / 302.3 MB, free: 13.48 MB / 266.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.006386/0.1556, allocations: 1.304 MB / 303.6 MB, free: 13.01 MB / 266.7 MB Notification: Performance of NFFlatten.flatten: time 0.005712/0.1613, allocations: 3.43 MB / 307.1 MB, free: 11.96 MB / 266.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0003139/0.1617, allocations: 143 kB / 307.2 MB, free: 11.86 MB / 266.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001614/0.1633, allocations: 1.541 MB / 308.7 MB, free: 11.41 MB / 266.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0005573/0.1638, allocations: 429.4 kB / 309.2 MB, free: 11.24 MB / 266.7 MB Notification: Performance of NFPackage.collectConstants: time 8.194e-05/0.1639, allocations: 41.75 kB / 309.2 MB, free: 11.24 MB / 266.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.002966/0.1669, allocations: 1.23 MB / 310.4 MB, free: 10.86 MB / 266.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0001088/0.167, allocations: 174.7 kB / 310.6 MB, free: 10.72 MB / 266.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0003548/0.1673, allocations: 379.7 kB / 311 MB, free: 10.59 MB / 266.7 MB Notification: Performance of NFConvertDAE.convert: time 0.002148/0.1695, allocations: 1.796 MB / 312.8 MB, free: 9.562 MB / 266.7 MB Notification: Performance of FrontEnd - DAE generated: time 5.521e-06/0.1695, allocations: 8 kB / 312.8 MB, free: 9.555 MB / 266.7 MB Notification: Performance of FrontEnd: time 1.253e-06/0.1695, allocations: 6.594 kB / 312.8 MB, free: 9.551 MB / 266.7 MB Notification: Performance of Transformations before backend: time 3.983e-05/0.1695, allocations: 3.938 kB / 312.8 MB, free: 9.547 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.001589/0.1711, allocations: 1.936 MB / 314.7 MB, free: 7.789 MB / 266.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.141e-05/0.1712, allocations: 8.031 kB / 314.7 MB, free: 7.781 MB / 266.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001316/0.1713, allocations: 135.8 kB / 314.9 MB, free: 7.648 MB / 266.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000887/0.1722, allocations: 1.124 MB / 316 MB, free: 6.434 MB / 266.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.4e-05/0.1722, allocations: 20.66 kB / 316 MB, free: 6.414 MB / 266.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.127e-05/0.1722, allocations: 24 kB / 316 MB, free: 6.391 MB / 266.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002966/0.1725, allocations: 285.4 kB / 316.3 MB, free: 6.098 MB / 266.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.047e-06/0.1725, allocations: 0 / 316.3 MB, free: 6.098 MB / 266.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.215e-05/0.1726, allocations: 12 kB / 316.3 MB, free: 6.086 MB / 266.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.087e-05/0.1726, allocations: 11.94 kB / 316.3 MB, free: 6.078 MB / 266.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001646/0.1727, allocations: 116.5 kB / 316.4 MB, free: 5.969 MB / 266.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0009931/0.1737, allocations: 0.806 MB / 317.2 MB, free: 5.137 MB / 266.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001843/0.1739, allocations: 188.8 kB / 317.4 MB, free: 4.945 MB / 266.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001585/0.1741, allocations: 194 kB / 317.6 MB, free: 4.754 MB / 266.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.01077/0.1848, allocations: 11.58 MB / 329.2 MB, free: 8.734 MB / 282.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.000239/0.1851, allocations: 144.3 kB / 329.3 MB, free: 8.582 MB / 282.7 MB Notification: Performance of pre-optimization done (n=29): time 2.184e-06/0.1851, allocations: 0 / 329.3 MB, free: 8.582 MB / 282.7 MB Notification: Performance of matching and sorting (n=29): time 0.0005616/0.1856, allocations: 356.5 kB / 329.7 MB, free: 8.227 MB / 282.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.266e-05/0.1857, allocations: 59.34 kB / 329.7 MB, free: 8.156 MB / 282.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0008015/0.1865, allocations: 1.326 MB / 331.1 MB, free: 6.793 MB / 282.7 MB Notification: Performance of collectPreVariables (initialization): time 2.733e-05/0.1865, allocations: 33.7 kB / 331.1 MB, free: 6.754 MB / 282.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002113/0.1867, allocations: 412.2 kB / 331.5 MB, free: 6.348 MB / 282.7 MB Notification: Performance of collectInitialBindings (initialization): time 6.317e-05/0.1868, allocations: 99.19 kB / 331.6 MB, free: 6.25 MB / 282.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001057/0.1869, allocations: 106 kB / 331.7 MB, free: 6.141 MB / 282.7 MB Notification: Performance of setup shared object (initialization): time 8.43e-05/0.187, allocations: 325.9 kB / 332 MB, free: 5.816 MB / 282.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 6.796e-05/0.187, allocations: 44.97 kB / 332.1 MB, free: 5.773 MB / 282.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001528/0.1872, allocations: 246.9 kB / 332.3 MB, free: 5.438 MB / 282.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002721/0.1875, allocations: 342.2 kB / 332.6 MB, free: 5.012 MB / 282.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.459e-06/0.1875, allocations: 4 kB / 332.6 MB, free: 5.008 MB / 282.7 MB Notification: Performance of matching and sorting (n=62) (initialization): time 0.0004275/0.1879, allocations: 414.2 kB / 333.1 MB, free: 4.594 MB / 282.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.982e-05/0.1879, allocations: 11.98 kB / 333.1 MB, free: 4.582 MB / 282.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.209e-05/0.1879, allocations: 12.84 kB / 333.1 MB, free: 4.57 MB / 282.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001612/0.1881, allocations: 72.81 kB / 333.1 MB, free: 4.496 MB / 282.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002087/0.1883, allocations: 111.8 kB / 333.3 MB, free: 4.387 MB / 282.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0003232/0.1886, allocations: 0.5726 MB / 333.8 MB, free: 3.789 MB / 282.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000292/0.1889, allocations: 59.66 kB / 333.9 MB, free: 3.73 MB / 282.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.016e-05/0.189, allocations: 23.98 kB / 333.9 MB, free: 3.707 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.0001642/0.1891, allocations: 153.6 kB / 334.1 MB, free: 3.547 MB / 282.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 9.097e-05/0.1892, allocations: 115.8 kB / 334.2 MB, free: 3.434 MB / 282.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.000612/0.1898, allocations: 465.3 kB / 334.6 MB, free: 2.977 MB / 282.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.917e-06/0.1898, allocations: 4 kB / 334.6 MB, free: 2.973 MB / 282.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.874e-06/0.1898, allocations: 3.938 kB / 334.6 MB, free: 2.969 MB / 282.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.797e-06/0.1898, allocations: 0 / 334.6 MB, free: 2.969 MB / 282.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.000787/0.1906, allocations: 0.8869 MB / 335.5 MB, free: 2.039 MB / 282.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.081e-05/0.1907, allocations: 4 kB / 335.5 MB, free: 2.035 MB / 282.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000107/0.1908, allocations: 39.95 kB / 335.6 MB, free: 1.996 MB / 282.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001139/0.1909, allocations: 64.77 kB / 335.6 MB, free: 1.93 MB / 282.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.81e-05/0.1909, allocations: 15.98 kB / 335.6 MB, free: 1.914 MB / 282.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0002724/0.1912, allocations: 0.5578 MB / 336.2 MB, free: 1.332 MB / 282.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.284e-06/0.1912, allocations: 3.984 kB / 336.2 MB, free: 1.328 MB / 282.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.00031/0.1915, allocations: 375.6 kB / 336.6 MB, free: 0.9336 MB / 282.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002083/0.1917, allocations: 201.3 kB / 336.8 MB, free: 0.7383 MB / 282.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 8.453e-05/0.1918, allocations: 8 kB / 336.8 MB, free: 0.7305 MB / 282.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001738/0.1919, allocations: 18.92 kB / 336.8 MB, free: 0.7148 MB / 282.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.416e-05/0.192, allocations: 39.91 kB / 336.8 MB, free: 0.6758 MB / 282.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.158e-05/0.192, allocations: 8 kB / 336.8 MB, free: 0.668 MB / 282.7 MB Notification: Performance of sorting global known variables: time 0.0004295/0.1925, allocations: 0.6751 MB / 337.5 MB, free: 15.96 MB / 298.7 MB Notification: Performance of sort global known variables: time 2.1e-07/0.1925, allocations: 4 kB / 337.5 MB, free: 15.96 MB / 298.7 MB Notification: Performance of remove unused functions: time 0.0005727/0.193, allocations: 331.6 kB / 337.8 MB, free: 15.64 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.0006759/0.1937, allocations: 0.659 MB / 338.5 MB, free: 14.97 MB / 298.7 MB Notification: Performance of simCode: created initialization part: time 0.0003677/0.1941, allocations: 277.4 kB / 338.8 MB, free: 14.7 MB / 298.7 MB Notification: Performance of simCode: created event and clocks part: time 1.668e-05/0.1941, allocations: 23.94 kB / 338.8 MB, free: 14.67 MB / 298.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0001642/0.1943, allocations: 151.9 kB / 338.9 MB, free: 14.51 MB / 298.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006646/0.1949, allocations: 311.8 kB / 339.3 MB, free: 14.21 MB / 298.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002191/0.1971, allocations: 2.017 MB / 341.3 MB, free: 12.14 MB / 298.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001342/0.1973, allocations: 207.2 kB / 341.5 MB, free: 11.91 MB / 298.7 MB Notification: Performance of simCode: alias equations: time 0.0003321/0.1976, allocations: 199.9 kB / 341.7 MB, free: 11.71 MB / 298.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003468/0.1979, allocations: 317.2 kB / 342 MB, free: 11.4 MB / 298.7 MB Notification: Performance of SimCode: time 1.744e-06/0.1979, allocations: 0 / 342 MB, free: 11.4 MB / 298.7 MB Notification: Performance of Templates: time 0.02531/0.2232, allocations: 22.51 MB / 364.5 MB, free: 5.137 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 -s gbode -gbm=radauIIA3 -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: 2.9821850662119687]