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.0009428/0.0009428, allocations: 84.73 kB / 21.5 MB, free: 2.992 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.0009468/0.0009468, allocations: 165 kB / 24.91 MB, free: 9.195 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.9451/0.9451, allocations: 177 MB / 205.2 MB, free: 5.473 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 2.074e-06/2.074e-06, allocations: 0 / 273.4 MB, free: 1.207 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 2.186e-05/2.394e-05, allocations: 2.312 kB / 273.4 MB, free: 1.203 MB / 250.7 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Spice3.Examples.FourInverters): time 0.1197/0.1198, allocations: 24.75 MB / 298.2 MB, free: 14.3 MB / 266.7 MB Notification: Performance of NFInst.instExpressions: time 0.02273/0.1425, allocations: 21.64 MB / 319.8 MB, free: 0.7188 MB / 266.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.005286/0.1478, allocations: 268.3 kB / 320.1 MB, free: 0.5352 MB / 266.7 MB Notification: Performance of NFTyping.typeComponents: time 0.004431/0.1522, allocations: 1.751 MB / 321.8 MB, free: 15.21 MB / 282.7 MB Notification: Performance of NFTyping.typeBindings: time 0.01016/0.1624, allocations: 3.396 MB / 325.2 MB, free: 12.36 MB / 282.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.004325/0.1667, allocations: 1.594 MB / 326.8 MB, free: 11.09 MB / 282.7 MB Notification: Performance of NFFlatten.flatten: time 0.01302/0.1797, allocations: 13.4 MB / 340.2 MB, free: 14 MB / 298.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001223/0.1809, allocations: 0.5571 MB / 340.8 MB, free: 13.39 MB / 298.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.006221/0.1872, allocations: 5.936 MB / 346.7 MB, free: 7.441 MB / 298.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.002646/0.1898, allocations: 1.561 MB / 348.3 MB, free: 5.875 MB / 298.7 MB Notification: Performance of NFPackage.collectConstants: time 0.0004395/0.1902, allocations: 132 kB / 348.4 MB, free: 5.746 MB / 298.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.003361/0.1936, allocations: 1.327 MB / 349.7 MB, free: 4.418 MB / 298.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0003509/0.194, allocations: 0.6088 MB / 350.3 MB, free: 3.805 MB / 298.7 MB Notification: Performance of NFVerifyModel.verify: time 0.001689/0.1956, allocations: 1.421 MB / 351.8 MB, free: 2.379 MB / 298.7 MB Notification: Performance of NFConvertDAE.convert: time 0.004686/0.2003, allocations: 4.649 MB / 356.4 MB, free: 13.7 MB / 314.7 MB Notification: Performance of FrontEnd - DAE generated: time 3.606e-06/0.2003, allocations: 0 / 356.4 MB, free: 13.7 MB / 314.7 MB Notification: Performance of FrontEnd: time 1.112e-06/0.2003, allocations: 0 / 356.4 MB, free: 13.7 MB / 314.7 MB Notification: Performance of Transformations before backend: time 0.0001491/0.2005, allocations: 3.984 kB / 356.4 MB, free: 13.7 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.004919/0.2054, allocations: 6.775 MB / 363.2 MB, free: 6.848 MB / 314.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.353e-05/0.2054, allocations: 15.98 kB / 363.2 MB, free: 6.832 MB / 314.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0005144/0.206, allocations: 0.5228 MB / 363.7 MB, free: 6.309 MB / 314.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.003605/0.2096, allocations: 3.92 MB / 367.6 MB, free: 2.246 MB / 314.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.931e-05/0.2096, allocations: 70 kB / 367.7 MB, free: 2.176 MB / 314.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001343/0.2097, allocations: 103.9 kB / 367.8 MB, free: 2.074 MB / 314.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0008373/0.2106, allocations: 0.7891 MB / 368.6 MB, free: 1.266 MB / 314.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.563e-05/0.2106, allocations: 0 / 368.6 MB, free: 1.266 MB / 314.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.45e-05/0.2106, allocations: 43.94 kB / 368.6 MB, free: 1.223 MB / 314.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.661e-05/0.2107, allocations: 39.97 kB / 368.7 MB, free: 1.184 MB / 314.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0006249/0.2113, allocations: 423.1 kB / 369.1 MB, free: 0.7617 MB / 314.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.004054/0.2154, allocations: 2.885 MB / 372 MB, free: 13.83 MB / 330.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0004946/0.2158, allocations: 481.4 kB / 372.4 MB, free: 13.35 MB / 330.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0005045/0.2164, allocations: 0.6346 MB / 373.1 MB, free: 12.72 MB / 330.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.05347/0.2698, allocations: 45.52 MB / 418.6 MB, free: 13.5 MB / 378.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0004647/0.2703, allocations: 334 kB / 418.9 MB, free: 13.17 MB / 378.7 MB Notification: Performance of pre-optimization done (n=85): time 3.336e-06/0.2703, allocations: 0 / 418.9 MB, free: 13.17 MB / 378.7 MB Notification: Performance of matching and sorting (n=85): time 0.001363/0.2717, allocations: 0.8517 MB / 419.8 MB, free: 12.31 MB / 378.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.278e-05/0.2717, allocations: 68 kB / 419.8 MB, free: 12.23 MB / 378.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.004468/0.2762, allocations: 5.064 MB / 424.9 MB, free: 7.188 MB / 378.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0001006/0.2763, allocations: 41.7 kB / 425 MB, free: 7.141 MB / 378.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0009554/0.2772, allocations: 1.393 MB / 426.3 MB, free: 5.734 MB / 378.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002433/0.2775, allocations: 305.4 kB / 426.6 MB, free: 5.434 MB / 378.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0003763/0.2778, allocations: 346.8 kB / 427 MB, free: 5.09 MB / 378.7 MB Notification: Performance of setup shared object (initialization): time 7.504e-05/0.2779, allocations: 309 kB / 427.3 MB, free: 4.785 MB / 378.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002419/0.2782, allocations: 135.9 kB / 427.4 MB, free: 4.652 MB / 378.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0006091/0.2788, allocations: 0.8408 MB / 428.3 MB, free: 3.48 MB / 378.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001123/0.2799, allocations: 1.162 MB / 429.4 MB, free: 1.984 MB / 378.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.235e-05/0.2799, allocations: 8 kB / 429.4 MB, free: 1.977 MB / 378.7 MB Notification: Performance of matching and sorting (n=200) (initialization): time 0.002016/0.2819, allocations: 1.282 MB / 430.7 MB, free: 0.6875 MB / 378.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.887e-05/0.282, allocations: 16.97 kB / 430.7 MB, free: 0.6719 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001315/0.2821, allocations: 43.98 kB / 430.8 MB, free: 0.6289 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 3.872e-05/0.2821, allocations: 36 kB / 430.8 MB, free: 0.5938 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0009124/0.283, allocations: 395.3 kB / 431.2 MB, free: 212 kB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 3.684e-05/0.2831, allocations: 55.8 kB / 431.2 MB, free: 156 kB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.1211/0.4042, allocations: 182.1 kB / 431.4 MB, free: 112.5 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002552/0.4044, allocations: 68.41 kB / 431.5 MB, free: 112.5 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.0007673/0.4052, allocations: 221.6 kB / 431.7 MB, free: 112.4 MB / 378.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0007024/0.4059, allocations: 470.7 kB / 432.2 MB, free: 112.4 MB / 378.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002154/0.4081, allocations: 1.472 MB / 433.6 MB, free: 112.3 MB / 378.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.166e-05/0.4081, allocations: 7.969 kB / 433.6 MB, free: 112.3 MB / 378.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.787e-06/0.4081, allocations: 5.781 kB / 433.7 MB, free: 112.3 MB / 378.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.286e-06/0.4081, allocations: 2.766 kB / 433.7 MB, free: 112.3 MB / 378.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003424/0.4115, allocations: 2.768 MB / 436.4 MB, free: 112 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.407e-05/0.4116, allocations: 19.81 kB / 436.4 MB, free: 112 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000503/0.4121, allocations: 174.9 kB / 436.6 MB, free: 112 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 8.386e-06/0.4121, allocations: 3.656 kB / 436.6 MB, free: 112 MB / 378.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.311e-05/0.4122, allocations: 22.88 kB / 436.6 MB, free: 112 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 7.374e-06/0.4122, allocations: 8.438 kB / 436.6 MB, free: 112 MB / 378.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.675e-06/0.4122, allocations: 2.047 kB / 436.6 MB, free: 112 MB / 378.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001866/0.414, allocations: 1.057 MB / 437.7 MB, free: 111.8 MB / 378.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0009521/0.415, allocations: 0.7376 MB / 438.4 MB, free: 111.8 MB / 378.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0004488/0.4154, allocations: 15.03 kB / 438.5 MB, free: 111.8 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0005606/0.416, allocations: 27.12 kB / 438.5 MB, free: 111.8 MB / 378.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001713/0.4162, allocations: 61.81 kB / 438.5 MB, free: 111.8 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.193e-05/0.4163, allocations: 22.95 kB / 438.6 MB, free: 111.8 MB / 378.7 MB Notification: Performance of sorting global known variables: time 0.002761/0.419, allocations: 2.73 MB / 441.3 MB, free: 111.5 MB / 378.7 MB Notification: Performance of sort global known variables: time 1.91e-07/0.419, allocations: 0 / 441.3 MB, free: 111.5 MB / 378.7 MB Notification: Performance of remove unused functions: time 0.001551/0.4206, allocations: 1.086 MB / 442.4 MB, free: 111.5 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.001288/0.4219, allocations: 1.446 MB / 443.8 MB, free: 111.4 MB / 378.7 MB Notification: Performance of simCode: created initialization part: time 0.0007902/0.4226, allocations: 0.8441 MB / 444.7 MB, free: 111.2 MB / 378.7 MB Notification: Performance of simCode: created event and clocks part: time 8.45e-05/0.4227, allocations: 82.56 kB / 444.8 MB, free: 111.2 MB / 378.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0003056/0.423, allocations: 437.7 kB / 445.2 MB, free: 110.9 MB / 378.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002504/0.4255, allocations: 1.182 MB / 446.4 MB, free: 110.7 MB / 378.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.005886/0.4314, allocations: 7.576 MB / 453.9 MB, free: 105.9 MB / 378.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003971/0.4318, allocations: 0.6901 MB / 454.6 MB, free: 105.5 MB / 378.7 MB Notification: Performance of simCode: alias equations: time 0.001249/0.4331, allocations: 0.6811 MB / 455.3 MB, free: 104.9 MB / 378.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001375/0.4344, allocations: 1.069 MB / 456.4 MB, free: 104.1 MB / 378.7 MB Notification: Performance of SimCode: time 1.673e-06/0.4344, allocations: 0 / 456.4 MB, free: 104.1 MB / 378.7 MB Notification: Performance of Templates: time 0.06649/0.5009, allocations: 66.28 MB / 0.5104 GB, free: 39.94 MB / 378.7 MB " [Timeout remaining time 659] 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 -s gbode -gbm=radauIIA3 -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: 4.020073860883713]