Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.0.0_Modelica.Electrical.Batteries.Examples.BatteryDischargeCharge.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.001048/0.001048, allocations: 77.36 kB / 10 MB, free: 0.6836 MB / 10.45 MB Notification: Performance of NFInstanceAPI.mkTop(): time 0.001645/0.002693, allocations: 445.8 kB / 10.44 MB, free: 256 kB / 10.45 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.0009471/0.0009471, allocations: 148.9 kB / 11.34 MB, free: 2.836 MB / 13.93 MB Notification: Performance of NFInstanceAPI.mkTop(): time 0.001386/0.002333, allocations: 475.6 kB / 11.8 MB, free: 2.367 MB / 13.93 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.846/0.846, allocations: 173.4 MB / 186 MB, free: 7.531 MB / 186.7 MB Notification: Performance of NFInstanceAPI.mkTop(): time 0.169/1.015, allocations: 52.48 MB / 238.5 MB, free: 7.629 MB / 234.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.Batteries.Examples.BatteryDischargeCharge,tolerance=1e-06,outputFormat="mat",numberOfIntervals=36000,variableFilter="time|battery1.limIntegrator.y|battery2.capacitor.[0-9,]+..v|battery2.limIntegrator.y|energy1.y|energy2.y",fileNamePrefix="Modelica_4.0.0_Modelica.Electrical.Batteries.Examples.BatteryDischargeCharge") translateModel(Modelica.Electrical.Batteries.Examples.BatteryDischargeCharge,tolerance=1e-06,outputFormat="mat",numberOfIntervals=36000,variableFilter="time|battery1.limIntegrator.y|battery2.capacitor.[0-9,]+..v|battery2.limIntegrator.y|energy1.y|energy2.y",fileNamePrefix="Modelica_4.0.0_Modelica.Electrical.Batteries.Examples.BatteryDischargeCharge") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 1.312e-06/1.312e-06, allocations: 0 / 239.7 MB, free: 6.371 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 1.141e-05/1.272e-05, allocations: 2.312 kB / 239.7 MB, free: 6.367 MB / 234.7 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Batteries.Examples.BatteryDischargeCharge): time 0.004551/0.004564, allocations: 5.63 MB / 245.4 MB, free: 0.7266 MB / 234.7 MB Notification: Performance of NFInst.instExpressions: time 0.003109/0.007673, allocations: 2.636 MB / 248 MB, free: 14.09 MB / 250.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0003283/0.008001, allocations: 27.81 kB / 248 MB, free: 14.07 MB / 250.7 MB Notification: Performance of NFTyping.typeComponents: time 0.001049/0.009051, allocations: 0.7768 MB / 248.8 MB, free: 13.29 MB / 250.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0005939/0.009645, allocations: 0.5383 MB / 249.3 MB, free: 12.75 MB / 250.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0006272/0.01027, allocations: 0.5089 MB / 249.9 MB, free: 12.24 MB / 250.7 MB Notification: Performance of NFFlatten.flatten: time 0.00117/0.01144, allocations: 1.626 MB / 251.5 MB, free: 10.61 MB / 250.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0004698/0.01191, allocations: 402.9 kB / 251.9 MB, free: 10.19 MB / 250.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0008665/0.01278, allocations: 1.061 MB / 252.9 MB, free: 9.113 MB / 250.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0005037/0.01328, allocations: 0.6166 MB / 253.6 MB, free: 8.496 MB / 250.7 MB Notification: Performance of NFPackage.collectConstants: time 0.0001254/0.01341, allocations: 132 kB / 253.7 MB, free: 8.367 MB / 250.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002739/0.01368, allocations: 216.8 kB / 253.9 MB, free: 8.156 MB / 250.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0004528/0.01413, allocations: 0.5731 MB / 254.5 MB, free: 7.582 MB / 250.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0003382/0.01447, allocations: 459.6 kB / 254.9 MB, free: 7.133 MB / 250.7 MB Notification: Performance of NFConvertDAE.convert: time 0.001031/0.0155, allocations: 1.44 MB / 256.4 MB, free: 5.688 MB / 250.7 MB Notification: Performance of FrontEnd - DAE generated: time 1.11e-05/0.01551, allocations: 1.656 kB / 256.4 MB, free: 5.688 MB / 250.7 MB Notification: Performance of FrontEnd: time 6.41e-07/0.01551, allocations: 0 / 256.4 MB, free: 5.688 MB / 250.7 MB Notification: Performance of Transformations before backend: time 2.893e-05/0.01554, allocations: 0 / 256.4 MB, free: 5.688 MB / 250.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 215 * Number of variables: 215 Notification: Performance of Generate backend data structure: time 0.002854/0.0184, allocations: 2.684 MB / 259 MB, free: 2.965 MB / 250.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.649e-05/0.01843, allocations: 16.02 kB / 259.1 MB, free: 2.949 MB / 250.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002143/0.01865, allocations: 204.8 kB / 259.3 MB, free: 2.75 MB / 250.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000966/0.01961, allocations: 0.9138 MB / 260.2 MB, free: 1.805 MB / 250.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001104/0.01973, allocations: 147.7 kB / 260.3 MB, free: 1.641 MB / 250.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.000103/0.01983, allocations: 100.4 kB / 260.4 MB, free: 1.543 MB / 250.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0009198/0.02075, allocations: 1.342 MB / 261.8 MB, free: 15.98 MB / 266.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.659e-05/0.02076, allocations: 0 / 261.8 MB, free: 15.98 MB / 266.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.3e-05/0.02082, allocations: 40 kB / 261.8 MB, free: 15.94 MB / 266.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.052e-05/0.02084, allocations: 27.94 kB / 261.8 MB, free: 15.91 MB / 266.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004598/0.0213, allocations: 220.7 kB / 262 MB, free: 15.69 MB / 266.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003688/0.02499, allocations: 3.091 MB / 265.1 MB, free: 12.45 MB / 266.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003975/0.02538, allocations: 340.5 kB / 265.5 MB, free: 12.11 MB / 266.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002007/0.02558, allocations: 153.3 kB / 265.6 MB, free: 11.95 MB / 266.7 MB Notification: Performance of preOpt evalFunc (simulation): time 4.109e-05/0.02562, allocations: 15.98 kB / 265.6 MB, free: 11.94 MB / 266.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.665e-05/0.02565, allocations: 42.56 kB / 265.7 MB, free: 11.89 MB / 266.7 MB Notification: Performance of pre-optimization done (n=44): time 1.463e-06/0.02565, allocations: 0 / 265.7 MB, free: 11.89 MB / 266.7 MB Notification: Performance of matching and sorting (n=44): time 0.0003939/0.02605, allocations: 303.2 kB / 266 MB, free: 11.59 MB / 266.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.888e-05/0.02608, allocations: 63.41 kB / 266 MB, free: 11.51 MB / 266.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001182/0.02726, allocations: 1.698 MB / 267.7 MB, free: 9.762 MB / 266.7 MB Notification: Performance of collectPreVariables (initialization): time 3.228e-05/0.02729, allocations: 41.7 kB / 267.8 MB, free: 9.715 MB / 266.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002608/0.02755, allocations: 0.5584 MB / 268.3 MB, free: 9.148 MB / 266.7 MB Notification: Performance of collectInitialBindings (initialization): time 7.621e-05/0.02763, allocations: 154.6 kB / 268.5 MB, free: 8.996 MB / 266.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001145/0.02774, allocations: 126.2 kB / 268.6 MB, free: 8.867 MB / 266.7 MB Notification: Performance of setup shared object (initialization): time 7.562e-05/0.02782, allocations: 337.8 kB / 268.9 MB, free: 8.531 MB / 266.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 9.217e-05/0.02791, allocations: 60.11 kB / 269 MB, free: 8.469 MB / 266.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002921/0.0282, allocations: 0.6691 MB / 269.7 MB, free: 7.598 MB / 266.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002793/0.02848, allocations: 389.7 kB / 270 MB, free: 7.145 MB / 266.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.146e-06/0.02848, allocations: 4 kB / 270 MB, free: 7.141 MB / 266.7 MB Notification: Performance of matching and sorting (n=76) (initialization): time 0.0004043/0.02889, allocations: 413.2 kB / 270.4 MB, free: 6.727 MB / 266.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.631e-05/0.0289, allocations: 8 kB / 270.4 MB, free: 6.719 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.793e-06/0.02891, allocations: 4 kB / 270.5 MB, free: 6.715 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.721e-05/0.02893, allocations: 11.94 kB / 270.5 MB, free: 6.703 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004029/0.02933, allocations: 180 kB / 270.6 MB, free: 6.527 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.709e-06/0.02934, allocations: 15.94 kB / 270.7 MB, free: 6.512 MB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003251/0.02967, allocations: 115.5 kB / 270.8 MB, free: 6.398 MB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.188e-05/0.0297, allocations: 23.98 kB / 270.8 MB, free: 6.375 MB / 266.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 25 * Number of states: 0 () * Number of discrete variables: 6 (pulseSeries.on2,pulseSeries.on1,energy2.local_reset,battery2.limIntegrator.local_reset,energy1.local_reset,battery1.limIntegrator.local_reset) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (76): * Single equations (assignments): 76 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * 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.000184/0.02988, allocations: 160.4 kB / 270.9 MB, free: 6.207 MB / 266.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001134/0.03, allocations: 115.9 kB / 271.1 MB, free: 6.094 MB / 266.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0003768/0.03037, allocations: 359.6 kB / 271.4 MB, free: 5.734 MB / 266.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.607e-06/0.03038, allocations: 4 kB / 271.4 MB, free: 5.73 MB / 266.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.502e-06/0.03038, allocations: 0 / 271.4 MB, free: 5.73 MB / 266.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.121e-06/0.03038, allocations: 3.984 kB / 271.4 MB, free: 5.727 MB / 266.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001274/0.03166, allocations: 1.164 MB / 272.6 MB, free: 4.523 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.515e-06/0.03166, allocations: 0 / 272.6 MB, free: 4.523 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002831/0.03194, allocations: 127.8 kB / 272.7 MB, free: 4.398 MB / 266.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002571/0.0322, allocations: 226.7 kB / 272.9 MB, free: 4.176 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.817e-06/0.0322, allocations: 4 kB / 272.9 MB, free: 4.172 MB / 266.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.091e-05/0.03223, allocations: 4 kB / 272.9 MB, free: 4.168 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.326e-06/0.03223, allocations: 8 kB / 272.9 MB, free: 4.16 MB / 266.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.413e-06/0.03223, allocations: 0 / 272.9 MB, free: 4.16 MB / 266.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.000422/0.03265, allocations: 0.5207 MB / 273.5 MB, free: 3.609 MB / 266.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 8.762e-05/0.03274, allocations: 12 kB / 273.5 MB, free: 3.598 MB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003245/0.03306, allocations: 95.91 kB / 273.6 MB, free: 3.504 MB / 266.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001263/0.03319, allocations: 91.84 kB / 273.7 MB, free: 3.414 MB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.063e-05/0.03321, allocations: 12 kB / 273.7 MB, free: 3.402 MB / 266.7 MB Notification: Performance of sorting global known variables: time 0.0006349/0.03385, allocations: 0.8919 MB / 274.6 MB, free: 2.48 MB / 266.7 MB Notification: Performance of sort global known variables: time 8e-08/0.03385, allocations: 0 / 274.6 MB, free: 2.48 MB / 266.7 MB Notification: Performance of remove unused functions: time 0.0004311/0.03428, allocations: 319.3 kB / 274.9 MB, free: 2.168 MB / 266.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 4 * Number of states: 6 (battery1.limIntegrator.y,energy1.y,battery2.limIntegrator.y,battery2.capacitor[1].v,battery2.capacitor[2].v,energy2.y) * Number of discrete variables: 2 (pulseSeries.on1,pulseSeries.on2) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (44): * Single equations (assignments): 44 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * 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.001371/0.03565, allocations: 0.6629 MB / 275.5 MB, free: 1.828 MB / 266.7 MB Notification: Performance of simCode: created initialization part: time 0.0002889/0.03594, allocations: 262.9 kB / 275.8 MB, free: 1.566 MB / 266.7 MB Notification: Performance of simCode: created event and clocks part: time 2.073e-05/0.03596, allocations: 24 kB / 275.8 MB, free: 1.543 MB / 266.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0001545/0.03611, allocations: 143.3 kB / 276 MB, free: 1.398 MB / 266.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.00118/0.03729, allocations: 2.325 MB / 278.3 MB, free: 14.66 MB / 282.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.006481/0.04377, allocations: 2.781 MB / 281.1 MB, free: 11.82 MB / 282.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002297/0.044, allocations: 363.2 kB / 281.4 MB, free: 11.44 MB / 282.7 MB Notification: Performance of simCode: alias equations: time 0.0003078/0.04431, allocations: 178.5 kB / 281.6 MB, free: 11.26 MB / 282.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0005551/0.04487, allocations: 373.1 kB / 282 MB, free: 10.89 MB / 282.7 MB Notification: Performance of SimCode: time 7.91e-07/0.04487, allocations: 0 / 282 MB, free: 10.89 MB / 282.7 MB Notification: Performance of Templates: time 0.02513/0.07, allocations: 22.94 MB / 304.9 MB, free: 4.227 MB / 298.7 MB " [Timeout remaining time 660] make -j1 -f Modelica_4.0.0_Modelica.Electrical.Batteries.Examples.BatteryDischargeCharge.makefile [Timeout 660] (rm -f Modelica_4.0.0_Modelica.Electrical.Batteries.Examples.BatteryDischargeCharge.pipe ; mkfifo Modelica_4.0.0_Modelica.Electrical.Batteries.Examples.BatteryDischargeCharge.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Electrical.Batteries.Examples.BatteryDischargeCharge.pipe >> ../files/Modelica_4.0.0_Modelica.Electrical.Batteries.Examples.BatteryDischargeCharge.sim & ./Modelica_4.0.0_Modelica.Electrical.Batteries.Examples.BatteryDischargeCharge -abortSlowSimulation -alarm=240 -emit_protected -ignoreHideResult -lv LOG_STATS > Modelica_4.0.0_Modelica.Electrical.Batteries.Examples.BatteryDischargeCharge.pipe 2>&1) [Timeout 240] diffSimulationResults("Modelica_4.0.0_Modelica.Electrical.Batteries.Examples.BatteryDischargeCharge_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Electrical/Batteries/Examples/BatteryDischargeCharge/BatteryDischargeCharge.csv","",relTol=0.003,relTolDiffMinMax=0.003,tube=OpenModelica.Scripting.TubeAlgorithm.rectangle) [Timeout 660] "" [Timeout remaining time 660] Reference file matches [Calling sys.exit(0), Time elapsed: 3.2003746600821614]