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.0008895/0.0008895, allocations: 76.17 kB / 9.931 MB, free: 0.7578 MB / 10.45 MB Notification: Performance of NFInstanceAPI.mkTop(): time 0.001122/0.002012, allocations: 449.7 kB / 10.37 MB, free: 328 kB / 10.45 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.0007621/0.0007621, allocations: 169.1 kB / 11.26 MB, free: 2.91 MB / 13.93 MB Notification: Performance of NFInstanceAPI.mkTop(): time 0.0009217/0.001684, allocations: 455.6 kB / 11.71 MB, free: 2.461 MB / 13.93 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.9543/0.9543, allocations: 177.2 MB / 189.6 MB, free: 5.301 MB / 186.7 MB Notification: Performance of NFInstanceAPI.mkTop(): time 0.08286/1.037, allocations: 53.65 MB / 243.3 MB, free: 15.58 MB / 250.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.382e-06/1.382e-06, allocations: 0 / 244.5 MB, free: 14.32 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 1.526e-05/1.664e-05, allocations: 10.25 kB / 244.5 MB, free: 14.31 MB / 250.7 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Spice3.Examples.Inverter): time 0.005369/0.005386, allocations: 7.646 MB / 252.2 MB, free: 6.625 MB / 250.7 MB Notification: Performance of NFInst.instExpressions: time 0.01475/0.02014, allocations: 18.58 MB / 270.8 MB, free: 3.973 MB / 266.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0009352/0.02107, allocations: 98.88 kB / 270.8 MB, free: 3.875 MB / 266.7 MB Notification: Performance of NFTyping.typeComponents: time 0.001491/0.02256, allocations: 0.7877 MB / 271.6 MB, free: 3.082 MB / 266.7 MB Notification: Performance of NFTyping.typeBindings: time 0.004119/0.02668, allocations: 1.824 MB / 273.5 MB, free: 1.246 MB / 266.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.1189/0.1456, allocations: 1.303 MB / 274.8 MB, free: 3.879 MB / 266.7 MB Notification: Performance of NFFlatten.flatten: time 0.004006/0.1496, allocations: 3.363 MB / 278.1 MB, free: 3.57 MB / 266.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002973/0.1499, allocations: 143 kB / 278.3 MB, free: 3.484 MB / 266.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001974/0.1518, allocations: 1.742 MB / 280 MB, free: 3.227 MB / 266.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0006726/0.1525, allocations: 433.5 kB / 280.4 MB, free: 3.145 MB / 266.7 MB Notification: Performance of NFPackage.collectConstants: time 0.0001177/0.1526, allocations: 41 kB / 280.5 MB, free: 3.145 MB / 266.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.00252/0.1552, allocations: 1.233 MB / 281.7 MB, free: 3.105 MB / 266.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0001085/0.1553, allocations: 134.3 kB / 281.8 MB, free: 3.039 MB / 266.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0004552/0.1557, allocations: 347.6 kB / 282.2 MB, free: 2.969 MB / 266.7 MB Notification: Performance of NFConvertDAE.convert: time 0.002217/0.1579, allocations: 1.683 MB / 283.9 MB, free: 2.695 MB / 266.7 MB Notification: Performance of FrontEnd - DAE generated: time 1.493e-05/0.158, allocations: 0 / 283.9 MB, free: 2.695 MB / 266.7 MB Notification: Performance of FrontEnd: time 1.563e-06/0.158, allocations: 0 / 283.9 MB, free: 2.695 MB / 266.7 MB Notification: Performance of Transformations before backend: time 4.936e-05/0.158, allocations: 0 / 283.9 MB, free: 2.695 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.002101/0.1601, allocations: 2.335 MB / 286.2 MB, free: 17.45 MB / 282.7 MB Notification: Performance of prepare preOptimizeDAE: time 2.98e-05/0.1601, allocations: 8.938 kB / 286.2 MB, free: 17.45 MB / 282.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001645/0.1603, allocations: 141 kB / 286.3 MB, free: 17.45 MB / 282.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0009321/0.1612, allocations: 1.116 MB / 287.5 MB, free: 16.92 MB / 282.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.568e-05/0.1612, allocations: 24.86 kB / 287.5 MB, free: 16.91 MB / 282.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.502e-05/0.1613, allocations: 28.64 kB / 287.5 MB, free: 16.91 MB / 282.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003488/0.1616, allocations: 281.5 kB / 287.8 MB, free: 16.85 MB / 282.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.985e-06/0.1616, allocations: 0 / 287.8 MB, free: 16.85 MB / 282.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.293e-05/0.1617, allocations: 18.3 kB / 287.8 MB, free: 16.85 MB / 282.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.967e-06/0.1617, allocations: 6.609 kB / 287.8 MB, free: 16.85 MB / 282.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001702/0.1618, allocations: 117.5 kB / 287.9 MB, free: 16.85 MB / 282.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001079/0.1629, allocations: 0.8017 MB / 288.7 MB, free: 16.62 MB / 282.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001843/0.1631, allocations: 184.9 kB / 288.9 MB, free: 16.56 MB / 282.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001625/0.1633, allocations: 191.9 kB / 289.1 MB, free: 16.55 MB / 282.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0116/0.1749, allocations: 11.55 MB / 300.6 MB, free: 10.09 MB / 282.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002125/0.1751, allocations: 149.1 kB / 300.8 MB, free: 9.988 MB / 282.7 MB Notification: Performance of pre-optimization done (n=29): time 2.254e-06/0.1751, allocations: 0 / 300.8 MB, free: 9.988 MB / 282.7 MB Notification: Performance of matching and sorting (n=29): time 0.0005615/0.1757, allocations: 350.1 kB / 301.1 MB, free: 9.727 MB / 282.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.144e-05/0.1757, allocations: 59.41 kB / 301.2 MB, free: 9.656 MB / 282.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0007841/0.1765, allocations: 1.328 MB / 302.5 MB, free: 8.797 MB / 282.7 MB Notification: Performance of collectPreVariables (initialization): time 2.561e-05/0.1765, allocations: 29.7 kB / 302.5 MB, free: 8.762 MB / 282.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.000459/0.177, allocations: 415 kB / 302.9 MB, free: 8.484 MB / 282.7 MB Notification: Performance of collectInitialBindings (initialization): time 5.293e-05/0.177, allocations: 97.12 kB / 303 MB, free: 8.406 MB / 282.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001002/0.1771, allocations: 114.6 kB / 303.2 MB, free: 8.312 MB / 282.7 MB Notification: Performance of setup shared object (initialization): time 6.773e-05/0.1772, allocations: 325.7 kB / 303.5 MB, free: 8.004 MB / 282.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 5.99e-05/0.1772, allocations: 42 kB / 303.5 MB, free: 7.969 MB / 282.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001351/0.1774, allocations: 245.1 kB / 303.8 MB, free: 7.664 MB / 282.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.000247/0.1776, allocations: 364.1 kB / 304.1 MB, free: 7.289 MB / 282.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.577e-06/0.1776, allocations: 0 / 304.1 MB, free: 7.289 MB / 282.7 MB Notification: Performance of matching and sorting (n=62) (initialization): time 0.0004265/0.178, allocations: 401.4 kB / 304.5 MB, free: 7.008 MB / 282.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.055e-05/0.1781, allocations: 8 kB / 304.5 MB, free: 7 MB / 282.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.06e-05/0.1781, allocations: 19.47 kB / 304.5 MB, free: 6.984 MB / 282.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001536/0.1783, allocations: 77.98 kB / 304.6 MB, free: 6.922 MB / 282.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001964/0.1784, allocations: 118.5 kB / 304.7 MB, free: 6.828 MB / 282.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0002889/0.1787, allocations: 0.5683 MB / 305.3 MB, free: 6.258 MB / 282.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002747/0.179, allocations: 68.23 kB / 305.4 MB, free: 6.195 MB / 282.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.828e-05/0.1791, allocations: 20 kB / 305.4 MB, free: 6.176 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.0001551/0.1792, allocations: 145 kB / 305.5 MB, free: 6.031 MB / 282.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.605e-05/0.1793, allocations: 126 kB / 305.6 MB, free: 5.949 MB / 282.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0005832/0.1799, allocations: 452.2 kB / 306.1 MB, free: 5.59 MB / 282.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.268e-06/0.1799, allocations: 4 kB / 306.1 MB, free: 5.586 MB / 282.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.583e-06/0.1799, allocations: 0 / 306.1 MB, free: 5.586 MB / 282.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.529e-06/0.1799, allocations: 0 / 306.1 MB, free: 5.586 MB / 282.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0007919/0.1807, allocations: 0.8943 MB / 307 MB, free: 4.852 MB / 282.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.36e-05/0.1807, allocations: 14.48 kB / 307 MB, free: 4.84 MB / 282.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 9.616e-05/0.1808, allocations: 39.97 kB / 307 MB, free: 4.801 MB / 282.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001719/0.181, allocations: 189.3 kB / 307.2 MB, free: 4.613 MB / 282.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001092/0.1811, allocations: 70.41 kB / 307.3 MB, free: 4.547 MB / 282.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.51e-05/0.1811, allocations: 4 kB / 307.3 MB, free: 4.543 MB / 282.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.000256/0.1814, allocations: 0.5584 MB / 307.8 MB, free: 3.965 MB / 282.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.374e-06/0.1814, allocations: 4 kB / 307.9 MB, free: 3.961 MB / 282.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003169/0.1817, allocations: 390.3 kB / 308.2 MB, free: 3.566 MB / 282.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 8.714e-05/0.1818, allocations: 8 kB / 308.2 MB, free: 3.559 MB / 282.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001673/0.1819, allocations: 11.98 kB / 308.3 MB, free: 3.547 MB / 282.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.354e-05/0.182, allocations: 35.94 kB / 308.3 MB, free: 3.512 MB / 282.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.269e-05/0.182, allocations: 11.94 kB / 308.3 MB, free: 3.5 MB / 282.7 MB Notification: Performance of sorting global known variables: time 0.0004004/0.1824, allocations: 0.6823 MB / 309 MB, free: 2.879 MB / 282.7 MB Notification: Performance of sort global known variables: time 6e-08/0.1824, allocations: 0 / 309 MB, free: 2.879 MB / 282.7 MB Notification: Performance of remove unused functions: time 0.0005424/0.183, allocations: 335.5 kB / 309.3 MB, free: 2.551 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.0006668/0.1836, allocations: 0.6695 MB / 310 MB, free: 2 MB / 282.7 MB Notification: Performance of simCode: created initialization part: time 0.0003356/0.184, allocations: 275.2 kB / 310.2 MB, free: 1.746 MB / 282.7 MB Notification: Performance of simCode: created event and clocks part: time 2.083e-05/0.184, allocations: 24.5 kB / 310.3 MB, free: 1.723 MB / 282.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0001548/0.1841, allocations: 147.8 kB / 310.4 MB, free: 1.57 MB / 282.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0009699/0.1851, allocations: 442.1 kB / 310.8 MB, free: 1.137 MB / 282.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003843/0.1889, allocations: 2.02 MB / 312.9 MB, free: 15.09 MB / 298.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001244/0.1891, allocations: 211.2 kB / 313.1 MB, free: 14.86 MB / 298.7 MB Notification: Performance of simCode: alias equations: time 0.0003482/0.1894, allocations: 199.9 kB / 313.3 MB, free: 14.66 MB / 298.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003306/0.1897, allocations: 321.1 kB / 313.6 MB, free: 14.35 MB / 298.7 MB Notification: Performance of SimCode: time 9.62e-07/0.1897, allocations: 0 / 313.6 MB, free: 14.35 MB / 298.7 MB Notification: Performance of Templates: time 0.0262/0.2159, allocations: 23.13 MB / 336.7 MB, free: 7.566 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 -emit_protected -ignoreHideResult -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.9059832775965333]