Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.0.0_Modelica.Electrical.Batteries.Examples.CCCV_CellRC.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.0007492/0.0007492, allocations: 77.36 kB / 10 MB, free: 0.6836 MB / 10.45 MB Notification: Performance of NFInstanceAPI.mkTop(): time 0.001042/0.001791, 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.0006527/0.0006527, allocations: 148.9 kB / 11.34 MB, free: 2.836 MB / 13.93 MB Notification: Performance of NFInstanceAPI.mkTop(): time 0.0008843/0.001537, 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.8551/0.8551, allocations: 173.4 MB / 186 MB, free: 7.535 MB / 186.7 MB Notification: Performance of NFInstanceAPI.mkTop(): time 0.1627/1.018, allocations: 52.49 MB / 238.5 MB, free: 7.625 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.CCCV_CellRC,tolerance=1e-06,outputFormat="mat",numberOfIntervals=12000,variableFilter="time|cell.cell.capacitor.[0-9,]+..v|cell.cell.limIntegrator.y|cell.limIntegrator.y|energy.y",fileNamePrefix="Modelica_4.0.0_Modelica.Electrical.Batteries.Examples.CCCV_CellRC") translateModel(Modelica.Electrical.Batteries.Examples.CCCV_CellRC,tolerance=1e-06,outputFormat="mat",numberOfIntervals=12000,variableFilter="time|cell.cell.capacitor.[0-9,]+..v|cell.cell.limIntegrator.y|cell.limIntegrator.y|energy.y",fileNamePrefix="Modelica_4.0.0_Modelica.Electrical.Batteries.Examples.CCCV_CellRC") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 1.222e-06/1.222e-06, allocations: 0 / 239.7 MB, free: 6.371 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 1.178e-05/1.3e-05, allocations: 2.312 kB / 239.7 MB, free: 6.367 MB / 234.7 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Batteries.Examples.CCCV_CellRC): time 0.005941/0.005954, allocations: 5.87 MB / 245.6 MB, free: 496 kB / 234.7 MB Notification: Performance of NFInst.instExpressions: time 0.002807/0.008761, allocations: 2.174 MB / 247.8 MB, free: 14.32 MB / 250.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002666/0.009028, allocations: 19.88 kB / 247.8 MB, free: 14.3 MB / 250.7 MB Notification: Performance of NFTyping.typeComponents: time 0.001003/0.01003, allocations: 0.6416 MB / 248.4 MB, free: 13.66 MB / 250.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0005502/0.01058, allocations: 429.1 kB / 248.9 MB, free: 13.24 MB / 250.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0007232/0.0113, allocations: 412.5 kB / 249.3 MB, free: 12.84 MB / 250.7 MB Notification: Performance of NFFlatten.flatten: time 0.001079/0.01238, allocations: 1.338 MB / 250.6 MB, free: 11.5 MB / 250.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0004116/0.01279, allocations: 300.2 kB / 250.9 MB, free: 11.18 MB / 250.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0007927/0.01359, allocations: 0.8489 MB / 251.7 MB, free: 10.33 MB / 250.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0004869/0.01407, allocations: 488.3 kB / 252.2 MB, free: 9.852 MB / 250.7 MB Notification: Performance of NFPackage.collectConstants: time 0.0001187/0.01419, allocations: 112 kB / 252.3 MB, free: 9.742 MB / 250.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002411/0.01443, allocations: 179.8 kB / 252.5 MB, free: 9.566 MB / 250.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0003787/0.01481, allocations: 0.6039 MB / 253.1 MB, free: 8.961 MB / 250.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0003934/0.01521, allocations: 419.4 kB / 253.5 MB, free: 8.551 MB / 250.7 MB Notification: Performance of NFConvertDAE.convert: time 0.001204/0.01641, allocations: 1.414 MB / 254.9 MB, free: 7.133 MB / 250.7 MB Notification: Performance of FrontEnd - DAE generated: time 1.021e-05/0.01642, allocations: 0 / 254.9 MB, free: 7.133 MB / 250.7 MB Notification: Performance of FrontEnd: time 8.12e-07/0.01642, allocations: 0.5625 kB / 254.9 MB, free: 7.133 MB / 250.7 MB Notification: Performance of Transformations before backend: time 1.752e-05/0.01644, allocations: 0 / 254.9 MB, free: 7.133 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: 154 * Number of variables: 154 Notification: Performance of Generate backend data structure: time 0.002643/0.01908, allocations: 2.454 MB / 257.4 MB, free: 4.645 MB / 250.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.195e-05/0.01911, allocations: 12.03 kB / 257.4 MB, free: 4.633 MB / 250.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.000221/0.01934, allocations: 172.8 kB / 257.6 MB, free: 4.465 MB / 250.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001058/0.02039, allocations: 0.8902 MB / 258.5 MB, free: 3.52 MB / 250.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001233/0.02052, allocations: 182.4 kB / 258.6 MB, free: 3.309 MB / 250.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 8.537e-05/0.0206, allocations: 67.94 kB / 258.7 MB, free: 3.242 MB / 250.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0007692/0.02137, allocations: 0.911 MB / 259.6 MB, free: 2.188 MB / 250.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.488e-05/0.02139, allocations: 0 / 259.6 MB, free: 2.188 MB / 250.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.822e-05/0.02143, allocations: 28 kB / 259.6 MB, free: 2.16 MB / 250.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.37e-05/0.02145, allocations: 20 kB / 259.7 MB, free: 2.141 MB / 250.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002574/0.02171, allocations: 149 kB / 259.8 MB, free: 1.996 MB / 250.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002583/0.02429, allocations: 2.219 MB / 262 MB, free: 15.7 MB / 266.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0004404/0.02473, allocations: 247.5 kB / 262.3 MB, free: 15.45 MB / 266.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002807/0.02501, allocations: 177.3 kB / 262.4 MB, free: 15.27 MB / 266.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.251e-05/0.02503, allocations: 4.281 kB / 262.4 MB, free: 15.27 MB / 266.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.619e-05/0.02506, allocations: 42.78 kB / 262.5 MB, free: 15.22 MB / 266.7 MB Notification: Performance of pre-optimization done (n=33): time 1.493e-06/0.02506, allocations: 4 kB / 262.5 MB, free: 15.21 MB / 266.7 MB Notification: Performance of matching and sorting (n=33): time 0.0007355/0.02579, allocations: 364.4 kB / 262.8 MB, free: 14.85 MB / 266.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.7e-05/0.02582, allocations: 59.41 kB / 262.9 MB, free: 14.78 MB / 266.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001853/0.02767, allocations: 1.809 MB / 264.7 MB, free: 12.93 MB / 266.7 MB Notification: Performance of collectPreVariables (initialization): time 2.386e-05/0.0277, allocations: 33.7 kB / 264.7 MB, free: 12.89 MB / 266.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002291/0.02793, allocations: 0.4976 MB / 265.2 MB, free: 12.38 MB / 266.7 MB Notification: Performance of collectInitialBindings (initialization): time 6.132e-05/0.02799, allocations: 122.9 kB / 265.4 MB, free: 12.26 MB / 266.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 8.649e-05/0.02808, allocations: 90.11 kB / 265.4 MB, free: 12.16 MB / 266.7 MB Notification: Performance of setup shared object (initialization): time 6.522e-05/0.02814, allocations: 325.9 kB / 265.8 MB, free: 11.84 MB / 266.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 6.204e-05/0.0282, allocations: 44.97 kB / 265.8 MB, free: 11.79 MB / 266.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001997/0.0284, allocations: 433.9 kB / 266.2 MB, free: 11.25 MB / 266.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002071/0.02861, allocations: 275.7 kB / 266.5 MB, free: 10.93 MB / 266.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.615e-06/0.02861, allocations: 0 / 266.5 MB, free: 10.93 MB / 266.7 MB Notification: Performance of matching and sorting (n=56) (initialization): time 0.0003306/0.02894, allocations: 342.2 kB / 266.8 MB, free: 10.59 MB / 266.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.351e-05/0.02896, allocations: 7.938 kB / 266.8 MB, free: 10.58 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.79e-06/0.02896, allocations: 4 kB / 266.8 MB, free: 10.57 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001301/0.02909, allocations: 44.83 kB / 266.9 MB, free: 10.53 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002956/0.02939, allocations: 131.8 kB / 267 MB, free: 10.4 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0007613/0.03015, allocations: 1.445 MB / 268.5 MB, free: 8.867 MB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002085/0.03036, allocations: 63.61 kB / 268.5 MB, free: 8.805 MB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.92e-05/0.03038, allocations: 15.94 kB / 268.5 MB, free: 8.789 MB / 266.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 16 * Number of states: 0 () * Number of discrete variables: 4 (cell.cell.limIntegrator.local_reset,cell.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 (51): * Single equations (assignments): 50 * 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.0001692/0.03055, allocations: 147.9 kB / 268.7 MB, free: 8.637 MB / 266.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.000101/0.03065, allocations: 115.8 kB / 268.8 MB, free: 8.523 MB / 266.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001224/0.03077, allocations: 158 kB / 269 MB, free: 8.371 MB / 266.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.146e-06/0.03077, allocations: 4 kB / 269 MB, free: 8.367 MB / 266.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.747e-06/0.03078, allocations: 3.984 kB / 269 MB, free: 8.363 MB / 266.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.757e-06/0.03078, allocations: 0 / 269 MB, free: 8.363 MB / 266.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001039/0.03182, allocations: 1.014 MB / 270 MB, free: 7.312 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.114e-06/0.03182, allocations: 128 / 270 MB, free: 7.312 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002231/0.03204, allocations: 95.86 kB / 270.1 MB, free: 7.219 MB / 266.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002587/0.0323, allocations: 242.6 kB / 270.3 MB, free: 6.98 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 8.071e-05/0.03238, allocations: 36.91 kB / 270.3 MB, free: 6.941 MB / 266.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.916e-05/0.0324, allocations: 11.98 kB / 270.4 MB, free: 6.93 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0009036/0.03331, allocations: 1.402 MB / 271.8 MB, free: 5.438 MB / 266.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.242e-06/0.03331, allocations: 0 / 271.8 MB, free: 5.438 MB / 266.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004144/0.03372, allocations: 465.6 kB / 272.2 MB, free: 4.957 MB / 266.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 7.969e-05/0.0338, allocations: 15.98 kB / 272.2 MB, free: 4.941 MB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001951/0.034, allocations: 36.17 kB / 272.3 MB, free: 4.906 MB / 266.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.47e-05/0.03406, allocations: 43.92 kB / 272.3 MB, free: 4.863 MB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.327e-05/0.03407, allocations: 8 kB / 272.3 MB, free: 4.855 MB / 266.7 MB Notification: Performance of sorting global known variables: time 0.000747/0.03482, allocations: 0.9936 MB / 273.3 MB, free: 3.836 MB / 266.7 MB Notification: Performance of sort global known variables: time 9e-08/0.03482, allocations: 0 / 273.3 MB, free: 3.836 MB / 266.7 MB Notification: Performance of remove unused functions: time 0.0004325/0.03525, allocations: 271.5 kB / 273.6 MB, free: 3.57 MB / 266.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 3 * Number of states: 5 (cell.cell.limIntegrator.y,cell.cell.capacitor[1].v,cell.cell.capacitor[2].v,cell.limIntegrator.y,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 (29): * Single equations (assignments): 28 * 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.001347/0.0366, allocations: 0.637 MB / 274.2 MB, free: 3.25 MB / 266.7 MB Notification: Performance of simCode: created initialization part: time 0.0003671/0.03697, allocations: 345.4 kB / 274.5 MB, free: 2.898 MB / 266.7 MB Notification: Performance of simCode: created event and clocks part: time 2.076e-05/0.03699, allocations: 24 kB / 274.6 MB, free: 2.875 MB / 266.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0001952/0.03718, allocations: 244.3 kB / 274.8 MB, free: 2.621 MB / 266.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001085/0.03827, allocations: 1.988 MB / 276.8 MB, free: 324 kB / 266.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.006521/0.04479, allocations: 2.809 MB / 279.6 MB, free: 13.45 MB / 282.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002714/0.04506, allocations: 399.4 kB / 280 MB, free: 13.03 MB / 282.7 MB Notification: Performance of simCode: alias equations: time 0.0002776/0.04534, allocations: 170.8 kB / 280.2 MB, free: 12.86 MB / 282.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0004449/0.04578, allocations: 321.2 kB / 280.5 MB, free: 12.54 MB / 282.7 MB Notification: Performance of SimCode: time 7.41e-07/0.04578, allocations: 0 / 280.5 MB, free: 12.54 MB / 282.7 MB Notification: Performance of Templates: time 0.02805/0.07384, allocations: 21.35 MB / 301.8 MB, free: 7.406 MB / 298.7 MB " [Timeout remaining time 660] make -j1 -f Modelica_4.0.0_Modelica.Electrical.Batteries.Examples.CCCV_CellRC.makefile [Timeout 660] (rm -f Modelica_4.0.0_Modelica.Electrical.Batteries.Examples.CCCV_CellRC.pipe ; mkfifo Modelica_4.0.0_Modelica.Electrical.Batteries.Examples.CCCV_CellRC.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Electrical.Batteries.Examples.CCCV_CellRC.pipe >> ../files/Modelica_4.0.0_Modelica.Electrical.Batteries.Examples.CCCV_CellRC.sim & ./Modelica_4.0.0_Modelica.Electrical.Batteries.Examples.CCCV_CellRC -abortSlowSimulation -alarm=240 -emit_protected -ignoreHideResult -lv LOG_STATS > Modelica_4.0.0_Modelica.Electrical.Batteries.Examples.CCCV_CellRC.pipe 2>&1) [Timeout 240] diffSimulationResults("Modelica_4.0.0_Modelica.Electrical.Batteries.Examples.CCCV_CellRC_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Electrical/Batteries/Examples/CCCV_CellRC/CCCV_CellRC.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: 2.9376533506438136]