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.0009448/0.0009448, allocations: 79.69 kB / 21.7 MB, free: 2.848 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.001063/0.001063, allocations: 167.7 kB / 24.99 MB, free: 8.219 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.9238/0.9238, allocations: 177 MB / 205.2 MB, free: 5.523 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.222e-06/1.222e-06, allocations: 0 / 273 MB, free: 1.73 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 2.07e-05/2.192e-05, allocations: 2.312 kB / 273 MB, free: 1.727 MB / 250.7 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Spice3.Examples.FourInverters): time 0.1246/0.1247, allocations: 25.31 MB / 298.3 MB, free: 13.89 MB / 266.7 MB Notification: Performance of NFInst.instExpressions: time 0.02034/0.145, allocations: 21.39 MB / 319.7 MB, free: 0.9688 MB / 266.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.004078/0.1491, allocations: 266.9 kB / 319.9 MB, free: 0.7852 MB / 266.7 MB Notification: Performance of NFTyping.typeComponents: time 0.003641/0.1527, allocations: 1.685 MB / 321.6 MB, free: 15.52 MB / 282.7 MB Notification: Performance of NFTyping.typeBindings: time 0.009427/0.1622, allocations: 3.444 MB / 325.1 MB, free: 12.66 MB / 282.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.003916/0.1661, allocations: 1.622 MB / 326.7 MB, free: 11.41 MB / 282.7 MB Notification: Performance of NFFlatten.flatten: time 0.01402/0.1801, allocations: 13.26 MB / 340 MB, free: 14.49 MB / 298.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001171/0.1813, allocations: 0.4887 MB / 340.4 MB, free: 13.97 MB / 298.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.004019/0.1853, allocations: 2.98 MB / 343.4 MB, free: 10.98 MB / 298.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.00143/0.1867, allocations: 1.506 MB / 344.9 MB, free: 9.469 MB / 298.7 MB Notification: Performance of NFPackage.collectConstants: time 0.0003079/0.187, allocations: 132 kB / 345.1 MB, free: 9.34 MB / 298.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.002916/0.1899, allocations: 1.276 MB / 346.3 MB, free: 8.062 MB / 298.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0003716/0.1903, allocations: 0.6049 MB / 346.9 MB, free: 7.453 MB / 298.7 MB Notification: Performance of NFVerifyModel.verify: time 0.001368/0.1917, allocations: 1.406 MB / 348.3 MB, free: 6.043 MB / 298.7 MB Notification: Performance of NFConvertDAE.convert: time 0.005205/0.1969, allocations: 4.656 MB / 353 MB, free: 1.367 MB / 298.7 MB Notification: Performance of FrontEnd - DAE generated: time 5.27e-06/0.1969, allocations: 0 / 353 MB, free: 1.367 MB / 298.7 MB Notification: Performance of FrontEnd: time 1.422e-06/0.1969, allocations: 0 / 353 MB, free: 1.367 MB / 298.7 MB Notification: Performance of Transformations before backend: time 8.258e-05/0.197, allocations: 0 / 353 MB, free: 1.367 MB / 298.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.005676/0.2026, allocations: 7.144 MB / 360.1 MB, free: 10.13 MB / 314.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.995e-05/0.2027, allocations: 11.98 kB / 360.2 MB, free: 10.12 MB / 314.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0006436/0.2033, allocations: 0.8467 MB / 361 MB, free: 9.27 MB / 314.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.004487/0.2078, allocations: 4.967 MB / 366 MB, free: 4.184 MB / 314.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.083e-05/0.2079, allocations: 66.56 kB / 366 MB, free: 4.117 MB / 314.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001479/0.208, allocations: 103.9 kB / 366.1 MB, free: 4.016 MB / 314.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001168/0.2092, allocations: 0.9424 MB / 367.1 MB, free: 3.055 MB / 314.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.594e-05/0.2092, allocations: 0 / 367.1 MB, free: 3.055 MB / 314.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.757e-05/0.2093, allocations: 39.94 kB / 367.1 MB, free: 3.016 MB / 314.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.611e-05/0.2093, allocations: 39.97 kB / 367.2 MB, free: 2.977 MB / 314.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.00108/0.2104, allocations: 0.9181 MB / 368.1 MB, free: 2.055 MB / 314.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.006033/0.2164, allocations: 5.305 MB / 373.4 MB, free: 12.68 MB / 330.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0007128/0.2171, allocations: 0.5721 MB / 374 MB, free: 12.1 MB / 330.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0007593/0.2179, allocations: 0.8088 MB / 374.8 MB, free: 11.29 MB / 330.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.03039/0.2483, allocations: 30 MB / 404.8 MB, free: 12.54 MB / 362.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0004832/0.2488, allocations: 448.4 kB / 405.2 MB, free: 12.09 MB / 362.7 MB Notification: Performance of pre-optimization done (n=85): time 2.946e-06/0.2488, allocations: 0 / 405.2 MB, free: 12.09 MB / 362.7 MB Notification: Performance of matching and sorting (n=85): time 0.001631/0.2504, allocations: 1.572 MB / 406.8 MB, free: 10.51 MB / 362.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.326e-05/0.2504, allocations: 75.98 kB / 406.8 MB, free: 10.43 MB / 362.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.004677/0.2551, allocations: 6.001 MB / 412.8 MB, free: 4.438 MB / 362.7 MB Notification: Performance of collectPreVariables (initialization): time 6.301e-05/0.2552, allocations: 37.7 kB / 412.9 MB, free: 4.395 MB / 362.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.002168/0.2573, allocations: 3.252 MB / 416.1 MB, free: 1.129 MB / 362.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001907/0.2575, allocations: 313.4 kB / 416.4 MB, free: 0.8203 MB / 362.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0003236/0.2579, allocations: 436.6 kB / 416.9 MB, free: 396 kB / 362.7 MB Notification: Performance of setup shared object (initialization): time 0.0001048/0.258, allocations: 480.7 kB / 417.3 MB, free: 15.91 MB / 378.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003326/0.2583, allocations: 239.9 kB / 417.6 MB, free: 15.68 MB / 378.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0007315/0.259, allocations: 1.249 MB / 418.8 MB, free: 13.98 MB / 378.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001164/0.2602, allocations: 1.609 MB / 420.4 MB, free: 11.91 MB / 378.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 9.948e-06/0.2602, allocations: 11.88 kB / 420.4 MB, free: 11.9 MB / 378.7 MB Notification: Performance of matching and sorting (n=200) (initialization): time 0.002124/0.2623, allocations: 2.003 MB / 422.4 MB, free: 9.891 MB / 378.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.737e-05/0.2624, allocations: 20.8 kB / 422.5 MB, free: 9.871 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001219/0.2625, allocations: 164 kB / 422.6 MB, free: 9.711 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.949e-05/0.2625, allocations: 32 kB / 422.7 MB, free: 9.68 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0006738/0.2632, allocations: 359.4 kB / 423 MB, free: 9.328 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 3.135e-05/0.2632, allocations: 51.78 kB / 423.1 MB, free: 9.277 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0009054/0.2641, allocations: 190.6 kB / 423.2 MB, free: 9.09 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001267/0.2642, allocations: 124 kB / 423.4 MB, free: 8.969 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.0005224/0.2648, allocations: 271.9 kB / 423.6 MB, free: 8.691 MB / 378.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0004544/0.2652, allocations: 0.7726 MB / 424.4 MB, free: 7.914 MB / 378.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002254/0.2675, allocations: 1.918 MB / 426.3 MB, free: 6 MB / 378.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.765e-06/0.2675, allocations: 8 kB / 426.3 MB, free: 5.992 MB / 378.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.877e-06/0.2675, allocations: 0 / 426.3 MB, free: 5.992 MB / 378.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.932e-06/0.2675, allocations: 3.984 kB / 426.3 MB, free: 5.988 MB / 378.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003642/0.2711, allocations: 3.693 MB / 430 MB, free: 2.234 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.936e-05/0.2712, allocations: 136 kB / 430.2 MB, free: 2.102 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000389/0.2716, allocations: 139.8 kB / 430.3 MB, free: 1.965 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 6.592e-06/0.2716, allocations: 4 kB / 430.3 MB, free: 1.961 MB / 378.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.478e-05/0.2717, allocations: 63.98 kB / 430.4 MB, free: 1.898 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.188e-06/0.2717, allocations: 4 kB / 430.4 MB, free: 1.895 MB / 378.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.725e-06/0.2717, allocations: 8 kB / 430.4 MB, free: 1.887 MB / 378.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001617/0.2733, allocations: 1.846 MB / 432.2 MB, free: 8 kB / 378.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.1162/0.3895, allocations: 0.8124 MB / 433 MB, free: 126.6 MB / 378.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.000466/0.39, allocations: 13.72 kB / 433 MB, free: 126.6 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0006622/0.3907, allocations: 24.64 kB / 433.1 MB, free: 126.6 MB / 378.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002046/0.3909, allocations: 103 kB / 433.2 MB, free: 126.6 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001014/0.391, allocations: 69.11 kB / 433.2 MB, free: 126.6 MB / 378.7 MB Notification: Performance of sorting global known variables: time 0.003358/0.3943, allocations: 3.232 MB / 436.5 MB, free: 126.3 MB / 378.7 MB Notification: Performance of sort global known variables: time 8e-08/0.3943, allocations: 0 / 436.5 MB, free: 126.3 MB / 378.7 MB Notification: Performance of remove unused functions: time 0.001691/0.396, allocations: 1.084 MB / 437.6 MB, free: 126.3 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.001391/0.3974, allocations: 1.288 MB / 438.8 MB, free: 126.2 MB / 378.7 MB Notification: Performance of simCode: created initialization part: time 0.001328/0.3987, allocations: 1.162 MB / 440 MB, free: 125.9 MB / 378.7 MB Notification: Performance of simCode: created event and clocks part: time 2.795e-06/0.3987, allocations: 0 / 440 MB, free: 125.9 MB / 378.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0004862/0.3992, allocations: 0.6322 MB / 440.6 MB, free: 125.7 MB / 378.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002999/0.4022, allocations: 1.228 MB / 441.9 MB, free: 125.5 MB / 378.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.005652/0.4079, allocations: 7.789 MB / 449.7 MB, free: 121.5 MB / 378.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003914/0.4083, allocations: 0.6997 MB / 450.4 MB, free: 121.4 MB / 378.7 MB Notification: Performance of simCode: alias equations: time 0.001254/0.4095, allocations: 0.6816 MB / 451 MB, free: 121.2 MB / 378.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002245/0.4098, allocations: 282.2 kB / 451.3 MB, free: 121.2 MB / 378.7 MB Notification: Performance of SimCode: time 1.623e-06/0.4098, allocations: 0 / 451.3 MB, free: 121.2 MB / 378.7 MB Notification: Performance of Templates: time 0.05442/0.4642, allocations: 57.93 MB / 0.4973 GB, free: 65.29 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: 4.204286033986136]