Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_trunk_Modelica.Electrical.Spice3.Examples.Inverter.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.0007809/0.0007809, allocations: 76.05 kB / 10 MB, free: 0.6836 MB / 10.45 MB Notification: Performance of NFInstanceAPI.mkTop(): time 0.001103/0.001884, allocations: 457.8 kB / 10.45 MB, free: 244 kB / 10.45 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.0006891/0.0006891, allocations: 162 kB / 11.36 MB, free: 2.816 MB / 13.93 MB Notification: Performance of NFInstanceAPI.mkTop(): time 0.0008913/0.00158, allocations: 475.6 kB / 11.82 MB, free: 2.348 MB / 13.93 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 0.9871/0.9871, allocations: 177.5 MB / 190 MB, free: 4.781 MB / 186.7 MB Notification: Performance of NFInstanceAPI.mkTop(): time 0.09205/1.079, allocations: 53.87 MB / 243.9 MB, free: 14.83 MB / 250.7 MB " [Timeout remaining time 179] Using package Modelica with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo) Using package Complex with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo) Using package ModelicaServices with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo) Running command: translateModel(Modelica.Electrical.Spice3.Examples.Inverter,tolerance=1e-07,outputFormat="mat",numberOfIntervals=2000,variableFilter="time|mp.S.v",fileNamePrefix="Modelica_trunk_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_trunk_Modelica.Electrical.Spice3.Examples.Inverter") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 1.944e-06/1.944e-06, allocations: 0 / 245.2 MB, free: 13.56 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 2.448e-05/2.642e-05, allocations: 2.312 kB / 245.2 MB, free: 13.55 MB / 250.7 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Spice3.Examples.Inverter): time 0.006108/0.006135, allocations: 7.655 MB / 252.8 MB, free: 5.863 MB / 250.7 MB Notification: Performance of NFInst.instExpressions: time 0.0153/0.02143, allocations: 18.58 MB / 271.4 MB, free: 3.211 MB / 266.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001043/0.02248, allocations: 94.88 kB / 271.5 MB, free: 3.117 MB / 266.7 MB Notification: Performance of NFTyping.typeComponents: time 0.001668/0.02414, allocations: 0.7916 MB / 272.3 MB, free: 2.32 MB / 266.7 MB Notification: Performance of NFTyping.typeBindings: time 0.004356/0.0285, allocations: 1.828 MB / 274.1 MB, free: 492 kB / 266.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.1243/0.1528, allocations: 1.302 MB / 275.4 MB, free: 3.148 MB / 266.7 MB Notification: Performance of NFFlatten.flatten: time 0.004314/0.1571, allocations: 3.368 MB / 278.8 MB, free: 2.723 MB / 266.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0003257/0.1575, allocations: 150.8 kB / 279 MB, free: 2.637 MB / 266.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.002197/0.1597, allocations: 1.735 MB / 280.7 MB, free: 2.383 MB / 266.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0007273/0.1604, allocations: 431.2 kB / 281.1 MB, free: 2.305 MB / 266.7 MB Notification: Performance of NFPackage.collectConstants: time 0.0001375/0.1605, allocations: 43.09 kB / 281.2 MB, free: 2.301 MB / 266.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.003068/0.1636, allocations: 1.235 MB / 282.4 MB, free: 2.262 MB / 266.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0001185/0.1637, allocations: 141.7 kB / 282.5 MB, free: 2.191 MB / 266.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0004762/0.1642, allocations: 344.5 kB / 282.9 MB, free: 2.125 MB / 266.7 MB Notification: Performance of NFConvertDAE.convert: time 0.002332/0.1665, allocations: 1.672 MB / 284.5 MB, free: 1.848 MB / 266.7 MB Notification: Performance of FrontEnd - DAE generated: time 1.354e-05/0.1665, allocations: 0 / 284.5 MB, free: 1.848 MB / 266.7 MB Notification: Performance of FrontEnd: time 1.583e-06/0.1665, allocations: 0 / 284.5 MB, free: 1.848 MB / 266.7 MB Notification: Performance of Transformations before backend: time 2.548e-05/0.1666, allocations: 0 / 284.5 MB, free: 1.848 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.001922/0.1685, allocations: 2.334 MB / 286.9 MB, free: 16.61 MB / 282.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.597e-05/0.1685, allocations: 9.281 kB / 286.9 MB, free: 16.61 MB / 282.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001851/0.1687, allocations: 140 kB / 287 MB, free: 16.61 MB / 282.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0009988/0.1697, allocations: 1.118 MB / 288.1 MB, free: 16.07 MB / 282.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.886e-05/0.1697, allocations: 29.78 kB / 288.2 MB, free: 16.06 MB / 282.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.002e-05/0.1698, allocations: 30.25 kB / 288.2 MB, free: 16.05 MB / 282.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003857/0.1702, allocations: 291.3 kB / 288.5 MB, free: 15.99 MB / 282.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.018e-05/0.1702, allocations: 0.8438 kB / 288.5 MB, free: 15.99 MB / 282.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.584e-05/0.1702, allocations: 10.98 kB / 288.5 MB, free: 15.99 MB / 282.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.101e-05/0.1702, allocations: 9.781 kB / 288.5 MB, free: 15.99 MB / 282.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001863/0.1704, allocations: 114.3 kB / 288.6 MB, free: 15.99 MB / 282.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001097/0.1715, allocations: 0.8046 MB / 289.4 MB, free: 15.77 MB / 282.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001918/0.1717, allocations: 181.9 kB / 289.6 MB, free: 15.71 MB / 282.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001852/0.1719, allocations: 186.5 kB / 289.8 MB, free: 15.7 MB / 282.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.01205/0.1839, allocations: 11.56 MB / 301.3 MB, free: 8.703 MB / 282.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002246/0.1841, allocations: 142.1 kB / 301.5 MB, free: 8.605 MB / 282.7 MB Notification: Performance of pre-optimization done (n=29): time 1.843e-06/0.1841, allocations: 0 / 301.5 MB, free: 8.605 MB / 282.7 MB Notification: Performance of matching and sorting (n=29): time 0.0005795/0.1847, allocations: 344.3 kB / 301.8 MB, free: 8.344 MB / 282.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.39e-05/0.1848, allocations: 58.08 kB / 301.9 MB, free: 8.277 MB / 282.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0008292/0.1856, allocations: 1.324 MB / 303.2 MB, free: 7.422 MB / 282.7 MB Notification: Performance of collectPreVariables (initialization): time 2.819e-05/0.1856, allocations: 36.61 kB / 303.2 MB, free: 7.383 MB / 282.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002092/0.1858, allocations: 414.9 kB / 303.6 MB, free: 7.109 MB / 282.7 MB Notification: Performance of collectInitialBindings (initialization): time 6.055e-05/0.1859, allocations: 99.86 kB / 303.7 MB, free: 7.027 MB / 282.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001008/0.186, allocations: 104.1 kB / 303.8 MB, free: 6.938 MB / 282.7 MB Notification: Performance of setup shared object (initialization): time 8.173e-05/0.1861, allocations: 331.8 kB / 304.2 MB, free: 6.625 MB / 282.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 6.542e-05/0.1861, allocations: 40.84 kB / 304.2 MB, free: 6.59 MB / 282.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001487/0.1863, allocations: 260.8 kB / 304.5 MB, free: 6.281 MB / 282.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002772/0.1866, allocations: 358.1 kB / 304.8 MB, free: 5.906 MB / 282.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.681e-06/0.1866, allocations: 4 kB / 304.8 MB, free: 5.902 MB / 282.7 MB Notification: Performance of matching and sorting (n=62) (initialization): time 0.000441/0.187, allocations: 418.2 kB / 305.2 MB, free: 5.543 MB / 282.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.933e-05/0.187, allocations: 8 kB / 305.2 MB, free: 5.535 MB / 282.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.331e-05/0.1871, allocations: 13.38 kB / 305.2 MB, free: 5.523 MB / 282.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001666/0.1872, allocations: 74.05 kB / 305.3 MB, free: 5.453 MB / 282.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002139/0.1874, allocations: 114.4 kB / 305.4 MB, free: 5.348 MB / 282.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0003456/0.1878, allocations: 0.5805 MB / 306 MB, free: 4.754 MB / 282.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003199/0.1881, allocations: 59.61 kB / 306.1 MB, free: 4.695 MB / 282.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.228e-05/0.1881, allocations: 20 kB / 306.1 MB, free: 4.676 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.0001659/0.1883, allocations: 140.4 kB / 306.2 MB, free: 4.535 MB / 282.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001005/0.1884, allocations: 131.8 kB / 306.3 MB, free: 4.406 MB / 282.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.000627/0.189, allocations: 453.4 kB / 306.8 MB, free: 3.969 MB / 282.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.617e-06/0.189, allocations: 0 / 306.8 MB, free: 3.969 MB / 282.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.453e-06/0.189, allocations: 4 kB / 306.8 MB, free: 3.965 MB / 282.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.408e-06/0.189, allocations: 0 / 306.8 MB, free: 3.965 MB / 282.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0008714/0.1899, allocations: 0.8835 MB / 307.7 MB, free: 3.238 MB / 282.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.286e-05/0.1899, allocations: 12.86 kB / 307.7 MB, free: 3.227 MB / 282.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001035/0.19, allocations: 38.97 kB / 307.7 MB, free: 3.191 MB / 282.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001809/0.1902, allocations: 197.4 kB / 307.9 MB, free: 2.996 MB / 282.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.000111/0.1903, allocations: 64.3 kB / 308 MB, free: 2.934 MB / 282.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.941e-05/0.1904, allocations: 8 kB / 308 MB, free: 2.926 MB / 282.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0002631/0.1906, allocations: 0.5609 MB / 308.6 MB, free: 2.348 MB / 282.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.142e-06/0.1906, allocations: 0 / 308.6 MB, free: 2.348 MB / 282.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003293/0.1909, allocations: 398.2 kB / 308.9 MB, free: 1.945 MB / 282.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 8.389e-05/0.191, allocations: 8 kB / 308.9 MB, free: 1.938 MB / 282.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001806/0.1912, allocations: 15.98 kB / 309 MB, free: 1.922 MB / 282.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.476e-05/0.1913, allocations: 35.94 kB / 309 MB, free: 1.887 MB / 282.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.079e-05/0.1913, allocations: 7.938 kB / 309 MB, free: 1.879 MB / 282.7 MB Notification: Performance of sorting global known variables: time 0.0007001/0.192, allocations: 0.6847 MB / 309.7 MB, free: 1.258 MB / 282.7 MB Notification: Performance of sort global known variables: time 6e-08/0.192, allocations: 0 / 309.7 MB, free: 1.258 MB / 282.7 MB Notification: Performance of remove unused functions: time 0.0006307/0.1926, allocations: 331.6 kB / 310 MB, free: 0.9336 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.0006825/0.1933, allocations: 0.6592 MB / 310.7 MB, free: 396 kB / 282.7 MB Notification: Performance of simCode: created initialization part: time 0.0003562/0.1937, allocations: 275.7 kB / 310.9 MB, free: 116 kB / 282.7 MB Notification: Performance of simCode: created event and clocks part: time 2.025e-05/0.1937, allocations: 22.16 kB / 311 MB, free: 96 kB / 282.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0001951/0.1939, allocations: 168.3 kB / 311.1 MB, free: 15.92 MB / 298.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001547/0.1954, allocations: 2.965 MB / 314.1 MB, free: 12.41 MB / 298.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003887/0.1993, allocations: 2.019 MB / 316.1 MB, free: 10.36 MB / 298.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001304/0.1995, allocations: 211.2 kB / 316.3 MB, free: 10.13 MB / 298.7 MB Notification: Performance of simCode: alias equations: time 0.0005547/0.2, allocations: 199.9 kB / 316.5 MB, free: 9.93 MB / 298.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003635/0.2004, allocations: 316.3 kB / 316.8 MB, free: 9.625 MB / 298.7 MB Notification: Performance of SimCode: time 1.894e-06/0.2004, allocations: 0 / 316.8 MB, free: 9.625 MB / 298.7 MB Notification: Performance of Templates: time 0.02741/0.2278, allocations: 22.97 MB / 339.8 MB, free: 2.98 MB / 314.7 MB " [Timeout remaining time 660] make -j1 -f Modelica_trunk_Modelica.Electrical.Spice3.Examples.Inverter.makefile [Timeout 660] (rm -f Modelica_trunk_Modelica.Electrical.Spice3.Examples.Inverter.pipe ; mkfifo Modelica_trunk_Modelica.Electrical.Spice3.Examples.Inverter.pipe ; head -c 1048576 < Modelica_trunk_Modelica.Electrical.Spice3.Examples.Inverter.pipe >> ../files/Modelica_trunk_Modelica.Electrical.Spice3.Examples.Inverter.sim & ./Modelica_trunk_Modelica.Electrical.Spice3.Examples.Inverter -abortSlowSimulation -alarm=240 -emit_protected -ignoreHideResult -lv LOG_STATS > Modelica_trunk_Modelica.Electrical.Spice3.Examples.Inverter.pipe 2>&1) [Timeout 240] diffSimulationResults("Modelica_trunk_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,tube=OpenModelica.Scripting.TubeAlgorithm.rectangle) [Timeout 660] "" [Timeout remaining time 660] Reference file matches [Calling sys.exit(0), Time elapsed: 2.959101085551083]