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.0009786/0.0009786, allocations: 95.5 kB / 21.2 MB, free: 3.371 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.0009157/0.0009157, allocations: 160.5 kB / 24.55 MB, free: 16 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.966/0.966, 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 3.797e-06/3.797e-06, allocations: 7.922 kB / 272.9 MB, free: 1.445 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 3.666e-05/4.046e-05, allocations: 5.125 kB / 272.9 MB, free: 1.441 MB / 250.7 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Spice3.Examples.Inverter): time 0.006616/0.006656, allocations: 7.742 MB / 280.6 MB, free: 9.656 MB / 266.7 MB Notification: Performance of NFInst.instExpressions: time 0.1202/0.1268, allocations: 18.54 MB / 299.2 MB, free: 13.2 MB / 266.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0006749/0.1275, allocations: 94.56 kB / 299.3 MB, free: 13.2 MB / 266.7 MB Notification: Performance of NFTyping.typeComponents: time 0.001539/0.1291, allocations: 0.7735 MB / 300.1 MB, free: 13.02 MB / 266.7 MB Notification: Performance of NFTyping.typeBindings: time 0.003638/0.1327, allocations: 1.874 MB / 301.9 MB, free: 12.32 MB / 266.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.002534/0.1352, allocations: 1.35 MB / 303.3 MB, free: 11.93 MB / 266.7 MB Notification: Performance of NFFlatten.flatten: time 0.003178/0.1384, allocations: 3.46 MB / 306.7 MB, free: 11.27 MB / 266.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002504/0.1387, allocations: 127.9 kB / 306.9 MB, free: 11.2 MB / 266.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0007791/0.1394, allocations: 0.795 MB / 307.7 MB, free: 11.11 MB / 266.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0004203/0.1399, allocations: 424 kB / 308.1 MB, free: 11.01 MB / 266.7 MB Notification: Performance of NFPackage.collectConstants: time 7.135e-05/0.1399, allocations: 41.69 kB / 308.1 MB, free: 11.01 MB / 266.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001708/0.1416, allocations: 1.175 MB / 309.3 MB, free: 10.84 MB / 266.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0001081/0.1417, allocations: 172.9 kB / 309.5 MB, free: 10.7 MB / 266.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0003027/0.142, allocations: 384 kB / 309.8 MB, free: 10.56 MB / 266.7 MB Notification: Performance of NFConvertDAE.convert: time 0.001566/0.1436, allocations: 1.781 MB / 311.6 MB, free: 9.531 MB / 266.7 MB Notification: Performance of FrontEnd - DAE generated: time 5.4e-06/0.1436, allocations: 0 / 311.6 MB, free: 9.531 MB / 266.7 MB Notification: Performance of FrontEnd: time 1.553e-06/0.1436, allocations: 4 kB / 311.6 MB, free: 9.527 MB / 266.7 MB Notification: Performance of Transformations before backend: time 1.613e-05/0.1436, allocations: 0 / 311.6 MB, free: 9.527 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.001548/0.1452, allocations: 2.127 MB / 313.7 MB, free: 7.891 MB / 266.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.875e-05/0.1452, allocations: 12.3 kB / 313.8 MB, free: 7.887 MB / 266.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001824/0.1454, allocations: 218.7 kB / 314 MB, free: 7.777 MB / 266.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001052/0.1465, allocations: 1.424 MB / 315.4 MB, free: 6.555 MB / 266.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.608e-05/0.1465, allocations: 32.53 kB / 315.4 MB, free: 6.523 MB / 266.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.226e-05/0.1465, allocations: 27.95 kB / 315.5 MB, free: 6.496 MB / 266.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004002/0.1469, allocations: 326.6 kB / 315.8 MB, free: 6.168 MB / 266.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.408e-06/0.1469, allocations: 0 / 315.8 MB, free: 6.168 MB / 266.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.821e-05/0.147, allocations: 12 kB / 315.8 MB, free: 6.156 MB / 266.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.202e-05/0.147, allocations: 8 kB / 315.8 MB, free: 6.148 MB / 266.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002721/0.1472, allocations: 247.8 kB / 316 MB, free: 5.902 MB / 266.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.00135/0.1486, allocations: 1.486 MB / 317.5 MB, free: 4.367 MB / 266.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002411/0.1488, allocations: 184.6 kB / 317.7 MB, free: 4.176 MB / 266.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002286/0.1491, allocations: 248.7 kB / 317.9 MB, free: 3.93 MB / 266.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.006735/0.1558, allocations: 7.771 MB / 325.7 MB, free: 11.96 MB / 282.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002301/0.156, allocations: 193.5 kB / 325.9 MB, free: 11.75 MB / 282.7 MB Notification: Performance of pre-optimization done (n=29): time 1.333e-06/0.156, allocations: 0 / 325.9 MB, free: 11.75 MB / 282.7 MB Notification: Performance of matching and sorting (n=29): time 0.000778/0.1568, allocations: 0.5553 MB / 326.5 MB, free: 11.19 MB / 282.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.174e-05/0.1568, allocations: 59.39 kB / 326.5 MB, free: 11.12 MB / 282.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001117/0.158, allocations: 1.585 MB / 328.1 MB, free: 9.488 MB / 282.7 MB Notification: Performance of collectPreVariables (initialization): time 2.595e-05/0.158, allocations: 33.69 kB / 328.1 MB, free: 9.449 MB / 282.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0004549/0.1584, allocations: 0.8222 MB / 329 MB, free: 8.621 MB / 282.7 MB Notification: Performance of collectInitialBindings (initialization): time 6.171e-05/0.1585, allocations: 103.2 kB / 329.1 MB, free: 8.52 MB / 282.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001189/0.1586, allocations: 135.7 kB / 329.2 MB, free: 8.379 MB / 282.7 MB Notification: Performance of setup shared object (initialization): time 0.0001034/0.1587, allocations: 0.4926 MB / 329.7 MB, free: 7.879 MB / 282.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001114/0.1588, allocations: 72.95 kB / 329.8 MB, free: 7.809 MB / 282.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002231/0.1591, allocations: 371.7 kB / 330.1 MB, free: 7.32 MB / 282.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003493/0.1594, allocations: 471 kB / 330.6 MB, free: 6.734 MB / 282.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.296e-06/0.1594, allocations: 0 / 330.6 MB, free: 6.734 MB / 282.7 MB Notification: Performance of matching and sorting (n=62) (initialization): time 0.0005915/0.16, allocations: 0.6263 MB / 331.2 MB, free: 6.098 MB / 282.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.591e-05/0.16, allocations: 16.72 kB / 331.2 MB, free: 6.082 MB / 282.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.727e-05/0.1601, allocations: 39.98 kB / 331.3 MB, free: 6.043 MB / 282.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001999/0.1603, allocations: 124.2 kB / 331.4 MB, free: 5.918 MB / 282.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002078/0.1605, allocations: 107.8 kB / 331.5 MB, free: 5.812 MB / 282.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0004137/0.1609, allocations: 0.9093 MB / 332.4 MB, free: 4.871 MB / 282.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000236/0.1611, allocations: 63.7 kB / 332.5 MB, free: 4.809 MB / 282.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.039e-05/0.1611, allocations: 32 kB / 332.5 MB, free: 4.777 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.0001793/0.1613, allocations: 204.2 kB / 332.7 MB, free: 4.566 MB / 282.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001288/0.1615, allocations: 202.8 kB / 332.9 MB, free: 4.367 MB / 282.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0007413/0.1622, allocations: 0.5919 MB / 333.5 MB, free: 3.77 MB / 282.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.617e-06/0.1622, allocations: 4 kB / 333.5 MB, free: 3.766 MB / 282.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.789e-06/0.1622, allocations: 5 kB / 333.5 MB, free: 3.762 MB / 282.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.536e-06/0.1622, allocations: 4 kB / 333.5 MB, free: 3.758 MB / 282.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001059/0.1633, allocations: 1.223 MB / 334.7 MB, free: 2.477 MB / 282.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.808e-05/0.1633, allocations: 32 kB / 334.7 MB, free: 2.445 MB / 282.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 9.757e-05/0.1634, allocations: 43.91 kB / 334.8 MB, free: 2.402 MB / 282.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001396/0.1635, allocations: 124.3 kB / 334.9 MB, free: 2.277 MB / 282.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.356e-05/0.1636, allocations: 19.94 kB / 334.9 MB, free: 2.258 MB / 282.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0003707/0.1639, allocations: 0.9031 MB / 335.8 MB, free: 1.324 MB / 282.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.635e-06/0.1639, allocations: 4 kB / 335.8 MB, free: 1.32 MB / 282.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004875/0.1644, allocations: 0.6434 MB / 336.5 MB, free: 0.6406 MB / 282.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002085/0.1646, allocations: 220.6 kB / 336.7 MB, free: 436 kB / 282.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 8.062e-05/0.1647, allocations: 9.688 kB / 336.7 MB, free: 428 kB / 282.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001853/0.1649, allocations: 20.02 kB / 336.7 MB, free: 408 kB / 282.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.12e-05/0.165, allocations: 47.88 kB / 336.8 MB, free: 360 kB / 282.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.555e-05/0.165, allocations: 20.69 kB / 336.8 MB, free: 340 kB / 282.7 MB Notification: Performance of sorting global known variables: time 0.001006/0.166, allocations: 0.8945 MB / 337.7 MB, free: 15.41 MB / 298.7 MB Notification: Performance of sort global known variables: time 3.7e-07/0.166, allocations: 4 kB / 337.7 MB, free: 15.41 MB / 298.7 MB Notification: Performance of remove unused functions: time 0.0009129/0.1669, allocations: 327.6 kB / 338 MB, free: 15.09 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.0006769/0.1676, allocations: 0.5977 MB / 338.6 MB, free: 14.48 MB / 298.7 MB Notification: Performance of simCode: created initialization part: time 0.0006079/0.1682, allocations: 374.2 kB / 339 MB, free: 14.1 MB / 298.7 MB Notification: Performance of simCode: created event and clocks part: time 2.375e-06/0.1682, allocations: 0 / 339 MB, free: 14.1 MB / 298.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0002383/0.1684, allocations: 216 kB / 339.2 MB, free: 13.88 MB / 298.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0008513/0.1693, allocations: 332.5 kB / 339.5 MB, free: 13.57 MB / 298.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002045/0.1713, allocations: 2.103 MB / 341.6 MB, free: 11.41 MB / 298.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001257/0.1715, allocations: 230.9 kB / 341.8 MB, free: 11.16 MB / 298.7 MB Notification: Performance of simCode: alias equations: time 0.0003/0.1718, allocations: 203.9 kB / 342 MB, free: 10.95 MB / 298.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 9.622e-05/0.1719, allocations: 88.5 kB / 342.1 MB, free: 10.87 MB / 298.7 MB Notification: Performance of SimCode: time 5.91e-07/0.1719, allocations: 0 / 342.1 MB, free: 10.87 MB / 298.7 MB Notification: Performance of Templates: time 0.02128/0.1931, allocations: 19.57 MB / 361.7 MB, free: 7.523 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.2748957639560103]