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.0009433/0.0009433, allocations: 79.75 kB / 21.18 MB, free: 3.379 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.0009197/0.0009197, allocations: 161 kB / 24.56 MB, free: 12 kB / 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.9692/0.9692, allocations: 177.1 MB / 205 MB, free: 5.625 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.763e-06/1.763e-06, allocations: 0 / 273 MB, free: 1.559 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 1.629e-05/1.805e-05, allocations: 2.312 kB / 273 MB, free: 1.555 MB / 250.7 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Spice3.Examples.Inverter): time 0.008522/0.00854, allocations: 7.75 MB / 280.7 MB, free: 9.766 MB / 266.7 MB Notification: Performance of NFInst.instExpressions: time 0.1229/0.1314, allocations: 18.54 MB / 299.3 MB, free: 13.73 MB / 266.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0005887/0.132, allocations: 96.06 kB / 299.3 MB, free: 13.73 MB / 266.7 MB Notification: Performance of NFTyping.typeComponents: time 0.001359/0.1334, allocations: 0.7691 MB / 300.1 MB, free: 13.55 MB / 266.7 MB Notification: Performance of NFTyping.typeBindings: time 0.003158/0.1365, allocations: 1.877 MB / 302 MB, free: 12.85 MB / 266.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.002084/0.1386, allocations: 1.342 MB / 303.3 MB, free: 12.46 MB / 266.7 MB Notification: Performance of NFFlatten.flatten: time 0.002873/0.1415, allocations: 3.458 MB / 306.8 MB, free: 11.76 MB / 266.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002283/0.1417, allocations: 131 kB / 306.9 MB, free: 11.68 MB / 266.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001209/0.1429, allocations: 1.536 MB / 308.5 MB, free: 11.3 MB / 266.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0003603/0.1433, allocations: 439.5 kB / 308.9 MB, free: 11.16 MB / 266.7 MB Notification: Performance of NFPackage.collectConstants: time 6.188e-05/0.1433, allocations: 40.5 kB / 308.9 MB, free: 11.16 MB / 266.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001628/0.145, allocations: 1.178 MB / 310.1 MB, free: 10.82 MB / 266.7 MB Notification: Performance of NFScalarize.scalarize: time 9.002e-05/0.1451, allocations: 173.5 kB / 310.3 MB, free: 10.69 MB / 266.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0002523/0.1453, allocations: 379.1 kB / 310.6 MB, free: 10.56 MB / 266.7 MB Notification: Performance of NFConvertDAE.convert: time 0.001308/0.1466, allocations: 1.801 MB / 312.4 MB, free: 9.531 MB / 266.7 MB Notification: Performance of FrontEnd - DAE generated: time 3.587e-06/0.1466, allocations: 0 / 312.4 MB, free: 9.531 MB / 266.7 MB Notification: Performance of FrontEnd: time 8.82e-07/0.1466, allocations: 0 / 312.4 MB, free: 9.531 MB / 266.7 MB Notification: Performance of Transformations before backend: time 1.183e-05/0.1466, allocations: 0 / 312.4 MB, free: 9.531 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.001385/0.148, allocations: 2.134 MB / 314.6 MB, free: 7.809 MB / 266.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.096e-05/0.1481, allocations: 11.97 kB / 314.6 MB, free: 7.797 MB / 266.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001493/0.1482, allocations: 226.2 kB / 314.8 MB, free: 7.578 MB / 266.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0008621/0.1491, allocations: 1.388 MB / 316.2 MB, free: 6.109 MB / 266.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.354e-05/0.1491, allocations: 16.66 kB / 316.2 MB, free: 6.094 MB / 266.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.636e-05/0.1491, allocations: 31.95 kB / 316.2 MB, free: 6.062 MB / 266.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003808/0.1495, allocations: 322.6 kB / 316.6 MB, free: 5.738 MB / 266.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.418e-06/0.1495, allocations: 0 / 316.6 MB, free: 5.738 MB / 266.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.648e-05/0.1495, allocations: 16 kB / 316.6 MB, free: 5.723 MB / 266.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.118e-05/0.1496, allocations: 15.98 kB / 316.6 MB, free: 5.707 MB / 266.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002627/0.1498, allocations: 243.8 kB / 316.8 MB, free: 5.465 MB / 266.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001292/0.1511, allocations: 1.486 MB / 318.3 MB, free: 3.93 MB / 266.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002289/0.1513, allocations: 188.8 kB / 318.5 MB, free: 3.73 MB / 266.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002231/0.1516, allocations: 248.7 kB / 318.7 MB, free: 3.484 MB / 266.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.006845/0.1584, allocations: 7.773 MB / 326.5 MB, free: 11.51 MB / 282.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002331/0.1586, allocations: 185.7 kB / 326.7 MB, free: 11.32 MB / 282.7 MB Notification: Performance of pre-optimization done (n=29): time 1.243e-06/0.1586, allocations: 0 / 326.7 MB, free: 11.32 MB / 282.7 MB Notification: Performance of matching and sorting (n=29): time 0.0007815/0.1594, allocations: 0.5663 MB / 327.3 MB, free: 10.74 MB / 282.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.043e-05/0.1595, allocations: 55.41 kB / 327.3 MB, free: 10.67 MB / 282.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001115/0.1606, allocations: 1.589 MB / 328.9 MB, free: 9.039 MB / 282.7 MB Notification: Performance of collectPreVariables (initialization): time 2.745e-05/0.1606, allocations: 33.7 kB / 328.9 MB, free: 9 MB / 282.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0004483/0.161, allocations: 0.826 MB / 329.8 MB, free: 8.168 MB / 282.7 MB Notification: Performance of collectInitialBindings (initialization): time 6.346e-05/0.1611, allocations: 95.22 kB / 329.9 MB, free: 8.074 MB / 282.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001131/0.1612, allocations: 135.7 kB / 330 MB, free: 7.934 MB / 282.7 MB Notification: Performance of setup shared object (initialization): time 0.0001045/0.1613, allocations: 0.4926 MB / 330.5 MB, free: 7.434 MB / 282.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001134/0.1614, allocations: 80.89 kB / 330.6 MB, free: 7.355 MB / 282.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002189/0.1617, allocations: 355.8 kB / 330.9 MB, free: 6.879 MB / 282.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003584/0.162, allocations: 475.1 kB / 331.4 MB, free: 6.289 MB / 282.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.739e-06/0.162, allocations: 4 kB / 331.4 MB, free: 6.285 MB / 282.7 MB Notification: Performance of matching and sorting (n=62) (initialization): time 0.0008775/0.1629, allocations: 0.622 MB / 332 MB, free: 5.652 MB / 282.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.731e-05/0.1629, allocations: 8 kB / 332 MB, free: 5.645 MB / 282.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.69e-05/0.163, allocations: 44 kB / 332.1 MB, free: 5.602 MB / 282.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002027/0.1632, allocations: 129.6 kB / 332.2 MB, free: 5.477 MB / 282.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002118/0.1634, allocations: 104.3 kB / 332.3 MB, free: 5.375 MB / 282.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0004563/0.1638, allocations: 0.9171 MB / 333.2 MB, free: 4.426 MB / 282.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002409/0.1641, allocations: 55.61 kB / 333.3 MB, free: 4.371 MB / 282.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.712e-05/0.1641, allocations: 39.98 kB / 333.3 MB, free: 4.332 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.0001861/0.1643, allocations: 198.8 kB / 333.5 MB, free: 4.129 MB / 282.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001254/0.1644, allocations: 206.8 kB / 333.7 MB, free: 3.926 MB / 282.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0007745/0.1652, allocations: 0.5864 MB / 334.3 MB, free: 3.328 MB / 282.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.338e-06/0.1652, allocations: 4 kB / 334.3 MB, free: 3.324 MB / 282.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.16e-06/0.1652, allocations: 3.938 kB / 334.3 MB, free: 3.32 MB / 282.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.38e-06/0.1652, allocations: 3.984 kB / 334.3 MB, free: 3.316 MB / 282.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001149/0.1664, allocations: 1.222 MB / 335.5 MB, free: 2.035 MB / 282.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.758e-05/0.1664, allocations: 36 kB / 335.5 MB, free: 2 MB / 282.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 9.813e-05/0.1665, allocations: 39.97 kB / 335.6 MB, free: 1.961 MB / 282.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001502/0.1666, allocations: 128.3 kB / 335.7 MB, free: 1.832 MB / 282.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.447e-05/0.1667, allocations: 16 kB / 335.7 MB, free: 1.816 MB / 282.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0004003/0.1671, allocations: 0.9021 MB / 336.6 MB, free: 0.8828 MB / 282.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.473e-06/0.1671, allocations: 0 / 336.6 MB, free: 0.8828 MB / 282.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0005189/0.1676, allocations: 0.6471 MB / 337.3 MB, free: 204 kB / 282.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002052/0.1678, allocations: 224.6 kB / 337.5 MB, free: 15.98 MB / 298.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 9.184e-05/0.1679, allocations: 8 kB / 337.5 MB, free: 15.97 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001851/0.1681, allocations: 14.84 kB / 337.5 MB, free: 15.96 MB / 298.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.02e-05/0.1682, allocations: 51.81 kB / 337.6 MB, free: 15.91 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.704e-05/0.1682, allocations: 24 kB / 337.6 MB, free: 15.89 MB / 298.7 MB Notification: Performance of sorting global known variables: time 0.0006868/0.1689, allocations: 0.8906 MB / 338.5 MB, free: 14.98 MB / 298.7 MB Notification: Performance of sort global known variables: time 6e-08/0.1689, allocations: 0 / 338.5 MB, free: 14.98 MB / 298.7 MB Notification: Performance of remove unused functions: time 0.0004932/0.1694, allocations: 335.5 kB / 338.8 MB, free: 14.65 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.0008228/0.1702, allocations: 0.6074 MB / 339.4 MB, free: 14.04 MB / 298.7 MB Notification: Performance of simCode: created initialization part: time 0.0004745/0.1707, allocations: 368.4 kB / 339.8 MB, free: 13.67 MB / 298.7 MB Notification: Performance of simCode: created event and clocks part: time 1.392e-06/0.1707, allocations: 7.875 kB / 339.8 MB, free: 13.66 MB / 298.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0002149/0.1709, allocations: 216.1 kB / 340 MB, free: 13.43 MB / 298.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0007438/0.1716, allocations: 329.1 kB / 340.3 MB, free: 13.12 MB / 298.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001922/0.1735, allocations: 2.117 MB / 342.4 MB, free: 10.95 MB / 298.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001188/0.1737, allocations: 215 kB / 342.6 MB, free: 10.71 MB / 298.7 MB Notification: Performance of simCode: alias equations: time 0.0003116/0.174, allocations: 199.9 kB / 342.8 MB, free: 10.51 MB / 298.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 9.648e-05/0.1741, allocations: 88.5 kB / 342.9 MB, free: 10.43 MB / 298.7 MB Notification: Performance of SimCode: time 7.91e-07/0.1741, allocations: 0 / 342.9 MB, free: 10.43 MB / 298.7 MB Notification: Performance of Templates: time 0.02608/0.2002, allocations: 24.17 MB / 367.1 MB, free: 2.5 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 -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: 3.0988186872564256]