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.0009804/0.0009804, allocations: 85.05 kB / 21.5 MB, free: 2.988 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.001049/0.001049, allocations: 147.7 kB / 24.89 MB, free: 8.777 MB / 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.8999/0.8999, allocations: 173.4 MB / 201.6 MB, free: 8.242 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.403e-06/1.403e-06, allocations: 0 / 268.5 MB, free: 9.754 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 1.913e-05/2.053e-05, allocations: 2.312 kB / 268.5 MB, free: 9.75 MB / 250.7 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Spice3.Examples.FourInverters): time 0.01597/0.01599, allocations: 24.74 MB / 293.3 MB, free: 0.9336 MB / 266.7 MB Notification: Performance of NFInst.instExpressions: time 0.02525/0.04124, allocations: 21.6 MB / 314.9 MB, free: 11.26 MB / 298.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.004079/0.04532, allocations: 269.1 kB / 315.1 MB, free: 10.99 MB / 298.7 MB Notification: Performance of NFTyping.typeComponents: time 0.003155/0.04848, allocations: 1.754 MB / 316.9 MB, free: 9.223 MB / 298.7 MB Notification: Performance of NFTyping.typeBindings: time 0.008407/0.05688, allocations: 3.388 MB / 320.3 MB, free: 5.809 MB / 298.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.004049/0.06093, allocations: 1.598 MB / 321.9 MB, free: 4.203 MB / 298.7 MB Notification: Performance of NFFlatten.flatten: time 0.0131/0.07404, allocations: 13.24 MB / 335.1 MB, free: 6.922 MB / 314.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001263/0.0753, allocations: 0.5453 MB / 335.6 MB, free: 6.324 MB / 314.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.006444/0.08174, allocations: 5.783 MB / 341.4 MB, free: 0.5273 MB / 314.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.1133/0.1951, allocations: 1.561 MB / 343 MB, free: 31.87 MB / 314.7 MB Notification: Performance of NFPackage.collectConstants: time 0.0007982/0.1959, allocations: 134.8 kB / 343.1 MB, free: 31.87 MB / 314.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.004077/0.2, allocations: 1.309 MB / 344.4 MB, free: 31.87 MB / 314.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0006272/0.2006, allocations: 0.6159 MB / 345 MB, free: 31.87 MB / 314.7 MB Notification: Performance of NFVerifyModel.verify: time 0.003218/0.2038, allocations: 1.419 MB / 346.5 MB, free: 31.87 MB / 314.7 MB Notification: Performance of NFConvertDAE.convert: time 0.00593/0.2097, allocations: 4.647 MB / 351.1 MB, free: 31.27 MB / 314.7 MB Notification: Performance of FrontEnd - DAE generated: time 4.879e-06/0.2097, allocations: 1.969 kB / 351.1 MB, free: 31.27 MB / 314.7 MB Notification: Performance of FrontEnd: time 1.163e-06/0.2097, allocations: 0.5469 kB / 351.1 MB, free: 31.27 MB / 314.7 MB Notification: Performance of Transformations before backend: time 0.000257/0.21, allocations: 0 / 351.1 MB, free: 31.27 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.005779/0.2158, allocations: 6.775 MB / 357.9 MB, free: 27.49 MB / 314.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.81e-05/0.2158, allocations: 12.44 kB / 357.9 MB, free: 27.49 MB / 314.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0005829/0.2164, allocations: 0.5254 MB / 358.4 MB, free: 27.49 MB / 314.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.003492/0.2199, allocations: 3.917 MB / 362.3 MB, free: 25.89 MB / 314.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.194e-05/0.2199, allocations: 67.31 kB / 362.4 MB, free: 25.89 MB / 314.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001265/0.2201, allocations: 105.6 kB / 362.5 MB, free: 25.88 MB / 314.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000746/0.2208, allocations: 0.7792 MB / 363.3 MB, free: 25.79 MB / 314.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.562e-05/0.2208, allocations: 3.906 kB / 363.3 MB, free: 25.79 MB / 314.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.25e-05/0.2209, allocations: 39.91 kB / 363.3 MB, free: 25.79 MB / 314.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.219e-05/0.2209, allocations: 37.64 kB / 363.4 MB, free: 25.79 MB / 314.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0005686/0.2215, allocations: 433 kB / 363.8 MB, free: 25.76 MB / 314.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.004058/0.2255, allocations: 2.898 MB / 366.7 MB, free: 25.26 MB / 314.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0004325/0.226, allocations: 470 kB / 367.1 MB, free: 25.18 MB / 314.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004707/0.2264, allocations: 0.6332 MB / 367.8 MB, free: 25.16 MB / 314.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.04079/0.2672, allocations: 45.48 MB / 413.3 MB, free: 0.9844 MB / 330.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.000358/0.2676, allocations: 335.8 kB / 413.6 MB, free: 0.6562 MB / 330.7 MB Notification: Performance of pre-optimization done (n=85): time 2.484e-06/0.2676, allocations: 4 kB / 413.6 MB, free: 0.6523 MB / 330.7 MB Notification: Performance of matching and sorting (n=85): time 0.001081/0.2687, allocations: 0.8513 MB / 414.4 MB, free: 15.8 MB / 346.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.153e-05/0.2687, allocations: 60.06 kB / 414.5 MB, free: 15.73 MB / 346.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.003342/0.272, allocations: 5.071 MB / 419.6 MB, free: 11.76 MB / 346.7 MB Notification: Performance of collectPreVariables (initialization): time 9.376e-05/0.2721, allocations: 37.7 kB / 419.6 MB, free: 11.71 MB / 346.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0007252/0.2729, allocations: 1.386 MB / 421 MB, free: 10.64 MB / 346.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002073/0.2731, allocations: 320.1 kB / 421.3 MB, free: 10.36 MB / 346.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002919/0.2734, allocations: 337.7 kB / 421.6 MB, free: 10.05 MB / 346.7 MB Notification: Performance of setup shared object (initialization): time 7.764e-05/0.2734, allocations: 301.1 kB / 421.9 MB, free: 9.754 MB / 346.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002334/0.2737, allocations: 139.9 kB / 422.1 MB, free: 9.617 MB / 346.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0006365/0.2743, allocations: 0.8416 MB / 422.9 MB, free: 8.492 MB / 346.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001317/0.2756, allocations: 1.164 MB / 424.1 MB, free: 7.133 MB / 346.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.252e-05/0.2756, allocations: 8 kB / 424.1 MB, free: 7.125 MB / 346.7 MB Notification: Performance of matching and sorting (n=200) (initialization): time 0.001919/0.2775, allocations: 1.289 MB / 425.4 MB, free: 5.996 MB / 346.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.724e-05/0.2776, allocations: 16 kB / 425.4 MB, free: 5.98 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001338/0.2777, allocations: 46.38 kB / 425.4 MB, free: 5.938 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 3.8e-05/0.2777, allocations: 35.98 kB / 425.5 MB, free: 5.902 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0009763/0.2787, allocations: 399.6 kB / 425.9 MB, free: 5.539 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 3.461e-05/0.2788, allocations: 49.39 kB / 425.9 MB, free: 5.504 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001685/0.2804, allocations: 178.8 kB / 426.1 MB, free: 5.328 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001568/0.2806, allocations: 82.48 kB / 426.2 MB, free: 5.254 MB / 346.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.0006519/0.2813, allocations: 213.5 kB / 426.4 MB, free: 5.059 MB / 346.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0005845/0.2818, allocations: 474 kB / 426.8 MB, free: 4.602 MB / 346.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002532/0.2844, allocations: 1.465 MB / 428.3 MB, free: 3.141 MB / 346.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.215e-05/0.2844, allocations: 15.92 kB / 428.3 MB, free: 3.125 MB / 346.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.166e-06/0.2844, allocations: 7.984 kB / 428.3 MB, free: 3.117 MB / 346.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.615e-06/0.2844, allocations: 3.984 kB / 428.3 MB, free: 3.113 MB / 346.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003475/0.2879, allocations: 2.758 MB / 431.1 MB, free: 1.078 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 0.0001097/0.288, allocations: 23.98 kB / 431.1 MB, free: 1.055 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0005721/0.2885, allocations: 175.2 kB / 431.3 MB, free: 0.8867 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 5.28e-06/0.2886, allocations: 4 kB / 431.3 MB, free: 0.8828 MB / 346.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.674e-05/0.2886, allocations: 23.98 kB / 431.3 MB, free: 0.8594 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 6.693e-06/0.2886, allocations: 7.188 kB / 431.3 MB, free: 0.8555 MB / 346.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.465e-06/0.2886, allocations: 4.75 kB / 431.3 MB, free: 0.8516 MB / 346.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001691/0.2903, allocations: 1.061 MB / 432.4 MB, free: 15.79 MB / 362.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001113/0.2914, allocations: 0.7274 MB / 433.1 MB, free: 15.04 MB / 362.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0004263/0.2919, allocations: 15.28 kB / 433.1 MB, free: 15.03 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0008312/0.2927, allocations: 26.83 kB / 433.1 MB, free: 15.01 MB / 362.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001758/0.2929, allocations: 60.55 kB / 433.2 MB, free: 14.95 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.369e-05/0.293, allocations: 30.3 kB / 433.2 MB, free: 14.92 MB / 362.7 MB Notification: Performance of sorting global known variables: time 0.002282/0.2952, allocations: 2.717 MB / 435.9 MB, free: 12.58 MB / 362.7 MB Notification: Performance of sort global known variables: time 2.11e-07/0.2952, allocations: 0 / 435.9 MB, free: 12.58 MB / 362.7 MB Notification: Performance of remove unused functions: time 0.002033/0.2973, allocations: 1.092 MB / 437 MB, free: 11.48 MB / 362.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.001763/0.299, allocations: 1.449 MB / 438.5 MB, free: 10.27 MB / 362.7 MB Notification: Performance of simCode: created initialization part: time 0.001162/0.3002, allocations: 0.8446 MB / 439.3 MB, free: 9.465 MB / 362.7 MB Notification: Performance of simCode: created event and clocks part: time 0.0003355/0.3005, allocations: 77.81 kB / 439.4 MB, free: 9.387 MB / 362.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0005034/0.301, allocations: 437.8 kB / 439.8 MB, free: 8.926 MB / 362.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003543/0.3046, allocations: 1.192 MB / 441 MB, free: 7.73 MB / 362.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.009074/0.3137, allocations: 7.561 MB / 448.6 MB, free: 104 kB / 362.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000551/0.3142, allocations: 0.6895 MB / 449.3 MB, free: 15.39 MB / 378.7 MB Notification: Performance of simCode: alias equations: time 0.001696/0.3159, allocations: 0.6876 MB / 450 MB, free: 14.7 MB / 378.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001983/0.3179, allocations: 1.069 MB / 451 MB, free: 13.62 MB / 378.7 MB Notification: Performance of SimCode: time 1.804e-06/0.3179, allocations: 2.734 kB / 451 MB, free: 13.62 MB / 378.7 MB Notification: Performance of Templates: time 0.1846/0.5025, allocations: 66.26 MB / 0.5052 GB, free: 133 MB / 410.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 -s gbode -gbm=radauIIA3 -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: 3.871369539294392]