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.0008628/0.0008628, allocations: 80.8 kB / 21.5 MB, free: 2.996 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.0008586/0.0008586, allocations: 169.2 kB / 24.92 MB, free: 8.773 MB / 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.8525/0.8525, allocations: 177.1 MB / 205.3 MB, free: 5.117 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.092e-06/1.092e-06, allocations: 0 / 273.4 MB, free: 1.191 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 9.889e-06/1.098e-05, allocations: 2.312 kB / 273.4 MB, free: 1.188 MB / 250.7 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Spice3.Examples.Inverter): time 0.005057/0.005068, allocations: 7.583 MB / 281 MB, free: 9.566 MB / 266.7 MB Notification: Performance of NFInst.instExpressions: time 0.09687/0.1019, allocations: 18.48 MB / 299.5 MB, free: 14.41 MB / 266.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0005791/0.1025, allocations: 98.62 kB / 299.6 MB, free: 14.41 MB / 266.7 MB Notification: Performance of NFTyping.typeComponents: time 0.001317/0.1038, allocations: 0.7934 MB / 300.4 MB, free: 14.18 MB / 266.7 MB Notification: Performance of NFTyping.typeBindings: time 0.003004/0.1068, allocations: 1.904 MB / 302.3 MB, free: 13.46 MB / 266.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.001812/0.1087, allocations: 1.36 MB / 303.7 MB, free: 13.06 MB / 266.7 MB Notification: Performance of NFFlatten.flatten: time 0.002504/0.1112, allocations: 3.431 MB / 307.1 MB, free: 12.06 MB / 266.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.000201/0.1114, allocations: 144.7 kB / 307.2 MB, free: 11.95 MB / 266.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001134/0.1125, allocations: 1.535 MB / 308.8 MB, free: 11.5 MB / 266.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.000343/0.1128, allocations: 436.5 kB / 309.2 MB, free: 11.33 MB / 266.7 MB Notification: Performance of NFPackage.collectConstants: time 5.312e-05/0.1129, allocations: 40.03 kB / 309.2 MB, free: 11.33 MB / 266.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001325/0.1142, allocations: 1.174 MB / 310.4 MB, free: 10.96 MB / 266.7 MB Notification: Performance of NFScalarize.scalarize: time 8.558e-05/0.1143, allocations: 175.3 kB / 310.6 MB, free: 10.82 MB / 266.7 MB Notification: Performance of NFVerifyModel.verify: time 0.000238/0.1145, allocations: 384.5 kB / 311 MB, free: 10.68 MB / 266.7 MB Notification: Performance of NFConvertDAE.convert: time 0.001186/0.1157, allocations: 1.797 MB / 312.7 MB, free: 9.66 MB / 266.7 MB Notification: Performance of FrontEnd - DAE generated: time 2.284e-06/0.1157, allocations: 0 / 312.7 MB, free: 9.66 MB / 266.7 MB Notification: Performance of FrontEnd: time 7.42e-07/0.1157, allocations: 4 kB / 312.8 MB, free: 9.656 MB / 266.7 MB Notification: Performance of Transformations before backend: time 1.072e-05/0.1157, allocations: 0 / 312.8 MB, free: 9.656 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.001198/0.1169, allocations: 1.947 MB / 314.7 MB, free: 7.895 MB / 266.7 MB Notification: Performance of prepare preOptimizeDAE: time 2.499e-05/0.117, allocations: 8.031 kB / 314.7 MB, free: 7.887 MB / 266.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001073/0.1171, allocations: 139.8 kB / 314.8 MB, free: 7.75 MB / 266.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0008269/0.1179, allocations: 1.117 MB / 316 MB, free: 6.543 MB / 266.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.292e-05/0.1179, allocations: 24.66 kB / 316 MB, free: 6.52 MB / 266.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.363e-05/0.118, allocations: 27.95 kB / 316 MB, free: 6.492 MB / 266.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002725/0.1182, allocations: 281.4 kB / 316.3 MB, free: 6.203 MB / 266.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.407e-06/0.1182, allocations: 4 kB / 316.3 MB, free: 6.199 MB / 266.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.33e-05/0.1183, allocations: 8 kB / 316.3 MB, free: 6.191 MB / 266.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.446e-06/0.1183, allocations: 12 kB / 316.3 MB, free: 6.18 MB / 266.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001659/0.1184, allocations: 112.5 kB / 316.4 MB, free: 6.074 MB / 266.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.00092/0.1194, allocations: 0.8099 MB / 317.2 MB, free: 5.238 MB / 266.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001568/0.1195, allocations: 188.3 kB / 317.4 MB, free: 5.047 MB / 266.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001534/0.1197, allocations: 190.1 kB / 317.6 MB, free: 4.859 MB / 266.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.01078/0.1304, allocations: 11.58 MB / 329.2 MB, free: 8.84 MB / 282.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001672/0.1306, allocations: 151.2 kB / 329.3 MB, free: 8.68 MB / 282.7 MB Notification: Performance of pre-optimization done (n=29): time 1.593e-06/0.1306, allocations: 0 / 329.3 MB, free: 8.68 MB / 282.7 MB Notification: Performance of matching and sorting (n=29): time 0.0005148/0.1311, allocations: 350.1 kB / 329.7 MB, free: 8.328 MB / 282.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.548e-05/0.1311, allocations: 59.34 kB / 329.7 MB, free: 8.258 MB / 282.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0007044/0.1318, allocations: 1.322 MB / 331 MB, free: 6.898 MB / 282.7 MB Notification: Performance of collectPreVariables (initialization): time 2.482e-05/0.1319, allocations: 33.7 kB / 331.1 MB, free: 6.859 MB / 282.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001867/0.1321, allocations: 416.2 kB / 331.5 MB, free: 6.449 MB / 282.7 MB Notification: Performance of collectInitialBindings (initialization): time 5.384e-05/0.1321, allocations: 91.25 kB / 331.6 MB, free: 6.359 MB / 282.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 9.397e-05/0.1322, allocations: 110 kB / 331.7 MB, free: 6.246 MB / 282.7 MB Notification: Performance of setup shared object (initialization): time 6.749e-05/0.1323, allocations: 325.9 kB / 332 MB, free: 5.922 MB / 282.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 6.022e-05/0.1323, allocations: 40.97 kB / 332 MB, free: 5.883 MB / 282.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001398/0.1325, allocations: 246.9 kB / 332.3 MB, free: 5.547 MB / 282.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002397/0.1327, allocations: 350.2 kB / 332.6 MB, free: 5.113 MB / 282.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.188e-06/0.1327, allocations: 7.938 kB / 332.6 MB, free: 5.105 MB / 282.7 MB Notification: Performance of matching and sorting (n=62) (initialization): time 0.0003781/0.1331, allocations: 406.3 kB / 333 MB, free: 4.699 MB / 282.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.3e-05/0.1331, allocations: 11.98 kB / 333 MB, free: 4.688 MB / 282.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.707e-05/0.1331, allocations: 15.94 kB / 333.1 MB, free: 4.672 MB / 282.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001461/0.1333, allocations: 73.62 kB / 333.1 MB, free: 4.598 MB / 282.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001903/0.1335, allocations: 107.8 kB / 333.2 MB, free: 4.492 MB / 282.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.000273/0.1337, allocations: 0.5695 MB / 333.8 MB, free: 3.898 MB / 282.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002304/0.134, allocations: 59.61 kB / 333.9 MB, free: 3.84 MB / 282.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.222e-05/0.134, allocations: 24 kB / 333.9 MB, free: 3.816 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.000157/0.1342, allocations: 153.6 kB / 334 MB, free: 3.656 MB / 282.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 9.399e-05/0.1343, allocations: 119.8 kB / 334.2 MB, free: 3.539 MB / 282.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0005649/0.1348, allocations: 458.6 kB / 334.6 MB, free: 3.086 MB / 282.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.647e-06/0.1348, allocations: 4 kB / 334.6 MB, free: 3.082 MB / 282.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.473e-06/0.1348, allocations: 1.312 kB / 334.6 MB, free: 3.082 MB / 282.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.799e-06/0.1348, allocations: 3.984 kB / 334.6 MB, free: 3.078 MB / 282.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0007193/0.1356, allocations: 0.8854 MB / 335.5 MB, free: 2.148 MB / 282.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.002e-05/0.1356, allocations: 8 kB / 335.5 MB, free: 2.141 MB / 282.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 8.714e-05/0.1357, allocations: 31.97 kB / 335.5 MB, free: 2.109 MB / 282.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001057/0.1358, allocations: 68.73 kB / 335.6 MB, free: 2.039 MB / 282.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.784e-05/0.1358, allocations: 11.94 kB / 335.6 MB, free: 2.027 MB / 282.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0003566/0.1361, allocations: 0.5656 MB / 336.2 MB, free: 1.438 MB / 282.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.22e-07/0.1361, allocations: 0 / 336.2 MB, free: 1.438 MB / 282.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002936/0.1364, allocations: 380.5 kB / 336.5 MB, free: 1.039 MB / 282.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.000187/0.1366, allocations: 197.3 kB / 336.7 MB, free: 0.8477 MB / 282.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 8.705e-05/0.1367, allocations: 8 kB / 336.7 MB, free: 0.8398 MB / 282.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001867/0.1369, allocations: 15.97 kB / 336.8 MB, free: 0.8242 MB / 282.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.396e-05/0.137, allocations: 35.89 kB / 336.8 MB, free: 0.7891 MB / 282.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.08e-05/0.137, allocations: 11.98 kB / 336.8 MB, free: 0.7773 MB / 282.7 MB Notification: Performance of sorting global known variables: time 0.0004066/0.1374, allocations: 0.679 MB / 337.5 MB, free: 76 kB / 282.7 MB Notification: Performance of sort global known variables: time 9e-08/0.1374, allocations: 4 kB / 337.5 MB, free: 72 kB / 282.7 MB Notification: Performance of remove unused functions: time 0.0004423/0.1378, allocations: 331.6 kB / 337.8 MB, free: 15.74 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.0005735/0.1384, allocations: 0.6527 MB / 338.5 MB, free: 15.09 MB / 298.7 MB Notification: Performance of simCode: created initialization part: time 0.0003236/0.1387, allocations: 277.2 kB / 338.7 MB, free: 14.8 MB / 298.7 MB Notification: Performance of simCode: created event and clocks part: time 1.349e-05/0.1387, allocations: 20.44 kB / 338.8 MB, free: 14.79 MB / 298.7 MB Notification: Performance of simCode: created simulation system equations: time 0.000153/0.1389, allocations: 155.9 kB / 338.9 MB, free: 14.62 MB / 298.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006453/0.1395, allocations: 322.4 kB / 339.2 MB, free: 14.31 MB / 298.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001723/0.1413, allocations: 2.007 MB / 341.2 MB, free: 12.25 MB / 298.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001139/0.1414, allocations: 211.2 kB / 341.4 MB, free: 12.02 MB / 298.7 MB Notification: Performance of simCode: alias equations: time 0.0002987/0.1417, allocations: 195.9 kB / 341.6 MB, free: 11.83 MB / 298.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003135/0.142, allocations: 321.1 kB / 341.9 MB, free: 11.51 MB / 298.7 MB Notification: Performance of SimCode: time 6.41e-07/0.142, allocations: 3.938 kB / 342 MB, free: 11.51 MB / 298.7 MB Notification: Performance of Templates: time 0.02313/0.1651, allocations: 22.5 MB / 364.4 MB, free: 5.25 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: 2.7045156839303672]