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.001182/0.001182, allocations: 83.73 kB / 21.97 MB, free: 2.594 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.001683/0.001683, allocations: 169.4 kB / 25.33 MB, free: 9.164 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 0.8765/0.8765, allocations: 158.6 MB / 187.2 MB, free: 2.922 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.212e-06/1.212e-06, allocations: 0 / 251 MB, free: 7.512 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 1.44e-05/1.561e-05, allocations: 2.312 kB / 251 MB, free: 7.508 MB / 234.7 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Spice3.Examples.FourInverters): time 0.0155/0.01552, allocations: 24.05 MB / 275.1 MB, free: 15.37 MB / 266.7 MB Notification: Performance of NFInst.instExpressions: time 0.02054/0.03606, allocations: 20.43 MB / 295.5 MB, free: 10.86 MB / 282.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.003702/0.03976, allocations: 273 kB / 295.8 MB, free: 10.59 MB / 282.7 MB Notification: Performance of NFTyping.typeComponents: time 0.00385/0.04361, allocations: 1.632 MB / 297.4 MB, free: 8.941 MB / 282.7 MB Notification: Performance of NFTyping.typeBindings: time 0.009374/0.05298, allocations: 3.398 MB / 300.8 MB, free: 5.516 MB / 282.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.004559/0.05754, allocations: 1.573 MB / 302.4 MB, free: 3.934 MB / 282.7 MB Notification: Performance of NFFlatten.flatten: time 0.01544/0.07298, allocations: 13.06 MB / 315.4 MB, free: 6.824 MB / 298.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.00131/0.07429, allocations: 0.4966 MB / 315.9 MB, free: 6.297 MB / 298.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.006112/0.0804, allocations: 5.541 MB / 321.5 MB, free: 0.7461 MB / 298.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.002339/0.08274, allocations: 1.507 MB / 323 MB, free: 15.23 MB / 314.7 MB Notification: Performance of NFPackage.collectConstants: time 0.0004817/0.08322, allocations: 132 kB / 323.1 MB, free: 15.11 MB / 314.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.003505/0.08673, allocations: 1.148 MB / 324.3 MB, free: 13.96 MB / 314.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0003755/0.0871, allocations: 0.6205 MB / 324.9 MB, free: 13.33 MB / 314.7 MB Notification: Performance of NFVerifyModel.verify: time 0.001577/0.08868, allocations: 1.421 MB / 326.3 MB, free: 11.91 MB / 314.7 MB Notification: Performance of NFConvertDAE.convert: time 0.004973/0.09366, allocations: 4.687 MB / 331 MB, free: 7.199 MB / 314.7 MB Notification: Performance of FrontEnd - DAE generated: time 6.202e-06/0.09366, allocations: 0 / 331 MB, free: 7.199 MB / 314.7 MB Notification: Performance of FrontEnd: time 2.464e-06/0.09366, allocations: 3.984 kB / 331 MB, free: 7.195 MB / 314.7 MB Notification: Performance of Transformations before backend: time 0.0002223/0.09389, allocations: 0 / 331 MB, free: 7.195 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.006861/0.1007, allocations: 7.21 MB / 338.2 MB, free: 15.89 MB / 330.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.301e-05/0.1008, allocations: 11.98 kB / 338.2 MB, free: 15.88 MB / 330.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0007504/0.1015, allocations: 0.8583 MB / 339.1 MB, free: 15.02 MB / 330.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.004204/0.1057, allocations: 4.855 MB / 343.9 MB, free: 10.05 MB / 330.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.001e-05/0.1058, allocations: 66 kB / 344 MB, free: 9.98 MB / 330.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001435/0.1059, allocations: 99.94 kB / 344.1 MB, free: 9.883 MB / 330.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001232/0.1072, allocations: 0.9501 MB / 345 MB, free: 8.914 MB / 330.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.721e-05/0.1072, allocations: 0 / 345 MB, free: 8.914 MB / 330.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.734e-05/0.1073, allocations: 36 kB / 345.1 MB, free: 8.879 MB / 330.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.9e-05/0.1073, allocations: 35.97 kB / 345.1 MB, free: 8.844 MB / 330.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001315/0.1086, allocations: 0.9258 MB / 346 MB, free: 7.914 MB / 330.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.00611/0.1147, allocations: 5.339 MB / 351.4 MB, free: 2.496 MB / 330.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.000721/0.1154, allocations: 0.5676 MB / 351.9 MB, free: 1.914 MB / 330.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0009105/0.1163, allocations: 0.8087 MB / 352.8 MB, free: 1.109 MB / 330.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.1368/0.2531, allocations: 30.06 MB / 382.8 MB, free: 70.75 MB / 330.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0004353/0.2535, allocations: 455.7 kB / 383.3 MB, free: 70.29 MB / 330.7 MB Notification: Performance of pre-optimization done (n=85): time 3.877e-06/0.2535, allocations: 3.5 kB / 383.3 MB, free: 70.29 MB / 330.7 MB Notification: Performance of matching and sorting (n=85): time 0.001473/0.255, allocations: 1.588 MB / 384.9 MB, free: 69.09 MB / 330.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.41e-05/0.255, allocations: 60.06 kB / 384.9 MB, free: 69.02 MB / 330.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.003795/0.2588, allocations: 6.054 MB / 391 MB, free: 63.02 MB / 330.7 MB Notification: Performance of collectPreVariables (initialization): time 5.463e-05/0.2589, allocations: 41.7 kB / 391 MB, free: 62.97 MB / 330.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.00135/0.2602, allocations: 3.247 MB / 394.3 MB, free: 59.8 MB / 330.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001515/0.2604, allocations: 313.7 kB / 394.6 MB, free: 59.53 MB / 330.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002543/0.2606, allocations: 428.6 kB / 395 MB, free: 59.11 MB / 330.7 MB Notification: Performance of setup shared object (initialization): time 3.97e-05/0.2607, allocations: 476.8 kB / 395.4 MB, free: 58.64 MB / 330.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002697/0.261, allocations: 243.9 kB / 395.7 MB, free: 58.4 MB / 330.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004754/0.2614, allocations: 1.237 MB / 396.9 MB, free: 56.72 MB / 330.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0009977/0.2624, allocations: 1.624 MB / 398.5 MB, free: 54.78 MB / 330.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 8.346e-06/0.2624, allocations: 8 kB / 398.6 MB, free: 54.77 MB / 330.7 MB Notification: Performance of matching and sorting (n=200) (initialization): time 0.001698/0.2641, allocations: 2.02 MB / 400.6 MB, free: 52.91 MB / 330.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.249e-05/0.2642, allocations: 12 kB / 400.6 MB, free: 52.9 MB / 330.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.779e-05/0.2643, allocations: 167.8 kB / 400.8 MB, free: 52.74 MB / 330.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.768e-05/0.2643, allocations: 36 kB / 400.8 MB, free: 52.7 MB / 330.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0006096/0.2649, allocations: 351.6 kB / 401.1 MB, free: 52.38 MB / 330.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.186e-05/0.2649, allocations: 50.11 kB / 401.2 MB, free: 52.34 MB / 330.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0009525/0.2659, allocations: 182.9 kB / 401.4 MB, free: 52.21 MB / 330.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001157/0.266, allocations: 130.4 kB / 401.5 MB, free: 52.09 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.000479/0.2665, allocations: 261.9 kB / 401.7 MB, free: 51.86 MB / 330.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003738/0.2668, allocations: 0.7803 MB / 402.5 MB, free: 51.07 MB / 330.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001978/0.2688, allocations: 1.936 MB / 404.5 MB, free: 49.23 MB / 330.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.604e-06/0.2688, allocations: 8 kB / 404.5 MB, free: 49.23 MB / 330.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.519e-06/0.2688, allocations: 0 / 404.5 MB, free: 49.23 MB / 330.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.731e-06/0.2688, allocations: 3.984 kB / 404.5 MB, free: 49.22 MB / 330.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002948/0.2718, allocations: 3.722 MB / 408.2 MB, free: 45.48 MB / 330.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.839e-05/0.2719, allocations: 136 kB / 408.3 MB, free: 45.35 MB / 330.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003713/0.2722, allocations: 143.1 kB / 408.5 MB, free: 45.21 MB / 330.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 5.861e-06/0.2722, allocations: 4.062 kB / 408.5 MB, free: 45.21 MB / 330.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.375e-05/0.2723, allocations: 63.98 kB / 408.5 MB, free: 45.15 MB / 330.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 5.721e-06/0.2723, allocations: 7.281 kB / 408.5 MB, free: 45.14 MB / 330.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.144e-06/0.2723, allocations: 0 / 408.5 MB, free: 45.14 MB / 330.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001348/0.2736, allocations: 1.858 MB / 410.4 MB, free: 43.26 MB / 330.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0006818/0.2743, allocations: 0.8133 MB / 411.2 MB, free: 42.45 MB / 330.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.000382/0.2747, allocations: 16 kB / 411.2 MB, free: 42.43 MB / 330.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0008665/0.2756, allocations: 29.64 kB / 411.3 MB, free: 42.41 MB / 330.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001895/0.2758, allocations: 100.5 kB / 411.4 MB, free: 42.3 MB / 330.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.641e-05/0.2759, allocations: 75.17 kB / 411.4 MB, free: 42.23 MB / 330.7 MB Notification: Performance of sorting global known variables: time 0.00305/0.2789, allocations: 3.254 MB / 414.7 MB, free: 39.01 MB / 330.7 MB Notification: Performance of sort global known variables: time 1.91e-07/0.2789, allocations: 0 / 414.7 MB, free: 39.01 MB / 330.7 MB Notification: Performance of remove unused functions: time 0.001848/0.2808, allocations: 1.094 MB / 415.8 MB, free: 37.98 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.0013/0.2821, allocations: 1.299 MB / 417.1 MB, free: 36.97 MB / 330.7 MB Notification: Performance of simCode: created initialization part: time 0.001318/0.2834, allocations: 1.153 MB / 418.2 MB, free: 35.84 MB / 330.7 MB Notification: Performance of simCode: created event and clocks part: time 2.354e-06/0.2834, allocations: 4.25 kB / 418.2 MB, free: 35.84 MB / 330.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0005634/0.2839, allocations: 0.6371 MB / 418.9 MB, free: 35.16 MB / 330.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002536/0.2865, allocations: 1.043 MB / 419.9 MB, free: 34.12 MB / 330.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.007028/0.2935, allocations: 7.839 MB / 427.8 MB, free: 26.22 MB / 330.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004473/0.294, allocations: 0.694 MB / 428.4 MB, free: 25.51 MB / 330.7 MB Notification: Performance of simCode: alias equations: time 0.001524/0.2955, allocations: 0.6927 MB / 429.1 MB, free: 24.81 MB / 330.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003128/0.2958, allocations: 284.5 kB / 429.4 MB, free: 24.54 MB / 330.7 MB Notification: Performance of SimCode: time 1.312e-06/0.2958, allocations: 0 / 429.4 MB, free: 24.54 MB / 330.7 MB Notification: Performance of Templates: time 0.08196/0.3777, allocations: 68.09 MB / 497.5 MB, free: 4.512 MB / 378.7 MB " [Timeout remaining time 660] 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.355603670235723]