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.0008724/0.0008724, allocations: 78.28 kB / 21.42 MB, free: 3.078 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.000863/0.000863, allocations: 150.2 kB / 24.81 MB, free: 9.285 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.9266/0.9266, allocations: 173.3 MB / 201.4 MB, free: 9.184 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.904e-06/1.904e-06, allocations: 0 / 268.4 MB, free: 6.191 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 2.046e-05/2.236e-05, allocations: 6.312 kB / 268.4 MB, free: 6.184 MB / 250.7 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Spice3.Examples.Inverter): time 0.008628/0.00865, allocations: 7.559 MB / 276 MB, free: 14.59 MB / 266.7 MB Notification: Performance of NFInst.instExpressions: time 0.1375/0.1461, allocations: 18.14 MB / 294.1 MB, free: 13.92 MB / 266.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0006482/0.1468, allocations: 94.81 kB / 294.2 MB, free: 13.92 MB / 266.7 MB Notification: Performance of NFTyping.typeComponents: time 0.00152/0.1483, allocations: 0.7699 MB / 295 MB, free: 13.89 MB / 266.7 MB Notification: Performance of NFTyping.typeBindings: time 0.003551/0.1518, allocations: 1.876 MB / 296.8 MB, free: 13.52 MB / 266.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.002688/0.1545, allocations: 1.346 MB / 298.2 MB, free: 13.32 MB / 266.7 MB Notification: Performance of NFFlatten.flatten: time 0.003104/0.1576, allocations: 3.424 MB / 301.6 MB, free: 12.67 MB / 266.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.000254/0.1579, allocations: 132 kB / 301.7 MB, free: 12.61 MB / 266.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001419/0.1593, allocations: 1.495 MB / 303.2 MB, free: 12.5 MB / 266.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0004576/0.1598, allocations: 431.3 kB / 303.6 MB, free: 12.41 MB / 266.7 MB Notification: Performance of NFPackage.collectConstants: time 8.634e-05/0.1599, allocations: 39.94 kB / 303.7 MB, free: 12.41 MB / 266.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001869/0.1617, allocations: 1.172 MB / 304.9 MB, free: 12.37 MB / 266.7 MB Notification: Performance of NFScalarize.scalarize: time 8.655e-05/0.1618, allocations: 180.6 kB / 305 MB, free: 12.3 MB / 266.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0002613/0.1621, allocations: 380.7 kB / 305.4 MB, free: 12.23 MB / 266.7 MB Notification: Performance of NFConvertDAE.convert: time 0.001397/0.1635, allocations: 1.794 MB / 307.2 MB, free: 11.85 MB / 266.7 MB Notification: Performance of FrontEnd - DAE generated: time 4.549e-06/0.1635, allocations: 3.094 kB / 307.2 MB, free: 11.85 MB / 266.7 MB Notification: Performance of FrontEnd: time 1.673e-06/0.1635, allocations: 0 / 307.2 MB, free: 11.85 MB / 266.7 MB Notification: Performance of Transformations before backend: time 1.381e-05/0.1635, allocations: 3 kB / 307.2 MB, free: 11.85 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.001558/0.165, allocations: 2.149 MB / 309.4 MB, free: 10.46 MB / 266.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.002e-05/0.1651, allocations: 9.234 kB / 309.4 MB, free: 10.46 MB / 266.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001641/0.1652, allocations: 221.5 kB / 309.6 MB, free: 10.34 MB / 266.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0009491/0.1662, allocations: 1.39 MB / 311 MB, free: 9.52 MB / 266.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.425e-05/0.1662, allocations: 21.89 kB / 311 MB, free: 9.508 MB / 266.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.491e-05/0.1663, allocations: 30.52 kB / 311 MB, free: 9.496 MB / 266.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003192/0.1666, allocations: 299.4 kB / 311.3 MB, free: 9.328 MB / 266.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.897e-06/0.1666, allocations: 0 / 311.3 MB, free: 9.328 MB / 266.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.713e-05/0.1666, allocations: 10.69 kB / 311.3 MB, free: 9.32 MB / 266.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.079e-05/0.1666, allocations: 11.09 kB / 311.3 MB, free: 9.316 MB / 266.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002093/0.1668, allocations: 211.6 kB / 311.5 MB, free: 9.277 MB / 266.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0012/0.168, allocations: 1.238 MB / 312.8 MB, free: 8.543 MB / 266.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002013/0.1682, allocations: 167.6 kB / 312.9 MB, free: 8.469 MB / 266.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001795/0.1684, allocations: 225.9 kB / 313.2 MB, free: 8.281 MB / 266.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.005959/0.1744, allocations: 7.793 MB / 321 MB, free: 368 kB / 266.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001671/0.1745, allocations: 178.2 kB / 321.1 MB, free: 180 kB / 266.7 MB Notification: Performance of pre-optimization done (n=29): time 1.483e-06/0.1745, allocations: 0 / 321.1 MB, free: 180 kB / 266.7 MB Notification: Performance of matching and sorting (n=29): time 0.0006621/0.1752, allocations: 0.525 MB / 321.7 MB, free: 15.65 MB / 282.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.173e-05/0.1752, allocations: 59.41 kB / 321.7 MB, free: 15.58 MB / 282.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0009539/0.1762, allocations: 1.57 MB / 323.3 MB, free: 14.23 MB / 282.7 MB Notification: Performance of collectPreVariables (initialization): time 2.877e-05/0.1762, allocations: 37.7 kB / 323.3 MB, free: 14.19 MB / 282.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0004508/0.1767, allocations: 0.8318 MB / 324.1 MB, free: 13.43 MB / 282.7 MB Notification: Performance of collectInitialBindings (initialization): time 6.252e-05/0.1767, allocations: 117.8 kB / 324.3 MB, free: 13.32 MB / 282.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001102/0.1768, allocations: 127.3 kB / 324.4 MB, free: 13.2 MB / 282.7 MB Notification: Performance of setup shared object (initialization): time 0.0001235/0.177, allocations: 0.4973 MB / 324.9 MB, free: 12.7 MB / 282.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 7.53e-05/0.177, allocations: 56.97 kB / 324.9 MB, free: 12.65 MB / 282.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001977/0.1772, allocations: 347.5 kB / 325.3 MB, free: 12.2 MB / 282.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003191/0.1776, allocations: 452.2 kB / 325.7 MB, free: 11.67 MB / 282.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.147e-06/0.1776, allocations: 4 kB / 325.7 MB, free: 11.66 MB / 282.7 MB Notification: Performance of matching and sorting (n=62) (initialization): time 0.0005193/0.1781, allocations: 0.5845 MB / 326.3 MB, free: 11.07 MB / 282.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.419e-05/0.1781, allocations: 8 kB / 326.3 MB, free: 11.07 MB / 282.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.704e-05/0.1781, allocations: 43.94 kB / 326.4 MB, free: 11.02 MB / 282.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.000171/0.1783, allocations: 126.8 kB / 326.5 MB, free: 10.9 MB / 282.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001952/0.1785, allocations: 107.2 kB / 326.6 MB, free: 10.8 MB / 282.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0004389/0.1789, allocations: 0.915 MB / 327.5 MB, free: 9.855 MB / 282.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002402/0.1792, allocations: 59.67 kB / 327.6 MB, free: 9.797 MB / 282.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.079e-05/0.1792, allocations: 32 kB / 327.6 MB, free: 9.766 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.000182/0.1794, allocations: 196.3 kB / 327.8 MB, free: 9.562 MB / 282.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001369/0.1795, allocations: 202.8 kB / 328 MB, free: 9.363 MB / 282.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0006875/0.1802, allocations: 0.5796 MB / 328.6 MB, free: 8.777 MB / 282.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.958e-06/0.1802, allocations: 8 kB / 328.6 MB, free: 8.77 MB / 282.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.943e-06/0.1802, allocations: 0 / 328.6 MB, free: 8.77 MB / 282.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.286e-06/0.1802, allocations: 0 / 328.6 MB, free: 8.77 MB / 282.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001006/0.1812, allocations: 1.237 MB / 329.8 MB, free: 7.668 MB / 282.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.804e-05/0.1813, allocations: 36 kB / 329.8 MB, free: 7.633 MB / 282.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 9.36e-05/0.1814, allocations: 39.91 kB / 329.9 MB, free: 7.594 MB / 282.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001348/0.1815, allocations: 118.6 kB / 330 MB, free: 7.477 MB / 282.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.237e-05/0.1815, allocations: 19.94 kB / 330 MB, free: 7.457 MB / 282.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0003692/0.1819, allocations: 0.9069 MB / 330.9 MB, free: 6.523 MB / 282.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.01e-07/0.1819, allocations: 0 / 330.9 MB, free: 6.523 MB / 282.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004551/0.1823, allocations: 0.6178 MB / 331.5 MB, free: 5.875 MB / 282.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002117/0.1826, allocations: 223.5 kB / 331.8 MB, free: 5.66 MB / 282.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 7.911e-05/0.1826, allocations: 16.02 kB / 331.8 MB, free: 5.645 MB / 282.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001855/0.1828, allocations: 19.98 kB / 331.8 MB, free: 5.625 MB / 282.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.811e-05/0.1829, allocations: 43.88 kB / 331.8 MB, free: 5.582 MB / 282.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.312e-05/0.1829, allocations: 16 kB / 331.9 MB, free: 5.566 MB / 282.7 MB Notification: Performance of sorting global known variables: time 0.0005033/0.1834, allocations: 0.8405 MB / 332.7 MB, free: 4.793 MB / 282.7 MB Notification: Performance of sort global known variables: time 6e-08/0.1834, allocations: 0 / 332.7 MB, free: 4.793 MB / 282.7 MB Notification: Performance of remove unused functions: time 0.0004885/0.1839, allocations: 335.6 kB / 333 MB, free: 4.465 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.0006034/0.1845, allocations: 0.6575 MB / 333.7 MB, free: 3.906 MB / 282.7 MB Notification: Performance of simCode: created initialization part: time 0.0003899/0.1849, allocations: 354.2 kB / 334 MB, free: 3.551 MB / 282.7 MB Notification: Performance of simCode: created event and clocks part: time 1.232e-06/0.1849, allocations: 0 / 334 MB, free: 3.551 MB / 282.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0001842/0.1851, allocations: 202.4 kB / 334.2 MB, free: 3.34 MB / 282.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000719/0.1858, allocations: 327.6 kB / 334.5 MB, free: 3.023 MB / 282.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00188/0.1877, allocations: 2.11 MB / 336.7 MB, free: 0.8633 MB / 282.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001232/0.1878, allocations: 207.2 kB / 336.9 MB, free: 0.6367 MB / 282.7 MB Notification: Performance of simCode: alias equations: time 0.000317/0.1881, allocations: 199.9 kB / 337.1 MB, free: 448 kB / 282.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003477/0.1885, allocations: 366 kB / 337.4 MB, free: 80 kB / 282.7 MB Notification: Performance of SimCode: time 6.01e-07/0.1885, allocations: 0 / 337.4 MB, free: 80 kB / 282.7 MB Notification: Performance of Templates: time 0.02601/0.2145, allocations: 22.69 MB / 360.1 MB, free: 9.66 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: 2.9269375880248845]