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.001274/0.001274, allocations: 78.66 kB / 21.42 MB, free: 3.074 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.004592/0.004592, allocations: 168.8 kB / 24.82 MB, free: 9.27 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.995/0.995, allocations: 177.1 MB / 205.3 MB, free: 5.508 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.593e-06/1.593e-06, allocations: 0 / 273.4 MB, free: 1.324 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 1.435e-05/1.594e-05, allocations: 5.266 kB / 273.4 MB, free: 1.32 MB / 250.7 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Spice3.Examples.Inverter): time 0.005924/0.00594, allocations: 7.586 MB / 281 MB, free: 9.699 MB / 266.7 MB Notification: Performance of NFInst.instExpressions: time 0.116/0.1219, allocations: 18.17 MB / 299.1 MB, free: 13.82 MB / 266.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0007173/0.1226, allocations: 96.91 kB / 299.2 MB, free: 13.82 MB / 266.7 MB Notification: Performance of NFTyping.typeComponents: time 0.001483/0.1241, allocations: 0.7763 MB / 300 MB, free: 13.67 MB / 266.7 MB Notification: Performance of NFTyping.typeBindings: time 0.00351/0.1276, allocations: 1.872 MB / 301.9 MB, free: 12.97 MB / 266.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.002633/0.1303, allocations: 1.346 MB / 303.2 MB, free: 12.58 MB / 266.7 MB Notification: Performance of NFFlatten.flatten: time 0.003028/0.1333, allocations: 3.46 MB / 306.7 MB, free: 11.92 MB / 266.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002366/0.1335, allocations: 129.9 kB / 306.8 MB, free: 11.85 MB / 266.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0014/0.1349, allocations: 1.538 MB / 308.3 MB, free: 11.48 MB / 266.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0003511/0.1353, allocations: 427.1 kB / 308.8 MB, free: 11.36 MB / 266.7 MB Notification: Performance of NFPackage.collectConstants: time 6.569e-05/0.1353, allocations: 42.81 kB / 308.8 MB, free: 11.36 MB / 266.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001605/0.1369, allocations: 1.18 MB / 310 MB, free: 11.02 MB / 266.7 MB Notification: Performance of NFScalarize.scalarize: time 7.747e-05/0.137, allocations: 175.5 kB / 310.2 MB, free: 10.89 MB / 266.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0002322/0.1373, allocations: 381.8 kB / 310.5 MB, free: 10.76 MB / 266.7 MB Notification: Performance of NFConvertDAE.convert: time 0.001316/0.1386, allocations: 1.805 MB / 312.3 MB, free: 9.809 MB / 266.7 MB Notification: Performance of FrontEnd - DAE generated: time 3.196e-06/0.1386, allocations: 0 / 312.3 MB, free: 9.809 MB / 266.7 MB Notification: Performance of FrontEnd: time 1.563e-06/0.1386, allocations: 0 / 312.3 MB, free: 9.809 MB / 266.7 MB Notification: Performance of Transformations before backend: time 1.144e-05/0.1386, allocations: 0 / 312.3 MB, free: 9.809 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.00134/0.1399, allocations: 2.156 MB / 314.5 MB, free: 7.891 MB / 266.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.219e-05/0.14, allocations: 16.03 kB / 314.5 MB, free: 7.875 MB / 266.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001365/0.1401, allocations: 214.8 kB / 314.7 MB, free: 7.664 MB / 266.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0008717/0.141, allocations: 1.379 MB / 316.1 MB, free: 6.207 MB / 266.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.38e-05/0.141, allocations: 20.66 kB / 316.1 MB, free: 6.188 MB / 266.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.407e-05/0.141, allocations: 31.94 kB / 316.1 MB, free: 6.156 MB / 266.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003054/0.1413, allocations: 302.5 kB / 316.4 MB, free: 5.852 MB / 266.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.767e-06/0.1413, allocations: 4 kB / 316.4 MB, free: 5.848 MB / 266.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.458e-05/0.1414, allocations: 8 kB / 316.5 MB, free: 5.84 MB / 266.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.065e-06/0.1414, allocations: 11.98 kB / 316.5 MB, free: 5.828 MB / 266.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001968/0.1416, allocations: 220.4 kB / 316.7 MB, free: 5.609 MB / 266.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001142/0.1427, allocations: 1.232 MB / 317.9 MB, free: 4.34 MB / 266.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001824/0.1429, allocations: 160.9 kB / 318.1 MB, free: 4.168 MB / 266.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001753/0.1431, allocations: 224.7 kB / 318.3 MB, free: 3.945 MB / 266.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.007027/0.1501, allocations: 7.799 MB / 326.1 MB, free: 11.96 MB / 282.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001973/0.1503, allocations: 172.8 kB / 326.3 MB, free: 11.78 MB / 282.7 MB Notification: Performance of pre-optimization done (n=29): time 1.764e-06/0.1503, allocations: 8 kB / 326.3 MB, free: 11.77 MB / 282.7 MB Notification: Performance of matching and sorting (n=29): time 0.0006725/0.151, allocations: 0.5234 MB / 326.8 MB, free: 11.24 MB / 282.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.705e-05/0.151, allocations: 59.34 kB / 326.8 MB, free: 11.17 MB / 282.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0009615/0.152, allocations: 1.573 MB / 328.4 MB, free: 9.551 MB / 282.7 MB Notification: Performance of collectPreVariables (initialization): time 2.382e-05/0.152, allocations: 29.7 kB / 328.4 MB, free: 9.516 MB / 282.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0004601/0.1524, allocations: 0.8453 MB / 329.3 MB, free: 8.664 MB / 282.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0003136/0.1528, allocations: 95.19 kB / 329.4 MB, free: 8.57 MB / 282.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001159/0.1529, allocations: 135.7 kB / 329.5 MB, free: 8.43 MB / 282.7 MB Notification: Performance of setup shared object (initialization): time 0.0001073/0.153, allocations: 0.4965 MB / 330 MB, free: 7.926 MB / 282.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 8.074e-05/0.1531, allocations: 60.97 kB / 330.1 MB, free: 7.867 MB / 282.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001942/0.1533, allocations: 351.7 kB / 330.4 MB, free: 7.395 MB / 282.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003079/0.1536, allocations: 443.1 kB / 330.8 MB, free: 6.836 MB / 282.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.106e-06/0.1536, allocations: 4 kB / 330.9 MB, free: 6.832 MB / 282.7 MB Notification: Performance of matching and sorting (n=62) (initialization): time 0.0005357/0.1541, allocations: 0.5872 MB / 331.4 MB, free: 6.234 MB / 282.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.497e-05/0.1541, allocations: 11.94 kB / 331.5 MB, free: 6.223 MB / 282.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.631e-05/0.1542, allocations: 48.09 kB / 331.5 MB, free: 6.176 MB / 282.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001654/0.1543, allocations: 123.6 kB / 331.6 MB, free: 6.051 MB / 282.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001995/0.1545, allocations: 103.8 kB / 331.7 MB, free: 5.949 MB / 282.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0004007/0.1549, allocations: 0.9118 MB / 332.6 MB, free: 5.008 MB / 282.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002458/0.1552, allocations: 64.23 kB / 332.7 MB, free: 4.945 MB / 282.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.034e-05/0.1552, allocations: 36.03 kB / 332.7 MB, free: 4.91 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.0001803/0.1554, allocations: 201.1 kB / 332.9 MB, free: 4.703 MB / 282.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001239/0.1555, allocations: 198.8 kB / 333.1 MB, free: 4.508 MB / 282.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0006995/0.1562, allocations: 0.5724 MB / 333.7 MB, free: 3.926 MB / 282.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.527e-06/0.1562, allocations: 0 / 333.7 MB, free: 3.926 MB / 282.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.363e-06/0.1562, allocations: 0 / 333.7 MB, free: 3.926 MB / 282.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.99e-06/0.1562, allocations: 13.31 kB / 333.7 MB, free: 3.914 MB / 282.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001027/0.1572, allocations: 1.237 MB / 334.9 MB, free: 2.617 MB / 282.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.651e-05/0.1573, allocations: 32 kB / 335 MB, free: 2.586 MB / 282.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 9.501e-05/0.1574, allocations: 39.91 kB / 335 MB, free: 2.547 MB / 282.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001301/0.1575, allocations: 123.6 kB / 335.1 MB, free: 2.422 MB / 282.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.074e-05/0.1575, allocations: 20 kB / 335.2 MB, free: 2.402 MB / 282.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0003591/0.1579, allocations: 0.9014 MB / 336.1 MB, free: 1.469 MB / 282.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.92e-07/0.1579, allocations: 0 / 336.1 MB, free: 1.469 MB / 282.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0006765/0.1586, allocations: 0.6236 MB / 336.7 MB, free: 0.8086 MB / 282.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.00021/0.1588, allocations: 224.6 kB / 336.9 MB, free: 0.5898 MB / 282.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 7.999e-05/0.1588, allocations: 8.5 kB / 336.9 MB, free: 0.582 MB / 282.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001898/0.159, allocations: 15.98 kB / 336.9 MB, free: 0.5664 MB / 282.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.975e-05/0.1591, allocations: 51.91 kB / 337 MB, free: 0.5156 MB / 282.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.429e-05/0.1591, allocations: 23.62 kB / 337 MB, free: 0.4961 MB / 282.7 MB Notification: Performance of sorting global known variables: time 0.0005155/0.1596, allocations: 0.8356 MB / 337.8 MB, free: 15.64 MB / 298.7 MB Notification: Performance of sort global known variables: time 7e-08/0.1596, allocations: 0 / 337.8 MB, free: 15.64 MB / 298.7 MB Notification: Performance of remove unused functions: time 0.000521/0.1602, allocations: 331.6 kB / 338.2 MB, free: 15.32 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.0006202/0.1608, allocations: 0.673 MB / 338.8 MB, free: 14.63 MB / 298.7 MB Notification: Performance of simCode: created initialization part: time 0.0003814/0.1612, allocations: 348.4 kB / 339.2 MB, free: 14.28 MB / 298.7 MB Notification: Performance of simCode: created event and clocks part: time 2.325e-06/0.1612, allocations: 4 kB / 339.2 MB, free: 14.28 MB / 298.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0001839/0.1613, allocations: 211.3 kB / 339.4 MB, free: 14.06 MB / 298.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0007311/0.1621, allocations: 320.5 kB / 339.7 MB, free: 13.75 MB / 298.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001836/0.1639, allocations: 2.105 MB / 341.8 MB, free: 11.59 MB / 298.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001187/0.164, allocations: 219 kB / 342 MB, free: 11.35 MB / 298.7 MB Notification: Performance of simCode: alias equations: time 0.0003089/0.1643, allocations: 199.9 kB / 342.2 MB, free: 11.15 MB / 298.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003425/0.1647, allocations: 358 kB / 342.6 MB, free: 10.8 MB / 298.7 MB Notification: Performance of SimCode: time 8.42e-07/0.1647, allocations: 0 / 342.6 MB, free: 10.8 MB / 298.7 MB Notification: Performance of Templates: time 0.02575/0.1904, allocations: 22.74 MB / 365.3 MB, free: 4.312 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.0674176230095327]