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.0009702/0.0009702, allocations: 78.19 kB / 21.42 MB, free: 3.078 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.001059/0.001059, allocations: 152.5 kB / 24.81 MB, free: 9.273 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.9602/0.9602, allocations: 173.3 MB / 201.4 MB, free: 9.23 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.542e-06/1.542e-06, allocations: 0 / 268.4 MB, free: 6.23 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 2.629e-05/2.783e-05, allocations: 2.312 kB / 268.4 MB, free: 6.227 MB / 250.7 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Spice3.Examples.FourInverters): time 0.1244/0.1244, allocations: 24.69 MB / 293.1 MB, free: 14.33 MB / 266.7 MB Notification: Performance of NFInst.instExpressions: time 0.02237/0.1468, allocations: 21.03 MB / 314.1 MB, free: 6.957 MB / 266.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.004032/0.1508, allocations: 267.6 kB / 314.4 MB, free: 6.773 MB / 266.7 MB Notification: Performance of NFTyping.typeComponents: time 0.003396/0.1542, allocations: 1.692 MB / 316.1 MB, free: 5.707 MB / 266.7 MB Notification: Performance of NFTyping.typeBindings: time 0.008402/0.1626, allocations: 3.438 MB / 319.5 MB, free: 2.859 MB / 266.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.003967/0.1666, allocations: 1.631 MB / 321.1 MB, free: 1.594 MB / 266.7 MB Notification: Performance of NFFlatten.flatten: time 0.01376/0.1803, allocations: 13.33 MB / 334.5 MB, free: 6.543 MB / 282.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001168/0.1815, allocations: 0.4965 MB / 335 MB, free: 6.012 MB / 282.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.006802/0.1883, allocations: 5.806 MB / 340.8 MB, free: 200 kB / 282.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.002084/0.1904, allocations: 1.557 MB / 342.3 MB, free: 14.63 MB / 298.7 MB Notification: Performance of NFPackage.collectConstants: time 0.0004223/0.1908, allocations: 132 kB / 342.5 MB, free: 14.5 MB / 298.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.003174/0.194, allocations: 1.264 MB / 343.7 MB, free: 13.24 MB / 298.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0003583/0.1943, allocations: 0.6205 MB / 344.3 MB, free: 12.61 MB / 298.7 MB Notification: Performance of NFVerifyModel.verify: time 0.001407/0.1957, allocations: 1.417 MB / 345.8 MB, free: 11.19 MB / 298.7 MB Notification: Performance of NFConvertDAE.convert: time 0.004855/0.2006, allocations: 4.652 MB / 350.4 MB, free: 6.52 MB / 298.7 MB Notification: Performance of FrontEnd - DAE generated: time 4.709e-06/0.2006, allocations: 0 / 350.4 MB, free: 6.52 MB / 298.7 MB Notification: Performance of FrontEnd: time 1.593e-06/0.2006, allocations: 0 / 350.4 MB, free: 6.52 MB / 298.7 MB Notification: Performance of Transformations before backend: time 0.0002003/0.2008, allocations: 4 kB / 350.4 MB, free: 6.516 MB / 298.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.006923/0.2077, allocations: 7.248 MB / 357.7 MB, free: 15.18 MB / 314.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.513e-05/0.2078, allocations: 8.922 kB / 357.7 MB, free: 15.17 MB / 314.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0007109/0.2085, allocations: 0.8467 MB / 358.5 MB, free: 14.32 MB / 314.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.00443/0.2129, allocations: 4.811 MB / 363.3 MB, free: 9.383 MB / 314.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.156e-05/0.213, allocations: 66 kB / 363.4 MB, free: 9.316 MB / 314.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001602/0.2131, allocations: 103.9 kB / 363.5 MB, free: 9.215 MB / 314.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0009829/0.2141, allocations: 0.8291 MB / 364.3 MB, free: 8.367 MB / 314.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.658e-05/0.2141, allocations: 0 / 364.3 MB, free: 8.367 MB / 314.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.751e-05/0.2142, allocations: 47.92 kB / 364.4 MB, free: 8.32 MB / 314.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.733e-05/0.2142, allocations: 35.98 kB / 364.4 MB, free: 8.285 MB / 314.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0008404/0.2151, allocations: 0.8152 MB / 365.2 MB, free: 7.461 MB / 314.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.005419/0.2205, allocations: 4.321 MB / 369.5 MB, free: 3.082 MB / 314.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0005304/0.221, allocations: 0.4922 MB / 370 MB, free: 2.578 MB / 314.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0005947/0.2216, allocations: 0.7235 MB / 370.8 MB, free: 1.852 MB / 314.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.03104/0.2526, allocations: 30.03 MB / 400.8 MB, free: 3.125 MB / 346.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0005012/0.2531, allocations: 423.7 kB / 401.2 MB, free: 2.703 MB / 346.7 MB Notification: Performance of pre-optimization done (n=85): time 3.276e-06/0.2532, allocations: 0 / 401.2 MB, free: 2.703 MB / 346.7 MB Notification: Performance of matching and sorting (n=85): time 0.001549/0.2547, allocations: 1.482 MB / 402.7 MB, free: 1.211 MB / 346.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.877e-05/0.2547, allocations: 60.06 kB / 402.7 MB, free: 1.141 MB / 346.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.004599/0.2593, allocations: 5.946 MB / 408.7 MB, free: 11.2 MB / 362.7 MB Notification: Performance of collectPreVariables (initialization): time 6.262e-05/0.2594, allocations: 41.7 kB / 408.7 MB, free: 11.16 MB / 362.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.002258/0.2617, allocations: 3.27 MB / 412 MB, free: 7.871 MB / 362.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002104/0.2619, allocations: 317.3 kB / 412.3 MB, free: 7.559 MB / 362.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0003515/0.2622, allocations: 440.5 kB / 412.7 MB, free: 7.121 MB / 362.7 MB Notification: Performance of setup shared object (initialization): time 0.0001136/0.2623, allocations: 484.7 kB / 413.2 MB, free: 6.645 MB / 362.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002421/0.2626, allocations: 191.9 kB / 413.4 MB, free: 6.457 MB / 362.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0006842/0.2633, allocations: 1.194 MB / 414.6 MB, free: 4.809 MB / 362.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001042/0.2643, allocations: 1.554 MB / 416.1 MB, free: 2.797 MB / 362.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 9.949e-06/0.2643, allocations: 8 kB / 416.2 MB, free: 2.789 MB / 362.7 MB Notification: Performance of matching and sorting (n=200) (initialization): time 0.00206/0.2664, allocations: 1.913 MB / 418.1 MB, free: 0.8711 MB / 362.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.468e-05/0.2664, allocations: 16 kB / 418.1 MB, free: 0.8555 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001178/0.2665, allocations: 164 kB / 418.2 MB, free: 0.6953 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.986e-05/0.2665, allocations: 32 kB / 418.3 MB, free: 0.6641 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000611/0.2672, allocations: 360 kB / 418.6 MB, free: 320 kB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.325e-05/0.2672, allocations: 51.8 kB / 418.7 MB, free: 268 kB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001008/0.2682, allocations: 182.6 kB / 418.9 MB, free: 84 kB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001432/0.2683, allocations: 112 kB / 419 MB, free: 15.97 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.000534/0.2689, allocations: 267.8 kB / 419.2 MB, free: 15.7 MB / 378.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.00048/0.2693, allocations: 0.7726 MB / 420 MB, free: 14.92 MB / 378.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002134/0.2715, allocations: 1.858 MB / 421.9 MB, free: 13.06 MB / 378.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.472e-06/0.2715, allocations: 8 kB / 421.9 MB, free: 13.05 MB / 378.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.587e-06/0.2715, allocations: 4 kB / 421.9 MB, free: 13.05 MB / 378.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.023e-06/0.2715, allocations: 3.984 kB / 421.9 MB, free: 13.04 MB / 378.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003733/0.2752, allocations: 3.768 MB / 425.6 MB, free: 9.211 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.349e-05/0.2753, allocations: 140 kB / 425.8 MB, free: 9.074 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003788/0.2757, allocations: 147.8 kB / 425.9 MB, free: 8.93 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 5.872e-06/0.2757, allocations: 4 kB / 425.9 MB, free: 8.926 MB / 378.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.866e-05/0.2758, allocations: 63.94 kB / 426 MB, free: 8.863 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.296e-06/0.2758, allocations: 0 / 426 MB, free: 8.863 MB / 378.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.513e-06/0.2758, allocations: 4 kB / 426 MB, free: 8.859 MB / 378.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.00154/0.2773, allocations: 1.764 MB / 427.8 MB, free: 7.062 MB / 378.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0008712/0.2782, allocations: 0.8132 MB / 428.6 MB, free: 6.234 MB / 378.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002658/0.2784, allocations: 15.98 kB / 428.6 MB, free: 6.219 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0005385/0.279, allocations: 31.98 kB / 428.6 MB, free: 6.188 MB / 378.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.000149/0.2791, allocations: 104.5 kB / 428.7 MB, free: 6.086 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.594e-05/0.2792, allocations: 60 kB / 428.8 MB, free: 6.027 MB / 378.7 MB Notification: Performance of sorting global known variables: time 0.002345/0.2816, allocations: 3.017 MB / 431.8 MB, free: 3.039 MB / 378.7 MB Notification: Performance of sort global known variables: time 1.9e-07/0.2816, allocations: 0 / 431.8 MB, free: 3.039 MB / 378.7 MB Notification: Performance of remove unused functions: time 0.001483/0.283, allocations: 1.081 MB / 432.9 MB, free: 1.957 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.001429/0.2845, allocations: 1.438 MB / 434.3 MB, free: 0.5078 MB / 378.7 MB Notification: Performance of simCode: created initialization part: time 0.1028/0.3873, allocations: 1.082 MB / 435.4 MB, free: 117.8 MB / 378.7 MB Notification: Performance of simCode: created event and clocks part: time 4.839e-06/0.3873, allocations: 0 / 435.4 MB, free: 117.8 MB / 378.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0005845/0.3879, allocations: 0.604 MB / 436 MB, free: 117.5 MB / 378.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.00408/0.392, allocations: 1.228 MB / 437.2 MB, free: 117.4 MB / 378.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00791/0.3999, allocations: 7.762 MB / 445 MB, free: 113.7 MB / 378.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005772/0.4005, allocations: 0.6884 MB / 445.7 MB, free: 113.5 MB / 378.7 MB Notification: Performance of simCode: alias equations: time 0.001735/0.4022, allocations: 0.6803 MB / 446.4 MB, free: 113.4 MB / 378.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0016/0.4038, allocations: 1.304 MB / 447.7 MB, free: 113.4 MB / 378.7 MB Notification: Performance of SimCode: time 2.184e-06/0.4038, allocations: 7.281 kB / 447.7 MB, free: 113.4 MB / 378.7 MB Notification: Performance of Templates: time 0.0699/0.4737, allocations: 66.32 MB / 0.5019 GB, free: 53.42 MB / 378.7 MB " [Timeout remaining time 660] 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 -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: 4.109939108137041]