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.0009719/0.0009719, allocations: 95.5 kB / 21.2 MB, free: 3.363 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.001371/0.001371, allocations: 156.5 kB / 24.56 MB, free: 8 kB / 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.9571/0.9571, allocations: 177 MB / 204.8 MB, free: 5.562 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.142e-06/1.142e-06, allocations: 0 / 272.9 MB, free: 1.449 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 1.155e-05/1.269e-05, allocations: 2.312 kB / 272.9 MB, free: 1.445 MB / 250.7 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Spice3.Examples.Inverter): time 0.005271/0.005284, allocations: 7.754 MB / 280.7 MB, free: 9.648 MB / 266.7 MB Notification: Performance of NFInst.instExpressions: time 0.1123/0.1176, allocations: 18.54 MB / 299.2 MB, free: 13.18 MB / 266.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0007743/0.1184, allocations: 94.03 kB / 299.3 MB, free: 13.18 MB / 266.7 MB Notification: Performance of NFTyping.typeComponents: time 0.001515/0.1199, allocations: 0.7762 MB / 300.1 MB, free: 13 MB / 266.7 MB Notification: Performance of NFTyping.typeBindings: time 0.003646/0.1235, allocations: 1.876 MB / 301.9 MB, free: 12.29 MB / 266.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.002519/0.1261, allocations: 1.35 MB / 303.3 MB, free: 11.9 MB / 266.7 MB Notification: Performance of NFFlatten.flatten: time 0.002917/0.129, allocations: 3.462 MB / 306.7 MB, free: 11.23 MB / 266.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002213/0.1292, allocations: 124.7 kB / 306.9 MB, free: 11.17 MB / 266.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001231/0.1304, allocations: 1.537 MB / 308.4 MB, free: 11.02 MB / 266.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0003645/0.1308, allocations: 428.9 kB / 308.8 MB, free: 10.9 MB / 266.7 MB Notification: Performance of NFPackage.collectConstants: time 6.679e-05/0.1309, allocations: 41.28 kB / 308.9 MB, free: 10.9 MB / 266.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001562/0.1324, allocations: 1.18 MB / 310 MB, free: 10.52 MB / 266.7 MB Notification: Performance of NFScalarize.scalarize: time 8.449e-05/0.1325, allocations: 169.9 kB / 310.2 MB, free: 10.39 MB / 266.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0002509/0.1328, allocations: 384.6 kB / 310.6 MB, free: 10.25 MB / 266.7 MB Notification: Performance of NFConvertDAE.convert: time 0.001319/0.1341, allocations: 1.801 MB / 312.4 MB, free: 9.227 MB / 266.7 MB Notification: Performance of FrontEnd - DAE generated: time 3.487e-06/0.1341, allocations: 0 / 312.4 MB, free: 9.227 MB / 266.7 MB Notification: Performance of FrontEnd: time 1.613e-06/0.1341, allocations: 4 kB / 312.4 MB, free: 9.223 MB / 266.7 MB Notification: Performance of Transformations before backend: time 1.201e-05/0.1341, allocations: 0 / 312.4 MB, free: 9.223 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.001367/0.1355, allocations: 2.133 MB / 314.5 MB, free: 7.496 MB / 266.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.068e-05/0.1355, allocations: 15.98 kB / 314.5 MB, free: 7.48 MB / 266.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.000151/0.1356, allocations: 214.8 kB / 314.7 MB, free: 7.27 MB / 266.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0008672/0.1365, allocations: 1.387 MB / 316.1 MB, free: 5.805 MB / 266.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.524e-05/0.1365, allocations: 28.64 kB / 316.2 MB, free: 5.777 MB / 266.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.846e-05/0.1366, allocations: 27.95 kB / 316.2 MB, free: 5.75 MB / 266.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003684/0.1369, allocations: 326.6 kB / 316.5 MB, free: 5.422 MB / 266.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.626e-06/0.1369, allocations: 0 / 316.5 MB, free: 5.422 MB / 266.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.807e-05/0.137, allocations: 8 kB / 316.5 MB, free: 5.414 MB / 266.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.115e-05/0.137, allocations: 12 kB / 316.5 MB, free: 5.402 MB / 266.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002621/0.1372, allocations: 251.8 kB / 316.8 MB, free: 5.152 MB / 266.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.00128/0.1385, allocations: 1.482 MB / 318.3 MB, free: 3.621 MB / 266.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002317/0.1388, allocations: 196.5 kB / 318.4 MB, free: 3.414 MB / 266.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002201/0.139, allocations: 245.2 kB / 318.7 MB, free: 3.172 MB / 266.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.006596/0.1456, allocations: 7.774 MB / 326.5 MB, free: 11.2 MB / 282.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002236/0.1458, allocations: 189.5 kB / 326.6 MB, free: 11 MB / 282.7 MB Notification: Performance of pre-optimization done (n=29): time 1.753e-06/0.1458, allocations: 0 / 326.6 MB, free: 11 MB / 282.7 MB Notification: Performance of matching and sorting (n=29): time 0.0007842/0.1466, allocations: 0.5592 MB / 327.2 MB, free: 10.43 MB / 282.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.815e-05/0.1466, allocations: 59.34 kB / 327.3 MB, free: 10.36 MB / 282.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001188/0.1478, allocations: 1.585 MB / 328.9 MB, free: 8.73 MB / 282.7 MB Notification: Performance of collectPreVariables (initialization): time 2.658e-05/0.1478, allocations: 33.7 kB / 328.9 MB, free: 8.691 MB / 282.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0004569/0.1483, allocations: 0.8299 MB / 329.7 MB, free: 7.855 MB / 282.7 MB Notification: Performance of collectInitialBindings (initialization): time 6.066e-05/0.1484, allocations: 91.28 kB / 329.8 MB, free: 7.766 MB / 282.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001112/0.1485, allocations: 131.7 kB / 329.9 MB, free: 7.629 MB / 282.7 MB Notification: Performance of setup shared object (initialization): time 0.0001148/0.1486, allocations: 0.5043 MB / 330.4 MB, free: 7.117 MB / 282.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001111/0.1487, allocations: 72.95 kB / 330.5 MB, free: 7.047 MB / 282.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002214/0.1489, allocations: 363.7 kB / 330.9 MB, free: 6.566 MB / 282.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003497/0.1493, allocations: 467.1 kB / 331.3 MB, free: 5.984 MB / 282.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.06e-06/0.1493, allocations: 4 kB / 331.3 MB, free: 5.98 MB / 282.7 MB Notification: Performance of matching and sorting (n=62) (initialization): time 0.0005893/0.1499, allocations: 0.6184 MB / 331.9 MB, free: 5.352 MB / 282.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.555e-05/0.1499, allocations: 8.75 kB / 331.9 MB, free: 5.344 MB / 282.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.709e-05/0.1499, allocations: 48 kB / 332 MB, free: 5.297 MB / 282.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002094/0.1501, allocations: 127.6 kB / 332.1 MB, free: 5.168 MB / 282.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002116/0.1503, allocations: 99.81 kB / 332.2 MB, free: 5.07 MB / 282.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0004443/0.1508, allocations: 0.9171 MB / 333.1 MB, free: 4.121 MB / 282.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002406/0.151, allocations: 67.58 kB / 333.2 MB, free: 4.055 MB / 282.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.878e-05/0.1511, allocations: 36 kB / 333.2 MB, free: 4.02 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.0001774/0.1512, allocations: 196.3 kB / 333.4 MB, free: 3.816 MB / 282.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001291/0.1514, allocations: 206.8 kB / 333.6 MB, free: 3.613 MB / 282.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0007339/0.1521, allocations: 0.5995 MB / 334.2 MB, free: 3.008 MB / 282.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.486e-06/0.1521, allocations: 1.062 kB / 334.2 MB, free: 3.008 MB / 282.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.858e-06/0.1521, allocations: 3.938 kB / 334.2 MB, free: 3.004 MB / 282.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.236e-06/0.1521, allocations: 4 kB / 334.2 MB, free: 3 MB / 282.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001051/0.1532, allocations: 1.223 MB / 335.5 MB, free: 1.719 MB / 282.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.611e-05/0.1532, allocations: 36 kB / 335.5 MB, free: 1.684 MB / 282.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001/0.1533, allocations: 43.84 kB / 335.5 MB, free: 1.641 MB / 282.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001423/0.1534, allocations: 115.7 kB / 335.7 MB, free: 1.523 MB / 282.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.612e-05/0.1535, allocations: 24.73 kB / 335.7 MB, free: 1.5 MB / 282.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0003755/0.1538, allocations: 0.9023 MB / 336.6 MB, free: 0.5664 MB / 282.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.222e-06/0.1538, allocations: 0 / 336.6 MB, free: 0.5664 MB / 282.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004969/0.1543, allocations: 0.6434 MB / 337.2 MB, free: 15.89 MB / 298.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001986/0.1545, allocations: 220.6 kB / 337.4 MB, free: 15.67 MB / 298.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 9.158e-05/0.1546, allocations: 15.92 kB / 337.5 MB, free: 15.66 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001869/0.1548, allocations: 20.77 kB / 337.5 MB, free: 15.64 MB / 298.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.451e-05/0.1549, allocations: 43.89 kB / 337.5 MB, free: 15.59 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.751e-05/0.1549, allocations: 23.98 kB / 337.5 MB, free: 15.57 MB / 298.7 MB Notification: Performance of sorting global known variables: time 0.0006729/0.1556, allocations: 0.8906 MB / 338.4 MB, free: 14.66 MB / 298.7 MB Notification: Performance of sort global known variables: time 7e-08/0.1556, allocations: 0 / 338.4 MB, free: 14.66 MB / 298.7 MB Notification: Performance of remove unused functions: time 0.0004706/0.1561, allocations: 331.6 kB / 338.8 MB, free: 14.34 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.0005758/0.1566, allocations: 0.6115 MB / 339.4 MB, free: 13.71 MB / 298.7 MB Notification: Performance of simCode: created initialization part: time 0.0004702/0.1571, allocations: 366.4 kB / 339.7 MB, free: 13.34 MB / 298.7 MB Notification: Performance of simCode: created event and clocks part: time 1.783e-06/0.1571, allocations: 0 / 339.7 MB, free: 13.34 MB / 298.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0002082/0.1573, allocations: 216.1 kB / 339.9 MB, free: 13.11 MB / 298.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0007312/0.158, allocations: 324.2 kB / 340.3 MB, free: 12.81 MB / 298.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001899/0.1599, allocations: 2.115 MB / 342.4 MB, free: 10.64 MB / 298.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001145/0.1601, allocations: 215 kB / 342.6 MB, free: 10.4 MB / 298.7 MB Notification: Performance of simCode: alias equations: time 0.0003018/0.1604, allocations: 199.9 kB / 342.8 MB, free: 10.2 MB / 298.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 9.438e-05/0.1605, allocations: 92.48 kB / 342.9 MB, free: 10.11 MB / 298.7 MB Notification: Performance of SimCode: time 5.71e-07/0.1605, allocations: 0 / 342.9 MB, free: 10.11 MB / 298.7 MB Notification: Performance of Templates: time 0.02497/0.1854, allocations: 24.16 MB / 367 MB, free: 2.184 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: 3.1241606981493533]