Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_3.2.3_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.001091/0.001091, allocations: 84.3 kB / 22.21 MB, free: 2.285 MB / 18.57 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.001326/0.001326, allocations: 170.6 kB / 25.6 MB, free: 8.477 MB / 18.57 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.005/1.005, allocations: 158.6 MB / 187.5 MB, free: 2.762 MB / 170.7 MB " [Timeout remaining time 179] Using package Modelica with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+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_3.2.3_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_3.2.3_Modelica.Electrical.Spice3.Examples.FourInverters") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 1.754e-06/1.754e-06, allocations: 0 / 251.5 MB, free: 7.238 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 2.095e-05/2.27e-05, allocations: 2.312 kB / 251.5 MB, free: 7.234 MB / 234.7 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Spice3.Examples.FourInverters): time 0.02071/0.02074, allocations: 23.36 MB / 274.8 MB, free: 15.78 MB / 266.7 MB Notification: Performance of NFInst.instExpressions: time 0.02149/0.04223, allocations: 20.05 MB / 294.9 MB, free: 11.64 MB / 282.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.004381/0.04661, allocations: 273 kB / 295.2 MB, free: 11.38 MB / 282.7 MB Notification: Performance of NFTyping.typeComponents: time 0.003765/0.05038, allocations: 1.636 MB / 296.8 MB, free: 9.727 MB / 282.7 MB Notification: Performance of NFTyping.typeBindings: time 0.008852/0.05923, allocations: 3.39 MB / 300.2 MB, free: 6.309 MB / 282.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.003919/0.06315, allocations: 1.573 MB / 301.8 MB, free: 4.727 MB / 282.7 MB Notification: Performance of NFFlatten.flatten: time 0.0143/0.07745, allocations: 13.06 MB / 314.8 MB, free: 7.617 MB / 298.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001275/0.07873, allocations: 0.4927 MB / 315.3 MB, free: 7.094 MB / 298.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.006309/0.08503, allocations: 5.549 MB / 320.9 MB, free: 1.535 MB / 298.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001843/0.08688, allocations: 1.507 MB / 322.4 MB, free: 24 kB / 298.7 MB Notification: Performance of NFPackage.collectConstants: time 0.0002634/0.08714, allocations: 132 kB / 322.5 MB, free: 15.89 MB / 314.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.002721/0.08986, allocations: 1.148 MB / 323.6 MB, free: 14.75 MB / 314.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0003312/0.09019, allocations: 0.6205 MB / 324.3 MB, free: 14.12 MB / 314.7 MB Notification: Performance of NFVerifyModel.verify: time 0.001526/0.09172, allocations: 1.425 MB / 325.7 MB, free: 12.69 MB / 314.7 MB Notification: Performance of NFConvertDAE.convert: time 0.008263/0.09998, allocations: 4.687 MB / 330.4 MB, free: 7.984 MB / 314.7 MB Notification: Performance of FrontEnd - DAE generated: time 6.883e-06/0.09999, allocations: 0 / 330.4 MB, free: 7.984 MB / 314.7 MB Notification: Performance of FrontEnd: time 2.285e-06/0.09999, allocations: 0 / 330.4 MB, free: 7.984 MB / 314.7 MB Notification: Performance of Transformations before backend: time 0.000247/0.1002, allocations: 0 / 330.4 MB, free: 7.984 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.01161/0.1118, allocations: 7.299 MB / 337.7 MB, free: 0.6016 MB / 314.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.287e-05/0.1119, allocations: 11.98 kB / 337.7 MB, free: 0.5898 MB / 314.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0008259/0.1127, allocations: 0.8545 MB / 338.5 MB, free: 15.73 MB / 330.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.004635/0.1173, allocations: 4.859 MB / 343.4 MB, free: 10.75 MB / 330.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.361e-05/0.1174, allocations: 70 kB / 343.5 MB, free: 10.68 MB / 330.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001529/0.1175, allocations: 91.95 kB / 343.6 MB, free: 10.59 MB / 330.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0009474/0.1185, allocations: 0.8408 MB / 344.4 MB, free: 9.73 MB / 330.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.548e-05/0.1185, allocations: 0 / 344.4 MB, free: 9.73 MB / 330.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.896e-05/0.1186, allocations: 35.98 kB / 344.4 MB, free: 9.695 MB / 330.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.891e-05/0.1186, allocations: 39.98 kB / 344.5 MB, free: 9.656 MB / 330.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0008023/0.1194, allocations: 0.8114 MB / 345.3 MB, free: 8.836 MB / 330.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.005582/0.125, allocations: 4.325 MB / 349.6 MB, free: 4.445 MB / 330.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0005273/0.1255, allocations: 0.5012 MB / 350.1 MB, free: 3.93 MB / 330.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0005719/0.1261, allocations: 0.7228 MB / 350.8 MB, free: 3.211 MB / 330.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.1402/0.2663, allocations: 30.16 MB / 381 MB, free: 72.68 MB / 330.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003715/0.2666, allocations: 422.5 kB / 381.4 MB, free: 72.28 MB / 330.7 MB Notification: Performance of pre-optimization done (n=85): time 2.625e-06/0.2667, allocations: 0 / 381.4 MB, free: 72.28 MB / 330.7 MB Notification: Performance of matching and sorting (n=85): time 0.001203/0.2679, allocations: 1.492 MB / 382.9 MB, free: 71.18 MB / 330.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.582e-05/0.2679, allocations: 68.05 kB / 383 MB, free: 71.1 MB / 330.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.003351/0.2712, allocations: 5.984 MB / 388.9 MB, free: 66.24 MB / 330.7 MB Notification: Performance of collectPreVariables (initialization): time 6.666e-05/0.2713, allocations: 41.7 kB / 389 MB, free: 66.2 MB / 330.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.001445/0.2727, allocations: 3.294 MB / 392.3 MB, free: 63.3 MB / 330.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.000182/0.2729, allocations: 309.4 kB / 392.6 MB, free: 63.05 MB / 330.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002604/0.2732, allocations: 437.8 kB / 393 MB, free: 62.65 MB / 330.7 MB Notification: Performance of setup shared object (initialization): time 3.785e-05/0.2732, allocations: 480.8 kB / 393.5 MB, free: 62.18 MB / 330.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001902/0.2734, allocations: 191.9 kB / 393.7 MB, free: 61.99 MB / 330.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003932/0.2738, allocations: 1.199 MB / 394.9 MB, free: 60.38 MB / 330.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0008032/0.2746, allocations: 1.563 MB / 396.4 MB, free: 58.54 MB / 330.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 9.207e-06/0.2746, allocations: 11.5 kB / 396.4 MB, free: 58.54 MB / 330.7 MB Notification: Performance of matching and sorting (n=200) (initialization): time 0.001579/0.2762, allocations: 1.917 MB / 398.3 MB, free: 56.79 MB / 330.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.305e-05/0.2762, allocations: 16 kB / 398.4 MB, free: 56.77 MB / 330.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.803e-05/0.2763, allocations: 160 kB / 398.5 MB, free: 56.61 MB / 330.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.878e-05/0.2763, allocations: 32 kB / 398.6 MB, free: 56.58 MB / 330.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005675/0.2769, allocations: 363.2 kB / 398.9 MB, free: 56.26 MB / 330.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.824e-05/0.2769, allocations: 50.94 kB / 399 MB, free: 56.22 MB / 330.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0009393/0.2779, allocations: 177.8 kB / 399.1 MB, free: 56.09 MB / 330.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001104/0.278, allocations: 116 kB / 399.2 MB, free: 55.97 MB / 330.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.0005165/0.2785, allocations: 263.8 kB / 399.5 MB, free: 55.75 MB / 330.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003956/0.2789, allocations: 0.7842 MB / 400.3 MB, free: 54.96 MB / 330.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001871/0.2808, allocations: 1.873 MB / 402.2 MB, free: 53.17 MB / 330.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.622e-06/0.2808, allocations: 8 kB / 402.2 MB, free: 53.16 MB / 330.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.515e-06/0.2808, allocations: 0 / 402.2 MB, free: 53.16 MB / 330.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.603e-06/0.2808, allocations: 3.984 kB / 402.2 MB, free: 53.16 MB / 330.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002956/0.2837, allocations: 3.812 MB / 406 MB, free: 50.08 MB / 330.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.84e-05/0.2838, allocations: 144 kB / 406.1 MB, free: 49.94 MB / 330.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003353/0.2842, allocations: 135.4 kB / 406.3 MB, free: 49.81 MB / 330.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.158e-06/0.2842, allocations: 4.062 kB / 406.3 MB, free: 49.8 MB / 330.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.042e-05/0.2842, allocations: 67.98 kB / 406.3 MB, free: 49.74 MB / 330.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.787e-06/0.2842, allocations: 4 kB / 406.3 MB, free: 49.73 MB / 330.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.943e-06/0.2842, allocations: 0 / 406.3 MB, free: 49.73 MB / 330.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001204/0.2854, allocations: 1.768 MB / 408.1 MB, free: 47.95 MB / 330.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0007535/0.2862, allocations: 0.8167 MB / 408.9 MB, free: 47.14 MB / 330.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0003067/0.2865, allocations: 12 kB / 408.9 MB, free: 47.12 MB / 330.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0005912/0.2871, allocations: 31.97 kB / 409 MB, free: 47.09 MB / 330.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001422/0.2872, allocations: 96.56 kB / 409.1 MB, free: 47 MB / 330.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.407e-05/0.2873, allocations: 65.48 kB / 409.1 MB, free: 46.94 MB / 330.7 MB Notification: Performance of sorting global known variables: time 0.001775/0.2891, allocations: 3.042 MB / 412.2 MB, free: 44.28 MB / 330.7 MB Notification: Performance of sort global known variables: time 6e-08/0.2891, allocations: 0 / 412.2 MB, free: 44.28 MB / 330.7 MB Notification: Performance of remove unused functions: time 0.00144/0.2905, allocations: 1.094 MB / 413.3 MB, free: 43.25 MB / 330.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.001266/0.2918, allocations: 1.448 MB / 414.7 MB, free: 42.09 MB / 330.7 MB Notification: Performance of simCode: created initialization part: time 0.0008601/0.2926, allocations: 1.092 MB / 415.8 MB, free: 41.04 MB / 330.7 MB Notification: Performance of simCode: created event and clocks part: time 2.705e-06/0.2926, allocations: 2.188 kB / 415.8 MB, free: 41.04 MB / 330.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0003394/0.293, allocations: 0.6048 MB / 416.4 MB, free: 40.39 MB / 330.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001838/0.2948, allocations: 1.04 MB / 417.4 MB, free: 39.36 MB / 330.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.005596/0.3004, allocations: 7.821 MB / 425.3 MB, free: 31.49 MB / 330.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003348/0.3007, allocations: 0.698 MB / 426 MB, free: 30.77 MB / 330.7 MB Notification: Performance of simCode: alias equations: time 0.00108/0.3018, allocations: 0.6927 MB / 426.7 MB, free: 30.07 MB / 330.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001311/0.3031, allocations: 1.302 MB / 428 MB, free: 28.77 MB / 330.7 MB Notification: Performance of SimCode: time 1.633e-06/0.3031, allocations: 0 / 428 MB, free: 28.77 MB / 330.7 MB Notification: Performance of Templates: time 0.1926/0.4957, allocations: 66.63 MB / 494.6 MB, free: 110 MB / 362.7 MB " [Timeout remaining time 659] make -j1 -f Modelica_3.2.3_Modelica.Electrical.Spice3.Examples.FourInverters.makefile [Timeout 660] (rm -f Modelica_3.2.3_Modelica.Electrical.Spice3.Examples.FourInverters.pipe ; mkfifo Modelica_3.2.3_Modelica.Electrical.Spice3.Examples.FourInverters.pipe ; head -c 1048576 < Modelica_3.2.3_Modelica.Electrical.Spice3.Examples.FourInverters.pipe >> ../files/Modelica_3.2.3_Modelica.Electrical.Spice3.Examples.FourInverters.sim & ./Modelica_3.2.3_Modelica.Electrical.Spice3.Examples.FourInverters -abortSlowSimulation -alarm=240 -emit_protected -lv LOG_STATS > Modelica_3.2.3_Modelica.Electrical.Spice3.Examples.FourInverters.pipe 2>&1) [Timeout 240] diffSimulationResults("Modelica_3.2.3_Modelica.Electrical.Spice3.Examples.FourInverters_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v3.2.3+build.4/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.1681581772863865]