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.000898/0.000898, allocations: 84.73 kB / 21.5 MB, free: 2.988 MB / 18.57 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.001383/0.001383, allocations: 165.6 kB / 24.91 MB, free: 8.77 MB / 18.57 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.8798/0.8798, allocations: 177 MB / 205.2 MB, free: 5.449 MB / 186.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.352e-06/1.352e-06, allocations: 0 / 273.4 MB, free: 1.238 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 9.868e-06/1.122e-05, allocations: 2.312 kB / 273.4 MB, free: 1.234 MB / 250.7 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Spice3.Examples.Inverter): time 0.004957/0.004968, allocations: 7.58 MB / 281 MB, free: 9.613 MB / 266.7 MB Notification: Performance of NFInst.instExpressions: time 0.112/0.117, allocations: 18.49 MB / 299.4 MB, free: 14.4 MB / 266.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0005841/0.1176, allocations: 101.1 kB / 299.5 MB, free: 14.4 MB / 266.7 MB Notification: Performance of NFTyping.typeComponents: time 0.001291/0.1189, allocations: 0.7874 MB / 300.3 MB, free: 14.18 MB / 266.7 MB Notification: Performance of NFTyping.typeBindings: time 0.00336/0.1222, allocations: 1.895 MB / 302.2 MB, free: 13.47 MB / 266.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.002113/0.1243, allocations: 1.363 MB / 303.6 MB, free: 13.06 MB / 266.7 MB Notification: Performance of NFFlatten.flatten: time 0.00267/0.127, allocations: 3.439 MB / 307 MB, free: 12 MB / 266.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001825/0.1272, allocations: 143.3 kB / 307.2 MB, free: 11.9 MB / 266.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.00116/0.1283, allocations: 1.543 MB / 308.7 MB, free: 11.44 MB / 266.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0003701/0.1287, allocations: 428.3 kB / 309.1 MB, free: 11.27 MB / 266.7 MB Notification: Performance of NFPackage.collectConstants: time 5.489e-05/0.1288, allocations: 40.38 kB / 309.2 MB, free: 11.27 MB / 266.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001465/0.1302, allocations: 1.179 MB / 310.3 MB, free: 10.89 MB / 266.7 MB Notification: Performance of NFScalarize.scalarize: time 8.023e-05/0.1303, allocations: 175.1 kB / 310.5 MB, free: 10.76 MB / 266.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0002348/0.1306, allocations: 383.2 kB / 310.9 MB, free: 10.62 MB / 266.7 MB Notification: Performance of NFConvertDAE.convert: time 0.001188/0.1317, allocations: 1.797 MB / 312.7 MB, free: 9.598 MB / 266.7 MB Notification: Performance of FrontEnd - DAE generated: time 2.074e-06/0.1317, allocations: 0 / 312.7 MB, free: 9.598 MB / 266.7 MB Notification: Performance of FrontEnd: time 8.11e-07/0.1317, allocations: 0 / 312.7 MB, free: 9.598 MB / 266.7 MB Notification: Performance of Transformations before backend: time 1.33e-05/0.1318, allocations: 0 / 312.7 MB, free: 9.598 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.001165/0.1329, allocations: 1.947 MB / 314.6 MB, free: 7.812 MB / 266.7 MB Notification: Performance of prepare preOptimizeDAE: time 2.436e-05/0.1329, allocations: 11.98 kB / 314.6 MB, free: 7.801 MB / 266.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001061/0.1331, allocations: 143.8 kB / 314.8 MB, free: 7.66 MB / 266.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0008088/0.1339, allocations: 1.117 MB / 315.9 MB, free: 6.453 MB / 266.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.279e-05/0.1339, allocations: 20.66 kB / 315.9 MB, free: 6.434 MB / 266.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.178e-05/0.1339, allocations: 27.95 kB / 315.9 MB, free: 6.406 MB / 266.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002699/0.1342, allocations: 285.3 kB / 316.2 MB, free: 6.113 MB / 266.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.045e-06/0.1342, allocations: 0 / 316.2 MB, free: 6.113 MB / 266.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.256e-05/0.1342, allocations: 12 kB / 316.2 MB, free: 6.102 MB / 266.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.218e-06/0.1342, allocations: 15.98 kB / 316.3 MB, free: 6.086 MB / 266.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001598/0.1344, allocations: 112.5 kB / 316.4 MB, free: 5.98 MB / 266.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0008908/0.1353, allocations: 0.7982 MB / 317.2 MB, free: 5.156 MB / 266.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001519/0.1354, allocations: 184.1 kB / 317.3 MB, free: 4.969 MB / 266.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001501/0.1356, allocations: 194.1 kB / 317.5 MB, free: 4.777 MB / 266.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.01056/0.1461, allocations: 11.59 MB / 329.1 MB, free: 8.75 MB / 282.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001625/0.1463, allocations: 143.9 kB / 329.3 MB, free: 8.598 MB / 282.7 MB Notification: Performance of pre-optimization done (n=29): time 1.383e-06/0.1463, allocations: 4 kB / 329.3 MB, free: 8.594 MB / 282.7 MB Notification: Performance of matching and sorting (n=29): time 0.0004963/0.1468, allocations: 342.9 kB / 329.6 MB, free: 8.25 MB / 282.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.778e-05/0.1468, allocations: 63.39 kB / 329.7 MB, free: 8.176 MB / 282.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0007009/0.1475, allocations: 1.314 MB / 331 MB, free: 6.824 MB / 282.7 MB Notification: Performance of collectPreVariables (initialization): time 2.399e-05/0.1476, allocations: 29.7 kB / 331 MB, free: 6.789 MB / 282.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001896/0.1477, allocations: 420.2 kB / 331.4 MB, free: 6.375 MB / 282.7 MB Notification: Performance of collectInitialBindings (initialization): time 5.424e-05/0.1478, allocations: 99.25 kB / 331.5 MB, free: 6.277 MB / 282.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 9.325e-05/0.1479, allocations: 106 kB / 331.6 MB, free: 6.168 MB / 282.7 MB Notification: Performance of setup shared object (initialization): time 6.733e-05/0.148, allocations: 329.9 kB / 331.9 MB, free: 5.84 MB / 282.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 6.001e-05/0.148, allocations: 44.92 kB / 332 MB, free: 5.797 MB / 282.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001425/0.1482, allocations: 250.9 kB / 332.2 MB, free: 5.461 MB / 282.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002465/0.1484, allocations: 350.1 kB / 332.6 MB, free: 5.027 MB / 282.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.878e-06/0.1484, allocations: 3.562 kB / 332.6 MB, free: 5.027 MB / 282.7 MB Notification: Performance of matching and sorting (n=62) (initialization): time 0.0003896/0.1488, allocations: 419 kB / 333 MB, free: 4.609 MB / 282.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.197e-05/0.1488, allocations: 8 kB / 333 MB, free: 4.602 MB / 282.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.79e-05/0.1488, allocations: 15.94 kB / 333 MB, free: 4.586 MB / 282.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001417/0.149, allocations: 68.81 kB / 333.1 MB, free: 4.516 MB / 282.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001823/0.1492, allocations: 99.83 kB / 333.2 MB, free: 4.418 MB / 282.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0002764/0.1494, allocations: 0.5719 MB / 333.7 MB, free: 3.82 MB / 282.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000227/0.1497, allocations: 63.61 kB / 333.8 MB, free: 3.758 MB / 282.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.215e-05/0.1497, allocations: 20 kB / 333.8 MB, free: 3.738 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.0001549/0.1499, allocations: 149.6 kB / 334 MB, free: 3.582 MB / 282.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 9.21e-05/0.1499, allocations: 127.8 kB / 334.1 MB, free: 3.457 MB / 282.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.000562/0.1505, allocations: 456.7 kB / 334.5 MB, free: 3.008 MB / 282.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.545e-06/0.1505, allocations: 4 kB / 334.5 MB, free: 3.004 MB / 282.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.092e-06/0.1505, allocations: 0 / 334.5 MB, free: 3.004 MB / 282.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.688e-06/0.1505, allocations: 4 kB / 334.5 MB, free: 3 MB / 282.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0007216/0.1512, allocations: 0.8892 MB / 335.4 MB, free: 2.066 MB / 282.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.782e-05/0.1513, allocations: 8 kB / 335.4 MB, free: 2.059 MB / 282.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 8.582e-05/0.1513, allocations: 31.97 kB / 335.5 MB, free: 2.027 MB / 282.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.000104/0.1514, allocations: 64.88 kB / 335.5 MB, free: 1.961 MB / 282.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.842e-05/0.1515, allocations: 15.92 kB / 335.6 MB, free: 1.945 MB / 282.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0002405/0.1517, allocations: 0.5562 MB / 336.1 MB, free: 1.363 MB / 282.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.41e-07/0.1517, allocations: 4 kB / 336.1 MB, free: 1.359 MB / 282.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002902/0.152, allocations: 379.8 kB / 336.5 MB, free: 0.9609 MB / 282.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001912/0.1522, allocations: 197.3 kB / 336.7 MB, free: 0.7695 MB / 282.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 8.688e-05/0.1523, allocations: 8.031 kB / 336.7 MB, free: 0.7617 MB / 282.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001821/0.1525, allocations: 15.98 kB / 336.7 MB, free: 0.7461 MB / 282.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.398e-05/0.1525, allocations: 35.88 kB / 336.7 MB, free: 0.7109 MB / 282.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.014e-05/0.1525, allocations: 12 kB / 336.7 MB, free: 0.6992 MB / 282.7 MB Notification: Performance of sorting global known variables: time 0.0003923/0.1529, allocations: 0.675 MB / 337.4 MB, free: 0 / 282.7 MB Notification: Performance of sort global known variables: time 8e-08/0.1529, allocations: 0 / 337.4 MB, free: 0 / 282.7 MB Notification: Performance of remove unused functions: time 0.0004354/0.1534, allocations: 339.7 kB / 337.8 MB, free: 15.66 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.0005747/0.1539, allocations: 0.657 MB / 338.4 MB, free: 15 MB / 298.7 MB Notification: Performance of simCode: created initialization part: time 0.0004329/0.1544, allocations: 275 kB / 338.7 MB, free: 14.71 MB / 298.7 MB Notification: Performance of simCode: created event and clocks part: time 2.213e-05/0.1544, allocations: 24 kB / 338.7 MB, free: 14.69 MB / 298.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0002473/0.1546, allocations: 145.2 kB / 338.8 MB, free: 14.54 MB / 298.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0009402/0.1556, allocations: 323 kB / 339.2 MB, free: 14.23 MB / 298.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001751/0.1573, allocations: 2.005 MB / 341.2 MB, free: 12.17 MB / 298.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000119/0.1575, allocations: 211.2 kB / 341.4 MB, free: 11.94 MB / 298.7 MB Notification: Performance of simCode: alias equations: time 0.0002851/0.1577, allocations: 199.9 kB / 341.6 MB, free: 11.74 MB / 298.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.00031/0.158, allocations: 317 kB / 341.9 MB, free: 11.43 MB / 298.7 MB Notification: Performance of SimCode: time 5.1e-07/0.158, allocations: 0 / 341.9 MB, free: 11.43 MB / 298.7 MB Notification: Performance of Templates: time 0.02225/0.1803, allocations: 22.5 MB / 364.4 MB, free: 5.18 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 -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,rangeDelta=0.001) [Timeout 660] "" [Timeout remaining time 660] Reference file matches [Calling sys.exit(0), Time elapsed: 2.8376624300144613]