Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.0.0_Modelica.Electrical.Batteries.Examples.CCCVcharging.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.0009584/0.0009584, allocations: 76.48 kB / 9.931 MB, free: 0.7617 MB / 10.45 MB Notification: Performance of NFInstanceAPI.mkTop(): time 0.001304/0.002262, allocations: 449.7 kB / 10.37 MB, free: 332 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.0008663/0.0008663, allocations: 148.9 kB / 11.24 MB, free: 2.934 MB / 13.93 MB Notification: Performance of NFInstanceAPI.mkTop(): time 0.001185/0.002052, allocations: 459.6 kB / 11.69 MB, free: 2.48 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 1.015/1.015, allocations: 173.4 MB / 185.8 MB, free: 9 MB / 186.7 MB Notification: Performance of NFInstanceAPI.mkTop(): time 0.0866/1.102, allocations: 52.5 MB / 238.3 MB, free: 4.441 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.CCCVcharging,tolerance=1e-06,outputFormat="mat",numberOfIntervals=12000,variableFilter="time|battery.capacitor.[0-9,]+..v|battery.limIntegrator.y|energy.y",fileNamePrefix="Modelica_4.0.0_Modelica.Electrical.Batteries.Examples.CCCVcharging") translateModel(Modelica.Electrical.Batteries.Examples.CCCVcharging,tolerance=1e-06,outputFormat="mat",numberOfIntervals=12000,variableFilter="time|battery.capacitor.[0-9,]+..v|battery.limIntegrator.y|energy.y",fileNamePrefix="Modelica_4.0.0_Modelica.Electrical.Batteries.Examples.CCCVcharging") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 1.703e-06/1.703e-06, allocations: 3.938 kB / 239.5 MB, free: 3.203 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 2.005e-05/2.175e-05, allocations: 2.312 kB / 239.5 MB, free: 3.199 MB / 234.7 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Batteries.Examples.CCCVcharging): time 0.005228/0.00525, allocations: 3.966 MB / 243.5 MB, free: 15.21 MB / 250.7 MB Notification: Performance of NFInst.instExpressions: time 0.002132/0.007382, allocations: 1.92 MB / 245.4 MB, free: 13.29 MB / 250.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002036/0.007585, allocations: 15.88 kB / 245.4 MB, free: 13.27 MB / 250.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0008281/0.008413, allocations: 0.6029 MB / 246 MB, free: 12.66 MB / 250.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0003933/0.008807, allocations: 362 kB / 246.4 MB, free: 12.31 MB / 250.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003791/0.009186, allocations: 291.3 kB / 246.7 MB, free: 12.02 MB / 250.7 MB Notification: Performance of NFFlatten.flatten: time 0.0007255/0.009911, allocations: 1.001 MB / 247.7 MB, free: 11.02 MB / 250.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002677/0.01018, allocations: 223 kB / 247.9 MB, free: 10.79 MB / 250.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0005146/0.01069, allocations: 0.646 MB / 248.5 MB, free: 10.14 MB / 250.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0003481/0.01104, allocations: 419 kB / 249 MB, free: 9.734 MB / 250.7 MB Notification: Performance of NFPackage.collectConstants: time 7.31e-05/0.01111, allocations: 80 kB / 249 MB, free: 9.656 MB / 250.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001585/0.01127, allocations: 139.9 kB / 249.2 MB, free: 9.52 MB / 250.7 MB Notification: Performance of NFScalarize.scalarize: time 0.000227/0.0115, allocations: 438.8 kB / 249.6 MB, free: 9.09 MB / 250.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0002343/0.01173, allocations: 295.1 kB / 249.9 MB, free: 8.801 MB / 250.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0007362/0.01247, allocations: 1.035 MB / 250.9 MB, free: 7.762 MB / 250.7 MB Notification: Performance of FrontEnd - DAE generated: time 1.222e-05/0.01248, allocations: 7.938 kB / 250.9 MB, free: 7.754 MB / 250.7 MB Notification: Performance of FrontEnd: time 1.352e-06/0.01248, allocations: 0 / 250.9 MB, free: 7.754 MB / 250.7 MB Notification: Performance of Transformations before backend: time 1.878e-05/0.0125, allocations: 0 / 250.9 MB, free: 7.754 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: 123 * Number of variables: 123 Notification: Performance of Generate backend data structure: time 0.001538/0.01404, allocations: 1.876 MB / 252.8 MB, free: 5.844 MB / 250.7 MB Notification: Performance of prepare preOptimizeDAE: time 2.956e-05/0.01407, allocations: 11.98 kB / 252.8 MB, free: 5.832 MB / 250.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001366/0.01421, allocations: 140.8 kB / 253 MB, free: 5.695 MB / 250.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0006259/0.01483, allocations: 0.6643 MB / 253.6 MB, free: 4.996 MB / 250.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 9.821e-05/0.01493, allocations: 174.1 kB / 253.8 MB, free: 4.797 MB / 250.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.397e-05/0.01499, allocations: 52.38 kB / 253.8 MB, free: 4.746 MB / 250.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005249/0.01551, allocations: 0.8116 MB / 254.6 MB, free: 3.797 MB / 250.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.073e-05/0.01552, allocations: 0 / 254.6 MB, free: 3.797 MB / 250.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.122e-05/0.01555, allocations: 24 kB / 254.7 MB, free: 3.773 MB / 250.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.016e-06/0.01556, allocations: 12 kB / 254.7 MB, free: 3.762 MB / 250.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001637/0.01573, allocations: 126.9 kB / 254.8 MB, free: 3.637 MB / 250.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001557/0.01728, allocations: 1.628 MB / 256.4 MB, free: 1.949 MB / 250.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003007/0.01758, allocations: 214.3 kB / 256.6 MB, free: 1.73 MB / 250.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002055/0.01779, allocations: 164.8 kB / 256.8 MB, free: 1.566 MB / 250.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.166e-05/0.01781, allocations: 8 kB / 256.8 MB, free: 1.559 MB / 250.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.369e-05/0.01783, allocations: 38.56 kB / 256.9 MB, free: 1.512 MB / 250.7 MB Notification: Performance of pre-optimization done (n=30): time 1.533e-06/0.01783, allocations: 0 / 256.9 MB, free: 1.512 MB / 250.7 MB Notification: Performance of matching and sorting (n=30): time 0.0005565/0.01839, allocations: 330.7 kB / 257.2 MB, free: 1.18 MB / 250.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.954e-05/0.01842, allocations: 59.39 kB / 257.2 MB, free: 1.109 MB / 250.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0009993/0.01942, allocations: 1.328 MB / 258.6 MB, free: 15.76 MB / 266.7 MB Notification: Performance of collectPreVariables (initialization): time 2.56e-05/0.01945, allocations: 29.7 kB / 258.6 MB, free: 15.72 MB / 266.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001931/0.01964, allocations: 393.5 kB / 259 MB, free: 15.33 MB / 266.7 MB Notification: Performance of collectInitialBindings (initialization): time 5.988e-05/0.0197, allocations: 115 kB / 259.1 MB, free: 15.21 MB / 266.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 7.893e-05/0.01978, allocations: 78 kB / 259.2 MB, free: 15.13 MB / 266.7 MB Notification: Performance of setup shared object (initialization): time 7.849e-05/0.01986, allocations: 325.9 kB / 259.5 MB, free: 14.81 MB / 266.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 5.741e-05/0.01991, allocations: 40.72 kB / 259.5 MB, free: 14.77 MB / 266.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001766/0.02009, allocations: 381.1 kB / 259.9 MB, free: 14.29 MB / 266.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001658/0.02026, allocations: 190.7 kB / 260.1 MB, free: 14.07 MB / 266.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.644e-06/0.02026, allocations: 0 / 260.1 MB, free: 14.07 MB / 266.7 MB Notification: Performance of matching and sorting (n=46) (initialization): time 0.0003546/0.02061, allocations: 309.7 kB / 260.4 MB, free: 13.76 MB / 266.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.525e-05/0.02063, allocations: 15.92 kB / 260.4 MB, free: 13.75 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.581e-06/0.02063, allocations: 0 / 260.4 MB, free: 13.75 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001362/0.02077, allocations: 36.84 kB / 260.4 MB, free: 13.71 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002609/0.02103, allocations: 108 kB / 260.5 MB, free: 13.6 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0008319/0.02186, allocations: 1.437 MB / 262 MB, free: 12.08 MB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001673/0.02203, allocations: 39.77 kB / 262 MB, free: 12.04 MB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.585e-05/0.02205, allocations: 12 kB / 262 MB, free: 12.03 MB / 266.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 10 * Number of states: 0 () * Number of discrete variables: 3 (battery.limIntegrator.local_reset,energy.local_reset,cccvCharger.CV) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (41): * Single equations (assignments): 40 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 0 systems * Non-linear torn systems (#iteration vars, #inner vars): 1 system {(1,5)} Notification: Performance of prepare postOptimizeDAE: time 0.0001528/0.0222, allocations: 152.5 kB / 262.2 MB, free: 11.87 MB / 266.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.253e-05/0.02228, allocations: 83.89 kB / 262.3 MB, free: 11.79 MB / 266.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001013/0.02238, allocations: 121.2 kB / 262.4 MB, free: 11.66 MB / 266.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.505e-06/0.02239, allocations: 4 kB / 262.4 MB, free: 11.66 MB / 266.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.204e-06/0.02239, allocations: 0 / 262.4 MB, free: 11.66 MB / 266.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.466e-06/0.02239, allocations: 0 / 262.4 MB, free: 11.66 MB / 266.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0008765/0.02327, allocations: 0.7992 MB / 263.2 MB, free: 10.82 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.406e-06/0.02327, allocations: 4 kB / 263.2 MB, free: 10.82 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002056/0.02348, allocations: 87.8 kB / 263.3 MB, free: 10.73 MB / 266.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001997/0.02368, allocations: 167 kB / 263.4 MB, free: 10.57 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 8.336e-05/0.02376, allocations: 44.88 kB / 263.5 MB, free: 10.52 MB / 266.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.661e-05/0.02378, allocations: 4 kB / 263.5 MB, free: 10.52 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0007047/0.02448, allocations: 1.391 MB / 264.9 MB, free: 9.043 MB / 266.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.322e-06/0.02448, allocations: 0 / 264.9 MB, free: 9.043 MB / 266.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003917/0.02487, allocations: 421.3 kB / 265.3 MB, free: 8.598 MB / 266.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.853e-05/0.02494, allocations: 8 kB / 265.3 MB, free: 8.59 MB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001752/0.02512, allocations: 35.97 kB / 265.3 MB, free: 8.555 MB / 266.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.351e-05/0.02517, allocations: 32.19 kB / 265.4 MB, free: 8.523 MB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.174e-05/0.02518, allocations: 4 kB / 265.4 MB, free: 8.52 MB / 266.7 MB Notification: Performance of sorting global known variables: time 0.0005565/0.02574, allocations: 0.7208 MB / 266.1 MB, free: 7.793 MB / 266.7 MB Notification: Performance of sort global known variables: time 5e-08/0.02574, allocations: 0 / 266.1 MB, free: 7.793 MB / 266.7 MB Notification: Performance of remove unused functions: time 0.0003837/0.02612, allocations: 219.5 kB / 266.3 MB, free: 7.578 MB / 266.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 3 * Number of states: 4 (battery.limIntegrator.y,battery.capacitor[1].v,battery.capacitor[2].v,energy.y) * Number of discrete variables: 1 (cccvCharger.CV) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (26): * Single equations (assignments): 25 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 0 systems * Non-linear torn systems (#iteration vars, #inner vars): 1 system {(1,4)} Notification: Performance of Backend phase and start with SimCode phase: time 0.001423/0.02755, allocations: 0.6323 MB / 266.9 MB, free: 7.262 MB / 266.7 MB Notification: Performance of simCode: created initialization part: time 0.0003426/0.02789, allocations: 291.2 kB / 267.2 MB, free: 6.965 MB / 266.7 MB Notification: Performance of simCode: created event and clocks part: time 1.79e-05/0.02791, allocations: 20.55 kB / 267.2 MB, free: 6.945 MB / 266.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0002089/0.02812, allocations: 208.6 kB / 267.4 MB, free: 6.727 MB / 266.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004942/0.02861, allocations: 266.8 kB / 267.7 MB, free: 6.473 MB / 266.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.005065/0.03367, allocations: 2.095 MB / 269.8 MB, free: 4.324 MB / 266.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002213/0.0339, allocations: 290.6 kB / 270.1 MB, free: 4.02 MB / 266.7 MB Notification: Performance of simCode: alias equations: time 0.000223/0.03412, allocations: 127.5 kB / 270.2 MB, free: 3.891 MB / 266.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003456/0.03446, allocations: 249.2 kB / 270.4 MB, free: 3.648 MB / 266.7 MB Notification: Performance of SimCode: time 8.21e-07/0.03447, allocations: 0 / 270.4 MB, free: 3.648 MB / 266.7 MB Notification: Performance of Templates: time 0.1165/0.151, allocations: 15.51 MB / 285.9 MB, free: 22.21 MB / 266.7 MB " [Timeout remaining time 660] make -j1 -f Modelica_4.0.0_Modelica.Electrical.Batteries.Examples.CCCVcharging.makefile [Timeout 660] (rm -f Modelica_4.0.0_Modelica.Electrical.Batteries.Examples.CCCVcharging.pipe ; mkfifo Modelica_4.0.0_Modelica.Electrical.Batteries.Examples.CCCVcharging.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Electrical.Batteries.Examples.CCCVcharging.pipe >> ../files/Modelica_4.0.0_Modelica.Electrical.Batteries.Examples.CCCVcharging.sim & ./Modelica_4.0.0_Modelica.Electrical.Batteries.Examples.CCCVcharging -abortSlowSimulation -alarm=240 -emit_protected -ignoreHideResult -lv LOG_STATS > Modelica_4.0.0_Modelica.Electrical.Batteries.Examples.CCCVcharging.pipe 2>&1) [Timeout 240] diffSimulationResults("Modelica_4.0.0_Modelica.Electrical.Batteries.Examples.CCCVcharging_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Electrical/Batteries/Examples/CCCVcharging/CCCVcharging.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.0706773651763797]