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.0009341/0.0009341, allocations: 91.5 kB / 21.19 MB, free: 3.375 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.0009096/0.0009096, allocations: 156.5 kB / 24.55 MB, free: 20 kB / 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.9001/0.9001, allocations: 177 MB / 204.8 MB, free: 5.609 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.302e-06/1.302e-06, allocations: 3.938 kB / 272.9 MB, free: 1.492 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 1.471e-05/1.601e-05, allocations: 6.25 kB / 272.9 MB, free: 1.484 MB / 250.7 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Spice3.Examples.FourInverters): time 0.1285/0.1285, allocations: 25.38 MB / 298.3 MB, free: 13.59 MB / 266.7 MB Notification: Performance of NFInst.instExpressions: time 0.02023/0.1488, allocations: 21.45 MB / 319.7 MB, free: 0.6523 MB / 266.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.00244/0.1512, allocations: 269.8 kB / 320 MB, free: 480 kB / 266.7 MB Notification: Performance of NFTyping.typeComponents: time 0.002507/0.1537, allocations: 1.681 MB / 321.7 MB, free: 15.2 MB / 282.7 MB Notification: Performance of NFTyping.typeBindings: time 0.005626/0.1593, allocations: 3.447 MB / 325.1 MB, free: 12.35 MB / 282.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.002736/0.1621, allocations: 1.629 MB / 326.7 MB, free: 11.09 MB / 282.7 MB Notification: Performance of NFFlatten.flatten: time 0.01053/0.1726, allocations: 13.5 MB / 340.3 MB, free: 13.82 MB / 298.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0008678/0.1735, allocations: 496.4 kB / 340.7 MB, free: 13.3 MB / 298.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.005314/0.1788, allocations: 5.966 MB / 346.7 MB, free: 7.32 MB / 298.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001704/0.1805, allocations: 1.557 MB / 348.3 MB, free: 5.758 MB / 298.7 MB Notification: Performance of NFPackage.collectConstants: time 0.0002918/0.1808, allocations: 132 kB / 348.4 MB, free: 5.629 MB / 298.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.002542/0.1833, allocations: 1.268 MB / 349.7 MB, free: 4.359 MB / 298.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0003693/0.1837, allocations: 0.6205 MB / 350.3 MB, free: 3.734 MB / 298.7 MB Notification: Performance of NFVerifyModel.verify: time 0.00123/0.1849, allocations: 1.413 MB / 351.7 MB, free: 2.316 MB / 298.7 MB Notification: Performance of NFConvertDAE.convert: time 0.003634/0.1886, allocations: 4.652 MB / 356.3 MB, free: 13.64 MB / 314.7 MB Notification: Performance of FrontEnd - DAE generated: time 4.959e-06/0.1886, allocations: 0 / 356.3 MB, free: 13.64 MB / 314.7 MB Notification: Performance of FrontEnd: time 1.924e-06/0.1886, allocations: 0 / 356.3 MB, free: 13.64 MB / 314.7 MB Notification: Performance of Transformations before backend: time 0.0001002/0.1887, allocations: 0 / 356.3 MB, free: 13.64 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.005282/0.194, allocations: 7.18 MB / 363.5 MB, free: 6.375 MB / 314.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.316e-05/0.194, allocations: 11.98 kB / 363.5 MB, free: 6.363 MB / 314.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0005428/0.1945, allocations: 0.8467 MB / 364.4 MB, free: 5.512 MB / 314.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.003893/0.1984, allocations: 4.823 MB / 369.2 MB, free: 0.5703 MB / 314.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.627e-05/0.1985, allocations: 66 kB / 369.3 MB, free: 0.5039 MB / 314.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001318/0.1986, allocations: 99.91 kB / 369.4 MB, free: 416 kB / 314.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001073/0.1997, allocations: 0.9346 MB / 370.3 MB, free: 15.45 MB / 330.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.552e-05/0.1997, allocations: 4 kB / 370.3 MB, free: 15.45 MB / 330.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.664e-05/0.1998, allocations: 39.94 kB / 370.3 MB, free: 15.41 MB / 330.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.618e-05/0.1998, allocations: 39.97 kB / 370.4 MB, free: 15.37 MB / 330.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001031/0.2008, allocations: 0.9219 MB / 371.3 MB, free: 14.45 MB / 330.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.005317/0.2061, allocations: 5.303 MB / 376.6 MB, free: 9.074 MB / 330.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0006377/0.2068, allocations: 0.5715 MB / 377.2 MB, free: 8.488 MB / 330.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0009777/0.2077, allocations: 0.8087 MB / 378 MB, free: 7.68 MB / 330.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.03831/0.2461, allocations: 30 MB / 408 MB, free: 8.938 MB / 362.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.000631/0.2467, allocations: 447.8 kB / 408.4 MB, free: 8.488 MB / 362.7 MB Notification: Performance of pre-optimization done (n=85): time 2.906e-06/0.2467, allocations: 0 / 408.4 MB, free: 8.488 MB / 362.7 MB Notification: Performance of matching and sorting (n=85): time 0.002006/0.2487, allocations: 1.579 MB / 410 MB, free: 6.898 MB / 362.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.705e-05/0.2487, allocations: 60.06 kB / 410.1 MB, free: 6.828 MB / 362.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.006129/0.2549, allocations: 6.005 MB / 416.1 MB, free: 0.8359 MB / 362.7 MB Notification: Performance of collectPreVariables (initialization): time 7.055e-05/0.2549, allocations: 37.7 kB / 416.1 MB, free: 0.793 MB / 362.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.002641/0.2576, allocations: 3.259 MB / 419.4 MB, free: 13.51 MB / 378.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002273/0.2578, allocations: 313.4 kB / 419.7 MB, free: 13.2 MB / 378.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0004272/0.2582, allocations: 432.6 kB / 420.1 MB, free: 12.77 MB / 378.7 MB Notification: Performance of setup shared object (initialization): time 0.0001024/0.2583, allocations: 488.7 kB / 420.6 MB, free: 12.29 MB / 378.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004184/0.2588, allocations: 235.9 kB / 420.8 MB, free: 12.06 MB / 378.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0009013/0.2597, allocations: 1.241 MB / 422 MB, free: 10.37 MB / 378.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001601/0.2613, allocations: 1.616 MB / 423.7 MB, free: 8.293 MB / 378.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.224e-05/0.2613, allocations: 8 kB / 423.7 MB, free: 8.285 MB / 378.7 MB Notification: Performance of matching and sorting (n=200) (initialization): time 0.002584/0.2639, allocations: 2.011 MB / 425.7 MB, free: 6.266 MB / 378.7 MB Notification: Performance of prepare postOptimizeDAE: time 3.042e-05/0.2639, allocations: 12.62 kB / 425.7 MB, free: 6.254 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001787/0.2641, allocations: 164 kB / 425.8 MB, free: 6.094 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 4.023e-05/0.2641, allocations: 32 kB / 425.9 MB, free: 6.062 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0009014/0.265, allocations: 359.4 kB / 426.2 MB, free: 5.711 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 3.924e-05/0.265, allocations: 43.86 kB / 426.3 MB, free: 5.668 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001237/0.2663, allocations: 191.8 kB / 426.5 MB, free: 5.48 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001647/0.2664, allocations: 124 kB / 426.6 MB, free: 5.359 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.0005904/0.267, allocations: 267.9 kB / 426.8 MB, free: 5.086 MB / 378.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0006107/0.2676, allocations: 0.7687 MB / 427.6 MB, free: 4.312 MB / 378.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002876/0.2705, allocations: 1.923 MB / 429.5 MB, free: 2.391 MB / 378.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.368e-06/0.2705, allocations: 8 kB / 429.5 MB, free: 2.383 MB / 378.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.177e-06/0.2705, allocations: 0 / 429.5 MB, free: 2.383 MB / 378.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.855e-06/0.2705, allocations: 3.984 kB / 429.5 MB, free: 2.379 MB / 378.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.1107/0.3812, allocations: 3.694 MB / 433.2 MB, free: 110.7 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 0.0001223/0.3814, allocations: 137.8 kB / 433.4 MB, free: 110.7 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004346/0.3818, allocations: 144.5 kB / 433.5 MB, free: 110.7 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 9.337e-06/0.3818, allocations: 4.719 kB / 433.5 MB, free: 110.7 MB / 378.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.565e-05/0.3819, allocations: 61.58 kB / 433.6 MB, free: 110.7 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 5.791e-06/0.3819, allocations: 3.562 kB / 433.6 MB, free: 110.7 MB / 378.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.124e-06/0.3819, allocations: 6.812 kB / 433.6 MB, free: 110.7 MB / 378.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002004/0.3839, allocations: 1.847 MB / 435.4 MB, free: 110.4 MB / 378.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0009797/0.3849, allocations: 0.8089 MB / 436.2 MB, free: 110.1 MB / 378.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0003653/0.3852, allocations: 18.98 kB / 436.3 MB, free: 110.1 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0005604/0.3858, allocations: 27.14 kB / 436.3 MB, free: 110.1 MB / 378.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001831/0.386, allocations: 97.88 kB / 436.4 MB, free: 110.1 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.000101/0.3861, allocations: 71.64 kB / 436.5 MB, free: 110.1 MB / 378.7 MB Notification: Performance of sorting global known variables: time 0.003429/0.3895, allocations: 3.229 MB / 439.7 MB, free: 109.8 MB / 378.7 MB Notification: Performance of sort global known variables: time 2.1e-07/0.3895, allocations: 0.9688 kB / 439.7 MB, free: 109.8 MB / 378.7 MB Notification: Performance of remove unused functions: time 0.001755/0.3913, allocations: 1.09 MB / 440.8 MB, free: 109.8 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.002434/0.3937, allocations: 1.29 MB / 442.1 MB, free: 109.7 MB / 378.7 MB Notification: Performance of simCode: created initialization part: time 0.001698/0.3954, allocations: 1.155 MB / 443.2 MB, free: 109.4 MB / 378.7 MB Notification: Performance of simCode: created event and clocks part: time 3.677e-06/0.3954, allocations: 1.625 kB / 443.2 MB, free: 109.4 MB / 378.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0006863/0.3961, allocations: 0.6408 MB / 443.9 MB, free: 109.1 MB / 378.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.004116/0.4002, allocations: 1.228 MB / 445.1 MB, free: 109 MB / 378.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.005716/0.4059, allocations: 7.782 MB / 452.9 MB, free: 105.3 MB / 378.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003507/0.4063, allocations: 0.6917 MB / 453.6 MB, free: 105.1 MB / 378.7 MB Notification: Performance of simCode: alias equations: time 0.001071/0.4074, allocations: 0.6837 MB / 454.2 MB, free: 104.6 MB / 378.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002167/0.4076, allocations: 283.9 kB / 454.5 MB, free: 104.3 MB / 378.7 MB Notification: Performance of SimCode: time 1.463e-06/0.4076, allocations: 0 / 454.5 MB, free: 104.3 MB / 378.7 MB Notification: Performance of Templates: time 0.06114/0.4687, allocations: 67.79 MB / 0.5101 GB, free: 38.82 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.053080027922988]