Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.0.0_Modelica.Electrical.Spice3.Examples.FourInverters.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001391/0.001391, allocations: 83.89 kB / 21.19 MB, free: 3.379 MB / 18.57 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001352/0.001352, allocations: 145.1 kB / 24.54 MB, free: 24 kB / 18.57 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 0.9296/0.9296, allocations: 173.3 MB / 201.1 MB, free: 9.297 MB / 186.7 MB " [Timeout remaining time 179] Using package Modelica with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo) Using package Complex with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/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_4.0.0_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_4.0.0_Modelica.Electrical.Spice3.Examples.FourInverters") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 1.473e-06/1.473e-06, allocations: 0 / 268 MB, free: 6.41 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 1.949e-05/2.096e-05, allocations: 6.25 kB / 268 MB, free: 6.402 MB / 250.7 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Spice3.Examples.FourInverters): time 0.1391/0.1392, allocations: 25.36 MB / 293.3 MB, free: 14.22 MB / 266.7 MB Notification: Performance of NFInst.instExpressions: time 0.02325/0.1624, allocations: 21.4 MB / 314.8 MB, free: 6.422 MB / 266.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.003622/0.166, allocations: 268.2 kB / 315 MB, free: 6.238 MB / 266.7 MB Notification: Performance of NFTyping.typeComponents: time 0.003127/0.1691, allocations: 1.69 MB / 316.7 MB, free: 5.121 MB / 266.7 MB Notification: Performance of NFTyping.typeBindings: time 0.008137/0.1773, allocations: 3.43 MB / 320.1 MB, free: 2.281 MB / 266.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.004942/0.1822, allocations: 1.63 MB / 321.8 MB, free: 1.02 MB / 266.7 MB Notification: Performance of NFFlatten.flatten: time 0.01659/0.1988, allocations: 13.33 MB / 335.1 MB, free: 5.945 MB / 282.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001307/0.2001, allocations: 0.4926 MB / 335.6 MB, free: 5.418 MB / 282.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.004541/0.2047, allocations: 2.984 MB / 338.6 MB, free: 2.426 MB / 282.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001981/0.2066, allocations: 1.502 MB / 340.1 MB, free: 0.918 MB / 282.7 MB Notification: Performance of NFPackage.collectConstants: time 0.0004232/0.2071, allocations: 136 kB / 340.2 MB, free: 0.7852 MB / 282.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.004272/0.2113, allocations: 1.268 MB / 341.5 MB, free: 15.52 MB / 298.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0004955/0.2118, allocations: 0.601 MB / 342.1 MB, free: 14.91 MB / 298.7 MB Notification: Performance of NFVerifyModel.verify: time 0.001977/0.2138, allocations: 1.41 MB / 343.5 MB, free: 13.5 MB / 298.7 MB Notification: Performance of NFConvertDAE.convert: time 0.005919/0.2197, allocations: 4.644 MB / 348.1 MB, free: 8.832 MB / 298.7 MB Notification: Performance of FrontEnd - DAE generated: time 5.4e-06/0.2197, allocations: 0 / 348.1 MB, free: 8.832 MB / 298.7 MB Notification: Performance of FrontEnd: time 1.383e-06/0.2197, allocations: 0 / 348.1 MB, free: 8.832 MB / 298.7 MB Notification: Performance of Transformations before backend: time 0.0001565/0.2199, allocations: 0 / 348.1 MB, free: 8.832 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.007501/0.2274, allocations: 7.14 MB / 355.3 MB, free: 1.605 MB / 298.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.931e-05/0.2274, allocations: 12.92 kB / 355.3 MB, free: 1.594 MB / 298.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.000817/0.2283, allocations: 0.8506 MB / 356.1 MB, free: 0.7344 MB / 298.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.004514/0.2328, allocations: 4.963 MB / 361.1 MB, free: 11.65 MB / 314.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.185e-05/0.2328, allocations: 66 kB / 361.2 MB, free: 11.58 MB / 314.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001686/0.233, allocations: 103.9 kB / 361.3 MB, free: 11.48 MB / 314.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001208/0.2342, allocations: 0.9423 MB / 362.2 MB, free: 10.52 MB / 314.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.915e-05/0.2342, allocations: 4 kB / 362.2 MB, free: 10.52 MB / 314.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.189e-05/0.2343, allocations: 39.94 kB / 362.3 MB, free: 10.48 MB / 314.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.796e-05/0.2343, allocations: 39.97 kB / 362.3 MB, free: 10.44 MB / 314.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001127/0.2354, allocations: 0.922 MB / 363.2 MB, free: 9.512 MB / 314.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.006234/0.2417, allocations: 5.318 MB / 368.5 MB, free: 4.133 MB / 314.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0007017/0.2424, allocations: 0.564 MB / 369.1 MB, free: 3.555 MB / 314.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0007416/0.2431, allocations: 0.801 MB / 369.9 MB, free: 2.75 MB / 314.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.03334/0.2765, allocations: 29.93 MB / 399.8 MB, free: 4.066 MB / 346.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0006954/0.2772, allocations: 447.8 kB / 400.3 MB, free: 3.621 MB / 346.7 MB Notification: Performance of pre-optimization done (n=85): time 3.516e-06/0.2772, allocations: 0 / 400.3 MB, free: 3.621 MB / 346.7 MB Notification: Performance of matching and sorting (n=85): time 0.002597/0.2798, allocations: 1.575 MB / 401.8 MB, free: 2.035 MB / 346.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.763e-05/0.2798, allocations: 68 kB / 401.9 MB, free: 1.957 MB / 346.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.00675/0.2866, allocations: 6.005 MB / 407.9 MB, free: 11.96 MB / 362.7 MB Notification: Performance of collectPreVariables (initialization): time 8.604e-05/0.2867, allocations: 41.7 kB / 408 MB, free: 11.91 MB / 362.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.002663/0.2893, allocations: 3.252 MB / 411.2 MB, free: 8.652 MB / 362.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.000292/0.2896, allocations: 317.4 kB / 411.5 MB, free: 8.34 MB / 362.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0004845/0.2901, allocations: 424.7 kB / 411.9 MB, free: 7.918 MB / 362.7 MB Notification: Performance of setup shared object (initialization): time 0.0001392/0.2902, allocations: 484.7 kB / 412.4 MB, free: 7.441 MB / 362.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000459/0.2907, allocations: 243.9 kB / 412.6 MB, free: 7.203 MB / 362.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001045/0.2917, allocations: 1.241 MB / 413.9 MB, free: 5.508 MB / 362.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001666/0.2934, allocations: 1.62 MB / 415.5 MB, free: 3.43 MB / 362.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.328e-05/0.2934, allocations: 8 kB / 415.5 MB, free: 3.422 MB / 362.7 MB Notification: Performance of matching and sorting (n=200) (initialization): time 0.00284/0.2963, allocations: 2.012 MB / 417.5 MB, free: 1.402 MB / 362.7 MB Notification: Performance of prepare postOptimizeDAE: time 3.226e-05/0.2963, allocations: 12 kB / 417.5 MB, free: 1.391 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0002037/0.2965, allocations: 164 kB / 417.7 MB, free: 1.23 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 5.606e-05/0.2965, allocations: 32 kB / 417.7 MB, free: 1.199 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0009155/0.2975, allocations: 359.4 kB / 418.1 MB, free: 0.8477 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 3.987e-05/0.2975, allocations: 47.8 kB / 418.1 MB, free: 0.8008 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001505/0.299, allocations: 190.1 kB / 418.3 MB, free: 0.6172 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002087/0.2992, allocations: 128 kB / 418.4 MB, free: 0.4922 MB / 362.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.0006596/0.2999, allocations: 269.5 kB / 418.7 MB, free: 224 kB / 362.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0007179/0.3006, allocations: 0.765 MB / 419.5 MB, free: 15.45 MB / 378.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.00312/0.3037, allocations: 1.927 MB / 421.4 MB, free: 13.52 MB / 378.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.102e-05/0.3037, allocations: 8 kB / 421.4 MB, free: 13.51 MB / 378.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.339e-06/0.3037, allocations: 0 / 421.4 MB, free: 13.51 MB / 378.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.335e-06/0.3037, allocations: 3.984 kB / 421.4 MB, free: 13.51 MB / 378.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.004877/0.3086, allocations: 3.693 MB / 425.1 MB, free: 9.758 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 0.0001657/0.3088, allocations: 140 kB / 425.2 MB, free: 9.621 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004966/0.3093, allocations: 139.8 kB / 425.4 MB, free: 9.484 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 5.411e-06/0.3093, allocations: 7.938 kB / 425.4 MB, free: 9.477 MB / 378.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.635e-05/0.3094, allocations: 60.05 kB / 425.4 MB, free: 9.418 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 6.603e-06/0.3094, allocations: 11.94 kB / 425.4 MB, free: 9.406 MB / 378.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.164e-06/0.3094, allocations: 0 / 425.4 MB, free: 9.406 MB / 378.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002117/0.3115, allocations: 1.85 MB / 427.3 MB, free: 7.523 MB / 378.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001115/0.3126, allocations: 0.8093 MB / 428.1 MB, free: 6.699 MB / 378.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0004151/0.313, allocations: 19.98 kB / 428.1 MB, free: 6.68 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0008409/0.3139, allocations: 27.92 kB / 428.2 MB, free: 6.652 MB / 378.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002142/0.3141, allocations: 100.5 kB / 428.2 MB, free: 6.555 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001036/0.3142, allocations: 64 kB / 428.3 MB, free: 6.492 MB / 378.7 MB Notification: Performance of sorting global known variables: time 0.003669/0.3179, allocations: 3.233 MB / 431.5 MB, free: 3.289 MB / 378.7 MB Notification: Performance of sort global known variables: time 7e-08/0.3179, allocations: 4 kB / 431.5 MB, free: 3.285 MB / 378.7 MB Notification: Performance of remove unused functions: time 0.001857/0.3197, allocations: 1.085 MB / 432.6 MB, free: 2.199 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.001446/0.3212, allocations: 1.285 MB / 433.9 MB, free: 0.8984 MB / 378.7 MB Notification: Performance of simCode: created initialization part: time 0.1197/0.4408, allocations: 1.155 MB / 435.1 MB, free: 105.1 MB / 378.7 MB Notification: Performance of simCode: created event and clocks part: time 5.19e-06/0.4408, allocations: 1.812 kB / 435.1 MB, free: 105.1 MB / 378.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0007725/0.4416, allocations: 0.6341 MB / 435.7 MB, free: 104.8 MB / 378.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003736/0.4453, allocations: 1.223 MB / 436.9 MB, free: 104.7 MB / 378.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.008133/0.4535, allocations: 7.78 MB / 444.7 MB, free: 101 MB / 378.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005607/0.454, allocations: 0.6919 MB / 445.4 MB, free: 100.8 MB / 378.7 MB Notification: Performance of simCode: alias equations: time 0.00153/0.4556, allocations: 0.6838 MB / 446.1 MB, free: 100.6 MB / 378.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003406/0.4559, allocations: 282.9 kB / 446.4 MB, free: 100.6 MB / 378.7 MB Notification: Performance of SimCode: time 2.545e-06/0.4559, allocations: 5.719 kB / 446.4 MB, free: 100.6 MB / 378.7 MB Notification: Performance of Templates: time 0.06015/0.5161, allocations: 57.92 MB / 0.4925 GB, free: 53.59 MB / 378.7 MB " [Timeout remaining time 659] make -j1 -f Modelica_4.0.0_Modelica.Electrical.Spice3.Examples.FourInverters.makefile [Timeout 660] (rm -f Modelica_4.0.0_Modelica.Electrical.Spice3.Examples.FourInverters.pipe ; mkfifo Modelica_4.0.0_Modelica.Electrical.Spice3.Examples.FourInverters.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Electrical.Spice3.Examples.FourInverters.pipe >> ../files/Modelica_4.0.0_Modelica.Electrical.Spice3.Examples.FourInverters.sim & ./Modelica_4.0.0_Modelica.Electrical.Spice3.Examples.FourInverters -abortSlowSimulation -alarm=240 -emit_protected -lv LOG_STATS > Modelica_4.0.0_Modelica.Electrical.Spice3.Examples.FourInverters.pipe 2>&1) [Timeout 240] diffSimulationResults("Modelica_4.0.0_Modelica.Electrical.Spice3.Examples.FourInverters_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.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.411542088724673]