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.00199/0.00199, allocations: 119.1 kB / 20.45 MB, free: 1.176 MB / 14.72 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.002482/0.002482, allocations: 207.3 kB / 23.72 MB, free: 4.391 MB / 14.72 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 1.465/1.465, allocations: 230.5 MB / 257.4 MB, free: 7.781 MB / 206.1 MB " [Timeout remaining time 178] 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 0.002079/0.002079, allocations: 67.91 kB / 378.2 MB, free: 2.285 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2324/0.2345, allocations: 53.41 MB / 431.6 MB, free: 6.496 MB / 334.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Spice3.Examples.FourInverters): time 0.02512/0.2596, allocations: 22.23 MB / 453.9 MB, free: 188 kB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.03121/0.2908, allocations: 19.56 MB / 473.4 MB, free: 12.54 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.004703/0.2955, allocations: 265.1 kB / 473.7 MB, free: 12.28 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 0.005071/0.3006, allocations: 1.681 MB / 475.4 MB, free: 10.59 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 0.01211/0.3127, allocations: 3.314 MB / 478.7 MB, free: 7.254 MB / 382.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.00565/0.3183, allocations: 1.597 MB / 480.3 MB, free: 5.656 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 0.02251/0.3408, allocations: 12.91 MB / 493.2 MB, free: 8.707 MB / 398.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.00192/0.3428, allocations: 0.4887 MB / 493.7 MB, free: 8.184 MB / 398.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.004806/0.3476, allocations: 2.205 MB / 495.9 MB, free: 5.969 MB / 398.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.004152/0.3517, allocations: 2.018 MB / 497.9 MB, free: 3.938 MB / 398.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0005927/0.3523, allocations: 132 kB / 498 MB, free: 3.809 MB / 398.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.004364/0.3567, allocations: 1.264 MB / 499.3 MB, free: 2.543 MB / 398.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0006723/0.3574, allocations: 0.601 MB / 499.9 MB, free: 1.938 MB / 398.1 MB Notification: Performance of NFVerifyModel.verify: time 0.002595/0.3599, allocations: 1.929 MB / 0.4901 GB, free: 15.99 MB / 414.1 MB Notification: Performance of NFConvertDAE.convert: time 0.009174/0.3691, allocations: 6.741 MB / 0.4966 GB, free: 9.223 MB / 414.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.058e-06/0.3691, allocations: 0 / 0.4966 GB, free: 9.223 MB / 414.1 MB Notification: Performance of FrontEnd: time 1.703e-06/0.3691, allocations: 0 / 0.4966 GB, free: 9.223 MB / 414.1 MB Notification: Performance of Transformations before backend: time 0.0001073/0.3692, allocations: 0 / 0.4966 GB, free: 9.223 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.01104/0.3803, allocations: 6.859 MB / 0.5033 GB, free: 2.281 MB / 414.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.002e-05/0.3803, allocations: 11.98 kB / 0.5034 GB, free: 2.27 MB / 414.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001054/0.3814, allocations: 0.7803 MB / 0.5041 GB, free: 1.484 MB / 414.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.00783/0.3892, allocations: 4.371 MB / 0.5084 GB, free: 12.99 MB / 430.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 7.879e-05/0.3893, allocations: 70 kB / 0.5084 GB, free: 12.92 MB / 430.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002387/0.3895, allocations: 99.91 kB / 0.5085 GB, free: 12.82 MB / 430.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002575/0.3921, allocations: 1.313 MB / 0.5098 GB, free: 11.5 MB / 430.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.321e-05/0.3921, allocations: 0 / 0.5098 GB, free: 11.5 MB / 430.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001206/0.3922, allocations: 36 kB / 0.5099 GB, free: 11.46 MB / 430.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.258e-05/0.3923, allocations: 39.97 kB / 0.5099 GB, free: 11.42 MB / 430.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002782/0.3951, allocations: 1.48 MB / 0.5113 GB, free: 9.938 MB / 430.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01024/0.4053, allocations: 5.135 MB / 0.5164 GB, free: 4.742 MB / 430.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001867/0.4072, allocations: 0.864 MB / 0.5172 GB, free: 3.867 MB / 430.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001715/0.4089, allocations: 1.067 MB / 0.5182 GB, free: 2.801 MB / 430.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.2425/0.6514, allocations: 27.06 MB / 0.5447 GB, free: 102.8 MB / 446.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0008524/0.6522, allocations: 0.5549 MB / 0.5452 GB, free: 102.6 MB / 446.1 MB Notification: Performance of pre-optimization done (n=85): time 2.815e-06/0.6522, allocations: 0 / 0.5452 GB, free: 102.6 MB / 446.1 MB Notification: Performance of matching and sorting (n=85): time 0.002649/0.6549, allocations: 1.92 MB / 0.5471 GB, free: 101.8 MB / 446.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.547e-05/0.6549, allocations: 60.06 kB / 0.5471 GB, free: 101.7 MB / 446.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.004791/0.6597, allocations: 5.634 MB / 0.5526 GB, free: 96.45 MB / 446.1 MB Notification: Performance of collectPreVariables (initialization): time 7.698e-05/0.6598, allocations: 41.69 kB / 0.5527 GB, free: 96.4 MB / 446.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0016/0.6614, allocations: 2.959 MB / 0.5556 GB, free: 93.52 MB / 446.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001792/0.6616, allocations: 315.7 kB / 0.5559 GB, free: 93.25 MB / 446.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0003854/0.662, allocations: 423 kB / 0.5563 GB, free: 92.83 MB / 446.1 MB Notification: Performance of setup shared object (initialization): time 3.777e-05/0.662, allocations: 305.1 kB / 0.5566 GB, free: 92.53 MB / 446.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0006958/0.6627, allocations: 399.8 kB / 0.557 GB, free: 92.14 MB / 446.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0008626/0.6636, allocations: 1.091 MB / 0.558 GB, free: 90.73 MB / 446.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001658/0.6652, allocations: 1.617 MB / 0.5596 GB, free: 88.84 MB / 446.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.041e-05/0.6652, allocations: 8 kB / 0.5596 GB, free: 88.83 MB / 446.1 MB Notification: Performance of matching and sorting (n=200) (initialization): time 0.002698/0.6679, allocations: 2.234 MB / 0.5618 GB, free: 86.61 MB / 446.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.497e-05/0.6679, allocations: 15.94 kB / 0.5618 GB, free: 86.59 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001646/0.6681, allocations: 164 kB / 0.562 GB, free: 86.43 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 3.597e-05/0.6681, allocations: 32 kB / 0.562 GB, free: 86.4 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001054/0.6692, allocations: 363.2 kB / 0.5623 GB, free: 86.05 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.622e-05/0.6692, allocations: 50.42 kB / 0.5624 GB, free: 86 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001579/0.6708, allocations: 193.2 kB / 0.5626 GB, free: 85.85 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001481/0.671, allocations: 124 kB / 0.5627 GB, free: 85.73 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.001026/0.672, allocations: 0.7111 MB / 0.5634 GB, free: 85.03 MB / 446.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0004948/0.6725, allocations: 0.753 MB / 0.5641 GB, free: 84.27 MB / 446.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003429/0.6759, allocations: 2.155 MB / 0.5662 GB, free: 82.21 MB / 446.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.357e-06/0.6759, allocations: 11.47 kB / 0.5662 GB, free: 82.21 MB / 446.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.52e-06/0.6759, allocations: 0 / 0.5662 GB, free: 82.21 MB / 446.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.051e-06/0.6759, allocations: 3.984 kB / 0.5662 GB, free: 82.2 MB / 446.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.004262/0.6802, allocations: 3.368 MB / 0.5695 GB, free: 78.82 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 0.0001473/0.6803, allocations: 140 kB / 0.5697 GB, free: 78.69 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0006921/0.681, allocations: 147.9 kB / 0.5698 GB, free: 78.54 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 5.981e-06/0.681, allocations: 4 kB / 0.5698 GB, free: 78.54 MB / 446.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.481e-05/0.6811, allocations: 63.98 kB / 0.5699 GB, free: 78.48 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.008e-06/0.6811, allocations: 0 / 0.5699 GB, free: 78.48 MB / 446.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.673e-06/0.6811, allocations: 4 kB / 0.5699 GB, free: 78.47 MB / 446.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002631/0.6837, allocations: 2.194 MB / 0.572 GB, free: 76.25 MB / 446.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001327/0.6851, allocations: 0.7726 MB / 0.5728 GB, free: 75.48 MB / 446.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0005389/0.6856, allocations: 23.69 kB / 0.5728 GB, free: 75.46 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001121/0.6867, allocations: 35.95 kB / 0.5728 GB, free: 75.42 MB / 446.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001741/0.6869, allocations: 100.6 kB / 0.5729 GB, free: 75.32 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.488e-05/0.687, allocations: 71.98 kB / 0.573 GB, free: 75.25 MB / 446.1 MB Notification: Performance of sorting global known variables: time 0.003533/0.6905, allocations: 3.604 MB / 0.5765 GB, free: 71.68 MB / 446.1 MB Notification: Performance of sort global known variables: time 8e-08/0.6905, allocations: 0 / 0.5765 GB, free: 71.68 MB / 446.1 MB Notification: Performance of remove unused functions: time 0.002068/0.6926, allocations: 1.088 MB / 0.5776 GB, free: 70.66 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.001391/0.694, allocations: 1.187 MB / 0.5787 GB, free: 69.53 MB / 446.1 MB Notification: Performance of simCode: created initialization part: time 0.002/0.696, allocations: 1.366 MB / 0.5801 GB, free: 68.12 MB / 446.1 MB Notification: Performance of simCode: created event and clocks part: time 2.946e-06/0.696, allocations: 0 / 0.5801 GB, free: 68.12 MB / 446.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0008598/0.6969, allocations: 0.732 MB / 0.5808 GB, free: 67.34 MB / 446.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.004291/0.7011, allocations: 1.182 MB / 0.5819 GB, free: 66.16 MB / 446.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.008647/0.7098, allocations: 8.264 MB / 0.59 GB, free: 57.87 MB / 446.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001232/0.711, allocations: 2.102 MB / 0.5921 GB, free: 55.73 MB / 446.1 MB Notification: Performance of simCode: alias equations: time 0.001842/0.7129, allocations: 0.6846 MB / 0.5927 GB, free: 55.05 MB / 446.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003479/0.7132, allocations: 287.4 kB / 0.593 GB, free: 54.77 MB / 446.1 MB Notification: Performance of SimCode: time 1.653e-06/0.7132, allocations: 0 / 0.593 GB, free: 54.77 MB / 446.1 MB Notification: Performance of Templates: time 0.08826/0.8015, allocations: 65.55 MB / 0.657 GB, free: 5.84 MB / 462.1 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=480 -emit_protected -lv LOG_STATS > Modelica_trunk_Modelica.Electrical.Spice3.Examples.FourInverters.pipe 2>&1) [Timeout 480] 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","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_trunk_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.690457029268146]