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.001421/0.001421, allocations: 79.91 kB / 21.18 MB, free: 3.391 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.001487/0.001487, allocations: 141.1 kB / 24.54 MB, free: 36 kB / 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.967/0.967, allocations: 173.3 MB / 201.1 MB, free: 9.336 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 2.154e-06/2.154e-06, allocations: 0 / 268 MB, free: 6.457 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 2.752e-05/2.968e-05, allocations: 10.19 kB / 268 MB, free: 6.445 MB / 250.7 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Spice3.Examples.Inverter): time 0.01091/0.01094, allocations: 7.728 MB / 275.7 MB, free: 14.68 MB / 266.7 MB Notification: Performance of NFInst.instExpressions: time 0.1539/0.1648, allocations: 18.51 MB / 294.2 MB, free: 13.8 MB / 266.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001055/0.1659, allocations: 95.62 kB / 294.3 MB, free: 13.8 MB / 266.7 MB Notification: Performance of NFTyping.typeComponents: time 0.001803/0.1677, allocations: 0.7713 MB / 295.1 MB, free: 13.77 MB / 266.7 MB Notification: Performance of NFTyping.typeBindings: time 0.004571/0.1722, allocations: 1.872 MB / 297 MB, free: 13.4 MB / 266.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.00399/0.1762, allocations: 1.35 MB / 298.3 MB, free: 13.2 MB / 266.7 MB Notification: Performance of NFFlatten.flatten: time 0.004487/0.1807, allocations: 3.423 MB / 301.7 MB, free: 12.55 MB / 266.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0003191/0.181, allocations: 128.9 kB / 301.9 MB, free: 12.49 MB / 266.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001711/0.1827, allocations: 1.499 MB / 303.4 MB, free: 12.38 MB / 266.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0005573/0.1833, allocations: 429.2 kB / 303.8 MB, free: 12.3 MB / 266.7 MB Notification: Performance of NFPackage.collectConstants: time 9.395e-05/0.1834, allocations: 40.31 kB / 303.8 MB, free: 12.3 MB / 266.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.002843/0.1862, allocations: 1.178 MB / 305 MB, free: 12.25 MB / 266.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0001103/0.1863, allocations: 173.1 kB / 305.2 MB, free: 12.18 MB / 266.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0003593/0.1867, allocations: 382.4 kB / 305.5 MB, free: 12.11 MB / 266.7 MB Notification: Performance of NFConvertDAE.convert: time 0.002174/0.1889, allocations: 1.799 MB / 307.3 MB, free: 11.71 MB / 266.7 MB Notification: Performance of FrontEnd - DAE generated: time 4.849e-06/0.1889, allocations: 0 / 307.3 MB, free: 11.71 MB / 266.7 MB Notification: Performance of FrontEnd: time 1.323e-06/0.1889, allocations: 4 kB / 307.3 MB, free: 11.7 MB / 266.7 MB Notification: Performance of Transformations before backend: time 1.802e-05/0.1889, allocations: 0 / 307.3 MB, free: 11.7 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.001556/0.1905, allocations: 2.124 MB / 309.5 MB, free: 10.24 MB / 266.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.648e-05/0.1905, allocations: 9.109 kB / 309.5 MB, free: 10.24 MB / 266.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001775/0.1907, allocations: 221.8 kB / 309.7 MB, free: 10.13 MB / 266.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0009332/0.1916, allocations: 1.388 MB / 311.1 MB, free: 9.277 MB / 266.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.55e-05/0.1916, allocations: 24.09 kB / 311.1 MB, free: 9.266 MB / 266.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.736e-05/0.1917, allocations: 31.61 kB / 311.1 MB, free: 9.254 MB / 266.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003815/0.1921, allocations: 325.2 kB / 311.4 MB, free: 9.074 MB / 266.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.757e-06/0.1921, allocations: 0 / 311.4 MB, free: 9.074 MB / 266.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.775e-05/0.1921, allocations: 10.66 kB / 311.5 MB, free: 9.066 MB / 266.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.27e-05/0.1921, allocations: 10.14 kB / 311.5 MB, free: 9.062 MB / 266.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002717/0.1924, allocations: 251 kB / 311.7 MB, free: 9.008 MB / 266.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.00141/0.1938, allocations: 1.492 MB / 313.2 MB, free: 8.004 MB / 266.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002458/0.194, allocations: 187.2 kB / 313.4 MB, free: 7.914 MB / 266.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002393/0.1943, allocations: 249.7 kB / 313.6 MB, free: 7.844 MB / 266.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.006436/0.2007, allocations: 7.766 MB / 321.4 MB, free: 15.95 MB / 282.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002427/0.2009, allocations: 192.9 kB / 321.6 MB, free: 15.75 MB / 282.7 MB Notification: Performance of pre-optimization done (n=29): time 1.392e-06/0.2009, allocations: 4 kB / 321.6 MB, free: 15.74 MB / 282.7 MB Notification: Performance of matching and sorting (n=29): time 0.0008505/0.2018, allocations: 0.5507 MB / 322.1 MB, free: 15.18 MB / 282.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.538e-05/0.2018, allocations: 63.39 kB / 322.2 MB, free: 15.11 MB / 282.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.00117/0.203, allocations: 1.581 MB / 323.8 MB, free: 13.48 MB / 282.7 MB Notification: Performance of collectPreVariables (initialization): time 2.767e-05/0.203, allocations: 33.7 kB / 323.8 MB, free: 13.44 MB / 282.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0004771/0.2035, allocations: 0.8289 MB / 324.6 MB, free: 12.61 MB / 282.7 MB Notification: Performance of collectInitialBindings (initialization): time 6.319e-05/0.2036, allocations: 97.88 kB / 324.7 MB, free: 12.51 MB / 282.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001206/0.2037, allocations: 131.7 kB / 324.9 MB, free: 12.38 MB / 282.7 MB Notification: Performance of setup shared object (initialization): time 0.0001271/0.2038, allocations: 0.5004 MB / 325.4 MB, free: 11.87 MB / 282.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001105/0.2039, allocations: 72.95 kB / 325.4 MB, free: 11.8 MB / 282.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004951/0.2044, allocations: 355.7 kB / 325.8 MB, free: 11.32 MB / 282.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003531/0.2048, allocations: 470 kB / 326.2 MB, free: 10.74 MB / 282.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.418e-06/0.2048, allocations: 4 kB / 326.2 MB, free: 10.73 MB / 282.7 MB Notification: Performance of matching and sorting (n=62) (initialization): time 0.00062/0.2054, allocations: 0.6154 MB / 326.9 MB, free: 10.11 MB / 282.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.193e-05/0.2054, allocations: 16.09 kB / 326.9 MB, free: 10.09 MB / 282.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.921e-05/0.2055, allocations: 44 kB / 326.9 MB, free: 10.05 MB / 282.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.000214/0.2057, allocations: 122.1 kB / 327 MB, free: 9.93 MB / 282.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002163/0.2059, allocations: 107.8 kB / 327.1 MB, free: 9.824 MB / 282.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0004528/0.2063, allocations: 0.917 MB / 328.1 MB, free: 8.875 MB / 282.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000348/0.2067, allocations: 63.7 kB / 328.1 MB, free: 8.812 MB / 282.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.744e-05/0.2068, allocations: 39.62 kB / 328.2 MB, free: 8.777 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.0001941/0.2069, allocations: 198 kB / 328.4 MB, free: 8.574 MB / 282.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001291/0.2071, allocations: 202.8 kB / 328.6 MB, free: 8.375 MB / 282.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.000745/0.2078, allocations: 0.5993 MB / 329.2 MB, free: 7.77 MB / 282.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.451e-06/0.2078, allocations: 4 kB / 329.2 MB, free: 7.766 MB / 282.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.557e-06/0.2078, allocations: 0 / 329.2 MB, free: 7.766 MB / 282.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.029e-06/0.2078, allocations: 11.41 kB / 329.2 MB, free: 7.758 MB / 282.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001114/0.2089, allocations: 1.215 MB / 330.4 MB, free: 6.492 MB / 282.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.916e-05/0.209, allocations: 40 kB / 330.4 MB, free: 6.453 MB / 282.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 9.826e-05/0.2091, allocations: 31.97 kB / 330.5 MB, free: 6.422 MB / 282.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001435/0.2092, allocations: 127.6 kB / 330.6 MB, free: 6.293 MB / 282.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.734e-05/0.2092, allocations: 19.94 kB / 330.6 MB, free: 6.273 MB / 282.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0003843/0.2096, allocations: 0.9054 MB / 331.5 MB, free: 5.336 MB / 282.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.503e-06/0.2096, allocations: 0 / 331.5 MB, free: 5.336 MB / 282.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0005084/0.2101, allocations: 0.648 MB / 332.2 MB, free: 4.652 MB / 282.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002042/0.2103, allocations: 220.6 kB / 332.4 MB, free: 4.438 MB / 282.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 9.336e-05/0.2104, allocations: 11.98 kB / 332.4 MB, free: 4.426 MB / 282.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001878/0.2106, allocations: 16.02 kB / 332.4 MB, free: 4.41 MB / 282.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.886e-05/0.2107, allocations: 47.83 kB / 332.4 MB, free: 4.363 MB / 282.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002854/0.211, allocations: 27.98 kB / 332.5 MB, free: 4.336 MB / 282.7 MB Notification: Performance of sorting global known variables: time 0.000695/0.2117, allocations: 0.8906 MB / 333.4 MB, free: 3.426 MB / 282.7 MB Notification: Performance of sort global known variables: time 6e-08/0.2117, allocations: 0 / 333.4 MB, free: 3.426 MB / 282.7 MB Notification: Performance of remove unused functions: time 0.0006276/0.2123, allocations: 331.6 kB / 333.7 MB, free: 3.102 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.000628/0.213, allocations: 0.5945 MB / 334.3 MB, free: 2.605 MB / 282.7 MB Notification: Performance of simCode: created initialization part: time 0.0005098/0.2135, allocations: 373.9 kB / 334.6 MB, free: 2.227 MB / 282.7 MB Notification: Performance of simCode: created event and clocks part: time 1.743e-06/0.2135, allocations: 0 / 334.6 MB, free: 2.227 MB / 282.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0002157/0.2137, allocations: 220 kB / 334.9 MB, free: 1.996 MB / 282.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0007773/0.2145, allocations: 332.6 kB / 335.2 MB, free: 1.672 MB / 282.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002103/0.2166, allocations: 2.107 MB / 337.3 MB, free: 15.51 MB / 298.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001219/0.2167, allocations: 215.2 kB / 337.5 MB, free: 15.28 MB / 298.7 MB Notification: Performance of simCode: alias equations: time 0.0003308/0.217, allocations: 195.9 kB / 337.7 MB, free: 15.08 MB / 298.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 9.654e-05/0.2171, allocations: 92.48 kB / 337.8 MB, free: 14.99 MB / 298.7 MB Notification: Performance of SimCode: time 8.11e-07/0.2171, allocations: 0 / 337.8 MB, free: 14.99 MB / 298.7 MB Notification: Performance of Templates: time 0.02896/0.2461, allocations: 24.12 MB / 361.9 MB, free: 7.129 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.152233941014856]