Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_trunk_Modelica.Electrical.Spice3.Examples.FourInverters.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.0009942/0.0009942, allocations: 85.81 kB / 21.43 MB, free: 3.062 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.001041/0.001041, allocations: 165.6 kB / 24.82 MB, free: 8.922 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.9565/0.9565, allocations: 177 MB / 205.1 MB, free: 5.457 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.FourInverters,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5002,variableFilter="time|mp1.S.v|mp2.S.v|mp3.S.v|mp4.S.v|v.p.v",fileNamePrefix="Modelica_trunk_Modelica.Electrical.Spice3.Examples.FourInverters") translateModel(Modelica.Electrical.Spice3.Examples.FourInverters,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5002,variableFilter="time|mp1.S.v|mp2.S.v|mp3.S.v|mp4.S.v|v.p.v",fileNamePrefix="Modelica_trunk_Modelica.Electrical.Spice3.Examples.FourInverters") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 1.724e-06/1.724e-06, allocations: 3.938 kB / 273.3 MB, free: 1.223 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 1.196e-05/1.369e-05, allocations: 5.266 kB / 273.3 MB, free: 1.219 MB / 250.7 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Spice3.Examples.FourInverters): time 0.1161/0.1161, allocations: 24.71 MB / 298 MB, free: 14.27 MB / 266.7 MB Notification: Performance of NFInst.instExpressions: time 0.01819/0.1343, allocations: 21.07 MB / 319.1 MB, free: 1.203 MB / 266.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.002469/0.1367, allocations: 269.4 kB / 319.4 MB, free: 1.02 MB / 266.7 MB Notification: Performance of NFTyping.typeComponents: time 0.002457/0.1392, allocations: 1.689 MB / 321 MB, free: 15.74 MB / 282.7 MB Notification: Performance of NFTyping.typeBindings: time 0.008712/0.1479, allocations: 3.444 MB / 324.5 MB, free: 12.89 MB / 282.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.004173/0.1521, allocations: 1.63 MB / 326.1 MB, free: 11.63 MB / 282.7 MB Notification: Performance of NFFlatten.flatten: time 0.01441/0.1665, allocations: 13.5 MB / 339.6 MB, free: 14.54 MB / 298.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001007/0.1675, allocations: 492.4 kB / 340.1 MB, free: 14.03 MB / 298.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.006525/0.174, allocations: 5.97 MB / 346.1 MB, free: 8.047 MB / 298.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001901/0.1759, allocations: 1.561 MB / 347.6 MB, free: 6.48 MB / 298.7 MB Notification: Performance of NFPackage.collectConstants: time 0.0003446/0.1763, allocations: 132 kB / 347.8 MB, free: 6.352 MB / 298.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0031/0.1794, allocations: 1.264 MB / 349 MB, free: 5.086 MB / 298.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0004369/0.1798, allocations: 0.6205 MB / 349.6 MB, free: 4.461 MB / 298.7 MB Notification: Performance of NFVerifyModel.verify: time 0.001334/0.1811, allocations: 1.413 MB / 351.1 MB, free: 3.043 MB / 298.7 MB Notification: Performance of NFConvertDAE.convert: time 0.007617/0.1887, allocations: 4.657 MB / 355.7 MB, free: 14.36 MB / 314.7 MB Notification: Performance of FrontEnd - DAE generated: time 5.059e-06/0.1887, allocations: 7.922 kB / 355.7 MB, free: 14.36 MB / 314.7 MB Notification: Performance of FrontEnd: time 1.062e-06/0.1888, allocations: 0 / 355.7 MB, free: 14.36 MB / 314.7 MB Notification: Performance of Transformations before backend: time 7.236e-05/0.1888, allocations: 0 / 355.7 MB, free: 14.36 MB / 314.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 288 * Number of variables: 288 Notification: Performance of Generate backend data structure: time 0.01332/0.2021, allocations: 7.241 MB / 363 MB, free: 7.027 MB / 314.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.59e-05/0.2022, allocations: 23.98 kB / 363 MB, free: 7.004 MB / 314.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0008348/0.203, allocations: 0.8467 MB / 363.8 MB, free: 6.152 MB / 314.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0117/0.2147, allocations: 4.807 MB / 368.6 MB, free: 1.227 MB / 314.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.168e-05/0.2148, allocations: 66 kB / 368.7 MB, free: 1.16 MB / 314.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001851/0.215, allocations: 99.89 kB / 368.8 MB, free: 1.062 MB / 314.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.004177/0.2191, allocations: 0.8369 MB / 369.6 MB, free: 212 kB / 314.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.764e-05/0.2191, allocations: 0 / 369.6 MB, free: 212 kB / 314.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.391e-05/0.2192, allocations: 39.94 kB / 369.7 MB, free: 172 kB / 314.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.283e-05/0.2193, allocations: 47.95 kB / 369.7 MB, free: 124 kB / 314.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001127/0.2204, allocations: 0.8152 MB / 370.5 MB, free: 15.3 MB / 330.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01207/0.2325, allocations: 4.289 MB / 374.8 MB, free: 10.95 MB / 330.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.003677/0.2361, allocations: 0.5051 MB / 375.3 MB, free: 10.43 MB / 330.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0007515/0.2369, allocations: 0.7266 MB / 376.1 MB, free: 9.703 MB / 330.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.03581/0.2727, allocations: 30.11 MB / 406.2 MB, free: 10.91 MB / 362.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0004289/0.2731, allocations: 419.8 kB / 406.6 MB, free: 10.49 MB / 362.7 MB Notification: Performance of pre-optimization done (n=85): time 2.295e-06/0.2731, allocations: 0 / 406.6 MB, free: 10.49 MB / 362.7 MB Notification: Performance of matching and sorting (n=85): time 0.001512/0.2747, allocations: 1.486 MB / 408.1 MB, free: 8.996 MB / 362.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.214e-05/0.2747, allocations: 68.06 kB / 408.1 MB, free: 8.918 MB / 362.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.004309/0.279, allocations: 5.934 MB / 414.1 MB, free: 2.992 MB / 362.7 MB Notification: Performance of collectPreVariables (initialization): time 5.103e-05/0.279, allocations: 37.7 kB / 414.1 MB, free: 2.949 MB / 362.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.001886/0.2809, allocations: 3.274 MB / 417.4 MB, free: 15.66 MB / 378.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001889/0.2811, allocations: 313.4 kB / 417.7 MB, free: 15.35 MB / 378.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0003148/0.2814, allocations: 436.5 kB / 418.1 MB, free: 14.91 MB / 378.7 MB Notification: Performance of setup shared object (initialization): time 9.89e-05/0.2815, allocations: 484.7 kB / 418.6 MB, free: 14.44 MB / 378.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002233/0.2818, allocations: 195.9 kB / 418.8 MB, free: 14.25 MB / 378.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0006352/0.2824, allocations: 1.205 MB / 420 MB, free: 12.59 MB / 378.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001308/0.2837, allocations: 1.558 MB / 421.5 MB, free: 10.57 MB / 378.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 9.909e-06/0.2837, allocations: 8 kB / 421.5 MB, free: 10.57 MB / 378.7 MB Notification: Performance of matching and sorting (n=200) (initialization): time 0.001578/0.2853, allocations: 1.901 MB / 423.4 MB, free: 8.656 MB / 378.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.072e-05/0.2853, allocations: 16 kB / 423.5 MB, free: 8.641 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001157/0.2854, allocations: 156 kB / 423.6 MB, free: 8.488 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.685e-05/0.2854, allocations: 36.81 kB / 423.7 MB, free: 8.453 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005946/0.286, allocations: 359.4 kB / 424 MB, free: 8.102 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.597e-05/0.2861, allocations: 51.84 kB / 424.1 MB, free: 8.051 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000776/0.2868, allocations: 182.7 kB / 424.2 MB, free: 7.871 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001281/0.287, allocations: 112 kB / 424.3 MB, free: 7.762 MB / 378.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 108 * 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 (184): * Single equations (assignments): 176 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 8 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0004792/0.2875, allocations: 267.8 kB / 424.6 MB, free: 7.488 MB / 378.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0004299/0.2879, allocations: 0.7765 MB / 425.4 MB, free: 6.707 MB / 378.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001984/0.2899, allocations: 1.858 MB / 427.2 MB, free: 4.844 MB / 378.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.174e-06/0.2899, allocations: 8 kB / 427.2 MB, free: 4.836 MB / 378.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.703e-06/0.2899, allocations: 0 / 427.2 MB, free: 4.836 MB / 378.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.144e-06/0.2899, allocations: 7.609 kB / 427.3 MB, free: 4.832 MB / 378.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003255/0.2931, allocations: 3.784 MB / 431 MB, free: 0.9844 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.123e-05/0.2932, allocations: 136 kB / 431.2 MB, free: 0.8516 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003362/0.2936, allocations: 155.8 kB / 431.3 MB, free: 0.6992 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.579e-06/0.2936, allocations: 4 kB / 431.3 MB, free: 0.6953 MB / 378.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.373e-05/0.2936, allocations: 63.98 kB / 431.4 MB, free: 0.6328 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.605e-06/0.2936, allocations: 0 / 431.4 MB, free: 0.6328 MB / 378.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.923e-06/0.2936, allocations: 4 kB / 431.4 MB, free: 0.6289 MB / 378.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.1067/0.4003, allocations: 1.744 MB / 433.1 MB, free: 111.3 MB / 378.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.000876/0.4012, allocations: 0.8141 MB / 434 MB, free: 111 MB / 378.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0003365/0.4015, allocations: 16.84 kB / 434 MB, free: 111 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0005944/0.4021, allocations: 29.72 kB / 434 MB, free: 111 MB / 378.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001678/0.4023, allocations: 105 kB / 434.1 MB, free: 111 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001081/0.4024, allocations: 63.05 kB / 434.2 MB, free: 111 MB / 378.7 MB Notification: Performance of sorting global known variables: time 0.002888/0.4053, allocations: 3.02 MB / 437.2 MB, free: 110.7 MB / 378.7 MB Notification: Performance of sort global known variables: time 8.1e-08/0.4053, allocations: 0 / 437.2 MB, free: 110.7 MB / 378.7 MB Notification: Performance of remove unused functions: time 0.001899/0.4072, allocations: 1.087 MB / 438.3 MB, free: 110.7 MB / 378.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 3 * Number of states: 4 (c1.vinternal,c2.vinternal,c3.vinternal,c4.vinternal) * 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 (70): * Single equations (assignments): 56 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 8 * When equations: 6 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.001554/0.4087, allocations: 1.435 MB / 439.7 MB, free: 110.6 MB / 378.7 MB Notification: Performance of simCode: created initialization part: time 0.00106/0.4098, allocations: 1.091 MB / 440.8 MB, free: 110.3 MB / 378.7 MB Notification: Performance of simCode: created event and clocks part: time 2.374e-06/0.4098, allocations: 0.5469 kB / 440.8 MB, free: 110.3 MB / 378.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0003719/0.4102, allocations: 0.6026 MB / 441.4 MB, free: 110.1 MB / 378.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002547/0.4127, allocations: 1.226 MB / 442.6 MB, free: 110 MB / 378.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.005433/0.4181, allocations: 7.764 MB / 450.4 MB, free: 106.2 MB / 378.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003788/0.4185, allocations: 0.6927 MB / 451.1 MB, free: 106.1 MB / 378.7 MB Notification: Performance of simCode: alias equations: time 0.001023/0.4195, allocations: 0.6833 MB / 451.8 MB, free: 105.9 MB / 378.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001318/0.4209, allocations: 1.301 MB / 453.1 MB, free: 105.4 MB / 378.7 MB Notification: Performance of SimCode: time 7.11e-07/0.4209, allocations: 0 / 453.1 MB, free: 105.4 MB / 378.7 MB Notification: Performance of Templates: time 0.062/0.4829, allocations: 66.33 MB / 0.5072 GB, free: 42.21 MB / 378.7 MB " [Timeout remaining time 660] make -j1 -f Modelica_trunk_Modelica.Electrical.Spice3.Examples.FourInverters.makefile [Timeout 660] (rm -f Modelica_trunk_Modelica.Electrical.Spice3.Examples.FourInverters.pipe ; mkfifo Modelica_trunk_Modelica.Electrical.Spice3.Examples.FourInverters.pipe ; head -c 1048576 < Modelica_trunk_Modelica.Electrical.Spice3.Examples.FourInverters.pipe >> ../files/Modelica_trunk_Modelica.Electrical.Spice3.Examples.FourInverters.sim & ./Modelica_trunk_Modelica.Electrical.Spice3.Examples.FourInverters -abortSlowSimulation -alarm=240 -emit_protected -lv LOG_STATS > Modelica_trunk_Modelica.Electrical.Spice3.Examples.FourInverters.pipe 2>&1) [Timeout 240] diffSimulationResults("Modelica_trunk_Modelica.Electrical.Spice3.Examples.FourInverters_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.1.0/Modelica/Electrical/Spice3/Examples/FourInverters/FourInverters.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.996725955978036]