Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.1.0_Modelica.Electrical.Spice3.Examples.FourInverters.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo): time 0.001368/0.001368, allocations: 111.1 kB / 20.44 MB, free: 1.184 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo): time 0.001511/0.001511, allocations: 210.6 kB / 23.73 MB, free: 4.387 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo): time 1.471/1.471, allocations: 230.6 MB / 257.5 MB, free: 7.797 MB / 206.1 MB " [Timeout remaining time 178] Using package Modelica with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo) Using package Complex with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo) Using package ModelicaServices with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.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.1.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.1.0_Modelica.Electrical.Spice3.Examples.FourInverters") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 0.001543/0.001543, allocations: 47.92 kB / 378.2 MB, free: 2.48 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2472/0.2487, allocations: 53.37 MB / 431.6 MB, free: 6.723 MB / 334.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Spice3.Examples.FourInverters): time 0.02428/0.273, allocations: 22.23 MB / 453.8 MB, free: 416 kB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.02814/0.3011, allocations: 19.56 MB / 473.4 MB, free: 12.77 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.004369/0.3055, allocations: 269.1 kB / 473.6 MB, free: 12.5 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 0.004568/0.3101, allocations: 1.673 MB / 475.3 MB, free: 10.82 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0109/0.321, allocations: 3.314 MB / 478.6 MB, free: 7.484 MB / 382.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.005165/0.3262, allocations: 1.601 MB / 480.2 MB, free: 5.883 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 0.02069/0.3468, allocations: 12.9 MB / 493.1 MB, free: 8.941 MB / 398.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001361/0.3482, allocations: 0.4887 MB / 493.6 MB, free: 8.418 MB / 398.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.003712/0.3519, allocations: 2.209 MB / 495.8 MB, free: 6.199 MB / 398.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.003814/0.3557, allocations: 2.018 MB / 497.8 MB, free: 4.168 MB / 398.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0007655/0.3565, allocations: 136 kB / 498 MB, free: 4.035 MB / 398.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.004737/0.3612, allocations: 1.257 MB / 499.2 MB, free: 2.777 MB / 398.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0008438/0.3621, allocations: 0.601 MB / 499.8 MB, free: 2.172 MB / 398.1 MB Notification: Performance of NFVerifyModel.verify: time 0.002739/0.3648, allocations: 1.925 MB / 0.49 GB, free: 240 kB / 398.1 MB Notification: Performance of NFConvertDAE.convert: time 0.008447/0.3733, allocations: 6.749 MB / 0.4966 GB, free: 9.453 MB / 414.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.418e-06/0.3733, allocations: 4 kB / 0.4966 GB, free: 9.449 MB / 414.1 MB Notification: Performance of FrontEnd: time 1.403e-06/0.3733, allocations: 0 / 0.4966 GB, free: 9.449 MB / 414.1 MB Notification: Performance of Transformations before backend: time 9.958e-05/0.3734, allocations: 0 / 0.4966 GB, free: 9.449 MB / 414.1 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.01051/0.3839, allocations: 6.851 MB / 0.5033 GB, free: 2.516 MB / 414.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.929e-05/0.3839, allocations: 8.031 kB / 0.5033 GB, free: 2.508 MB / 414.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.000992/0.3849, allocations: 0.7764 MB / 0.504 GB, free: 1.727 MB / 414.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.007553/0.3925, allocations: 4.375 MB / 0.5083 GB, free: 13.23 MB / 430.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 8.61e-05/0.3925, allocations: 66 kB / 0.5084 GB, free: 13.16 MB / 430.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002354/0.3928, allocations: 107.8 kB / 0.5085 GB, free: 13.06 MB / 430.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002493/0.3953, allocations: 1.309 MB / 0.5098 GB, free: 11.73 MB / 430.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.271e-05/0.3953, allocations: 0 / 0.5098 GB, free: 11.73 MB / 430.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001152/0.3954, allocations: 36 kB / 0.5098 GB, free: 11.7 MB / 430.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.987e-05/0.3954, allocations: 39.97 kB / 0.5098 GB, free: 11.66 MB / 430.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002664/0.3981, allocations: 1.488 MB / 0.5113 GB, free: 10.17 MB / 430.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.009991/0.4081, allocations: 5.124 MB / 0.5163 GB, free: 4.984 MB / 430.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001762/0.4099, allocations: 0.8757 MB / 0.5171 GB, free: 4.094 MB / 430.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001643/0.4115, allocations: 1.056 MB / 0.5182 GB, free: 3.039 MB / 430.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.2484/0.6599, allocations: 27.06 MB / 0.5446 GB, free: 103.2 MB / 446.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0008906/0.6608, allocations: 0.5628 MB / 0.5451 GB, free: 103.1 MB / 446.1 MB Notification: Performance of pre-optimization done (n=85): time 3.156e-06/0.6608, allocations: 0 / 0.5451 GB, free: 103.1 MB / 446.1 MB Notification: Performance of matching and sorting (n=85): time 0.002622/0.6634, allocations: 1.911 MB / 0.547 GB, free: 102.3 MB / 446.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.344e-05/0.6634, allocations: 63.53 kB / 0.5471 GB, free: 102.3 MB / 446.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.005024/0.6684, allocations: 5.628 MB / 0.5526 GB, free: 96.95 MB / 446.1 MB Notification: Performance of collectPreVariables (initialization): time 8.775e-05/0.6685, allocations: 41.7 kB / 0.5526 GB, free: 96.9 MB / 446.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.001648/0.6702, allocations: 2.973 MB / 0.5555 GB, free: 94.01 MB / 446.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001862/0.6704, allocations: 310.6 kB / 0.5558 GB, free: 93.75 MB / 446.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0004013/0.6708, allocations: 423 kB / 0.5562 GB, free: 93.33 MB / 446.1 MB Notification: Performance of setup shared object (initialization): time 3.77e-05/0.6708, allocations: 305.1 kB / 0.5565 GB, free: 93.03 MB / 446.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0006812/0.6715, allocations: 403.8 kB / 0.5569 GB, free: 92.63 MB / 446.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0009087/0.6724, allocations: 1.088 MB / 0.558 GB, free: 91.23 MB / 446.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001633/0.674, allocations: 1.615 MB / 0.5595 GB, free: 89.32 MB / 446.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.014e-05/0.674, allocations: 9.062 kB / 0.5595 GB, free: 89.31 MB / 446.1 MB Notification: Performance of matching and sorting (n=200) (initialization): time 0.002821/0.6769, allocations: 2.233 MB / 0.5617 GB, free: 87.1 MB / 446.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.521e-05/0.6769, allocations: 22.47 kB / 0.5617 GB, free: 87.08 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.000163/0.677, allocations: 167.9 kB / 0.5619 GB, free: 86.92 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 3.23e-05/0.6771, allocations: 32 kB / 0.5619 GB, free: 86.89 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001036/0.6781, allocations: 359.4 kB / 0.5623 GB, free: 86.54 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.715e-05/0.6781, allocations: 47.8 kB / 0.5623 GB, free: 86.49 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001664/0.6798, allocations: 195.2 kB / 0.5625 GB, free: 86.34 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001461/0.6799, allocations: 120 kB / 0.5626 GB, free: 86.23 MB / 446.1 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.001011/0.681, allocations: 0.7159 MB / 0.5633 GB, free: 85.52 MB / 446.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0004697/0.6814, allocations: 0.753 MB / 0.5641 GB, free: 84.76 MB / 446.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003411/0.6848, allocations: 2.156 MB / 0.5662 GB, free: 82.73 MB / 446.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.546e-06/0.6848, allocations: 7.312 kB / 0.5662 GB, free: 82.72 MB / 446.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.18e-06/0.6849, allocations: 4 kB / 0.5662 GB, free: 82.72 MB / 446.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.442e-06/0.6849, allocations: 3.984 kB / 0.5662 GB, free: 82.71 MB / 446.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.00444/0.6893, allocations: 3.358 MB / 0.5695 GB, free: 79.34 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 0.0001481/0.6894, allocations: 140 kB / 0.5696 GB, free: 79.2 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0006821/0.6901, allocations: 155.8 kB / 0.5697 GB, free: 79.05 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 6.713e-06/0.6901, allocations: 4 kB / 0.5697 GB, free: 79.04 MB / 446.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.301e-05/0.6902, allocations: 59.98 kB / 0.5698 GB, free: 78.98 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.509e-06/0.6902, allocations: 7.828 kB / 0.5698 GB, free: 78.98 MB / 446.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.563e-06/0.6902, allocations: 0 / 0.5698 GB, free: 78.98 MB / 446.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.00255/0.6928, allocations: 2.197 MB / 0.5719 GB, free: 76.76 MB / 446.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001505/0.6943, allocations: 0.7743 MB / 0.5727 GB, free: 75.98 MB / 446.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0005151/0.6948, allocations: 19.98 kB / 0.5727 GB, free: 75.96 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001187/0.696, allocations: 35.97 kB / 0.5728 GB, free: 75.93 MB / 446.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002051/0.6962, allocations: 96.55 kB / 0.5728 GB, free: 75.84 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.85e-05/0.6963, allocations: 68 kB / 0.5729 GB, free: 75.77 MB / 446.1 MB Notification: Performance of sorting global known variables: time 0.003804/0.7001, allocations: 3.608 MB / 0.5764 GB, free: 72.19 MB / 446.1 MB Notification: Performance of sort global known variables: time 1.51e-07/0.7001, allocations: 0 / 0.5764 GB, free: 72.19 MB / 446.1 MB Notification: Performance of remove unused functions: time 0.001797/0.7019, allocations: 1.086 MB / 0.5775 GB, free: 71.17 MB / 446.1 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.001273/0.7032, allocations: 1.179 MB / 0.5786 GB, free: 70.05 MB / 446.1 MB Notification: Performance of simCode: created initialization part: time 0.001916/0.7051, allocations: 1.374 MB / 0.58 GB, free: 68.63 MB / 446.1 MB Notification: Performance of simCode: created event and clocks part: time 2.184e-06/0.7051, allocations: 0 / 0.58 GB, free: 68.63 MB / 446.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0008728/0.7059, allocations: 0.7358 MB / 0.5807 GB, free: 67.85 MB / 446.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003906/0.7098, allocations: 1.176 MB / 0.5819 GB, free: 66.67 MB / 446.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.008944/0.7188, allocations: 8.263 MB / 0.5899 GB, free: 58.37 MB / 446.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001306/0.7201, allocations: 2.105 MB / 0.592 GB, free: 56.23 MB / 446.1 MB Notification: Performance of simCode: alias equations: time 0.001936/0.722, allocations: 0.6846 MB / 0.5927 GB, free: 55.55 MB / 446.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003166/0.7224, allocations: 283.3 kB / 0.5929 GB, free: 55.27 MB / 446.1 MB Notification: Performance of SimCode: time 9.02e-07/0.7224, allocations: 0 / 0.5929 GB, free: 55.27 MB / 446.1 MB Notification: Performance of Templates: time 0.1401/0.8625, allocations: 65.57 MB / 0.657 GB, free: 6.555 MB / 462.1 MB " [Timeout remaining time 659] make -j1 -f Modelica_4.1.0_Modelica.Electrical.Spice3.Examples.FourInverters.makefile [Timeout 660] (rm -f Modelica_4.1.0_Modelica.Electrical.Spice3.Examples.FourInverters.pipe ; mkfifo Modelica_4.1.0_Modelica.Electrical.Spice3.Examples.FourInverters.pipe ; head -c 1048576 < Modelica_4.1.0_Modelica.Electrical.Spice3.Examples.FourInverters.pipe >> ../files/Modelica_4.1.0_Modelica.Electrical.Spice3.Examples.FourInverters.sim & ./Modelica_4.1.0_Modelica.Electrical.Spice3.Examples.FourInverters -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_4.1.0_Modelica.Electrical.Spice3.Examples.FourInverters.pipe 2>&1) [Timeout 480] diffSimulationResults("Modelica_4.1.0_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","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_4.1.0_Modelica.Electrical.Spice3.Examples.FourInverters.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) [Timeout 660] "" [Timeout remaining time 660] Reference file matches [Calling sys.exit(0), Time elapsed: 6.888198988512158]