Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.1.0_Modelica.Electrical.Batteries.Examples.CCCV_Cell.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.0009331/0.0009331, allocations: 77.05 kB / 10 MB, free: 0.6836 MB / 10.45 MB Notification: Performance of NFInstanceAPI.mkTop(): time 0.004551/0.005484, allocations: 449.8 kB / 10.44 MB, free: 252 kB / 10.45 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.0009797/0.0009797, allocations: 165.1 kB / 11.36 MB, free: 2.816 MB / 13.93 MB Notification: Performance of NFInstanceAPI.mkTop(): time 0.00135/0.00233, allocations: 479.5 kB / 11.82 MB, free: 2.344 MB / 13.93 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo): time 0.9887/0.9887, allocations: 177.2 MB / 189.8 MB, free: 5.25 MB / 186.7 MB Notification: Performance of NFInstanceAPI.mkTop(): time 0.08574/1.074, allocations: 53.65 MB / 243.4 MB, free: 15.51 MB / 250.7 MB " [Timeout remaining time 179] Using package Modelica with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+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.Batteries.Examples.CCCV_Cell,tolerance=1e-06,outputFormat="mat",numberOfIntervals=12000,variableFilter="time|cell.cell.limIntegrator.y|cell.limIntegrator.y|energy.y",fileNamePrefix="Modelica_4.1.0_Modelica.Electrical.Batteries.Examples.CCCV_Cell") translateModel(Modelica.Electrical.Batteries.Examples.CCCV_Cell,tolerance=1e-06,outputFormat="mat",numberOfIntervals=12000,variableFilter="time|cell.cell.limIntegrator.y|cell.limIntegrator.y|energy.y",fileNamePrefix="Modelica_4.1.0_Modelica.Electrical.Batteries.Examples.CCCV_Cell") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 1.333e-06/1.333e-06, allocations: 0 / 244.7 MB, free: 14.24 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 1.852e-05/1.985e-05, allocations: 2.312 kB / 244.7 MB, free: 14.24 MB / 250.7 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Batteries.Examples.CCCV_Cell): time 0.009136/0.009156, allocations: 5.412 MB / 250.1 MB, free: 8.793 MB / 250.7 MB Notification: Performance of NFInst.instExpressions: time 0.009381/0.01854, allocations: 1.909 MB / 252 MB, free: 6.879 MB / 250.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0005348/0.01907, allocations: 15.88 kB / 252 MB, free: 6.863 MB / 250.7 MB Notification: Performance of NFTyping.typeComponents: time 0.001006/0.02008, allocations: 0.5328 MB / 252.6 MB, free: 6.328 MB / 250.7 MB Notification: Performance of NFTyping.typeBindings: time 0.00382/0.0239, allocations: 405.7 kB / 253 MB, free: 5.93 MB / 250.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0008339/0.02473, allocations: 383.1 kB / 253.3 MB, free: 5.555 MB / 250.7 MB Notification: Performance of NFFlatten.flatten: time 0.001046/0.02578, allocations: 0.9118 MB / 254.2 MB, free: 4.641 MB / 250.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0003745/0.02615, allocations: 235.3 kB / 254.5 MB, free: 4.402 MB / 250.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.003833/0.02998, allocations: 0.6171 MB / 255.1 MB, free: 3.785 MB / 250.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0004588/0.03044, allocations: 355.1 kB / 255.4 MB, free: 3.438 MB / 250.7 MB Notification: Performance of NFPackage.collectConstants: time 9.53e-05/0.03054, allocations: 80 kB / 255.5 MB, free: 3.359 MB / 250.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002195/0.03076, allocations: 123.9 kB / 255.6 MB, free: 3.238 MB / 250.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0003904/0.03115, allocations: 0.5611 MB / 256.2 MB, free: 2.676 MB / 250.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0003531/0.0315, allocations: 330.9 kB / 256.5 MB, free: 2.352 MB / 250.7 MB Notification: Performance of NFConvertDAE.convert: time 0.004201/0.0357, allocations: 1.171 MB / 257.7 MB, free: 1.176 MB / 250.7 MB Notification: Performance of FrontEnd - DAE generated: time 1.316e-05/0.03572, allocations: 4 kB / 257.7 MB, free: 1.172 MB / 250.7 MB Notification: Performance of FrontEnd: time 1.833e-06/0.03572, allocations: 0 / 257.7 MB, free: 1.172 MB / 250.7 MB Notification: Performance of Transformations before backend: time 3.337e-05/0.03575, allocations: 0 / 257.7 MB, free: 1.172 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: 120 * Number of variables: 120 Notification: Performance of Generate backend data structure: time 0.005854/0.0416, allocations: 2.165 MB / 259.9 MB, free: 14.96 MB / 266.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.905e-05/0.04164, allocations: 16.02 kB / 259.9 MB, free: 14.95 MB / 266.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002157/0.04186, allocations: 144.8 kB / 260 MB, free: 14.81 MB / 266.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001108/0.04297, allocations: 0.818 MB / 260.8 MB, free: 13.96 MB / 266.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 9.517e-05/0.04306, allocations: 92.97 kB / 260.9 MB, free: 13.86 MB / 266.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 6.907e-05/0.04313, allocations: 55.94 kB / 261 MB, free: 13.81 MB / 266.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0006424/0.04377, allocations: 0.6874 MB / 261.7 MB, free: 13.01 MB / 266.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.301e-05/0.04379, allocations: 0 / 261.7 MB, free: 13.01 MB / 266.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.313e-05/0.04382, allocations: 20 kB / 261.7 MB, free: 12.99 MB / 266.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.254e-05/0.04383, allocations: 12 kB / 261.7 MB, free: 12.98 MB / 266.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001902/0.04402, allocations: 114.9 kB / 261.8 MB, free: 12.86 MB / 266.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.005287/0.04931, allocations: 1.892 MB / 263.7 MB, free: 10.9 MB / 266.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003906/0.0497, allocations: 178.5 kB / 263.9 MB, free: 10.71 MB / 266.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001574/0.04986, allocations: 85.17 kB / 264 MB, free: 10.63 MB / 266.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.967e-05/0.04989, allocations: 7.938 kB / 264 MB, free: 10.62 MB / 266.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.952e-05/0.04992, allocations: 42.5 kB / 264 MB, free: 10.57 MB / 266.7 MB Notification: Performance of pre-optimization done (n=21): time 1.743e-06/0.04992, allocations: 3.938 kB / 264 MB, free: 10.57 MB / 266.7 MB Notification: Performance of matching and sorting (n=21): time 0.0006764/0.0506, allocations: 297.2 kB / 264.3 MB, free: 10.27 MB / 266.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.188e-05/0.05063, allocations: 55.41 kB / 264.4 MB, free: 10.2 MB / 266.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001935/0.05256, allocations: 1.668 MB / 266 MB, free: 8.484 MB / 266.7 MB Notification: Performance of collectPreVariables (initialization): time 2.468e-05/0.05259, allocations: 33.7 kB / 266.1 MB, free: 8.445 MB / 266.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002851/0.05287, allocations: 452.3 kB / 266.5 MB, free: 8 MB / 266.7 MB Notification: Performance of collectInitialBindings (initialization): time 5.41e-05/0.05293, allocations: 87.25 kB / 266.6 MB, free: 7.914 MB / 266.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 9.13e-05/0.05302, allocations: 69.94 kB / 266.7 MB, free: 7.84 MB / 266.7 MB Notification: Performance of setup shared object (initialization): time 8.321e-05/0.0531, allocations: 325.9 kB / 267 MB, free: 7.516 MB / 266.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 5.989e-05/0.05316, allocations: 28.64 kB / 267 MB, free: 7.488 MB / 266.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001916/0.05335, allocations: 341.9 kB / 267.3 MB, free: 7.047 MB / 266.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002212/0.05357, allocations: 225.2 kB / 267.6 MB, free: 6.777 MB / 266.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.066e-06/0.05358, allocations: 4 kB / 267.6 MB, free: 6.773 MB / 266.7 MB Notification: Performance of matching and sorting (n=40) (initialization): time 0.0003914/0.05397, allocations: 281.8 kB / 267.8 MB, free: 6.488 MB / 266.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.991e-05/0.05399, allocations: 8.5 kB / 267.8 MB, free: 6.48 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.047e-06/0.054, allocations: 8 kB / 267.8 MB, free: 6.473 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001603/0.05416, allocations: 44.75 kB / 267.9 MB, free: 6.426 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002018/0.05436, allocations: 75.91 kB / 268 MB, free: 6.352 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0008887/0.05525, allocations: 1.418 MB / 269.4 MB, free: 4.844 MB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001939/0.05544, allocations: 43.77 kB / 269.4 MB, free: 4.801 MB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.463e-05/0.05546, allocations: 12 kB / 269.4 MB, free: 4.789 MB / 266.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 17 * 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 (36): * Single equations (assignments): 35 * 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 prepare postOptimizeDAE: time 0.0001621/0.05562, allocations: 148.4 kB / 269.6 MB, free: 4.633 MB / 266.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.756e-05/0.05571, allocations: 91.89 kB / 269.7 MB, free: 4.543 MB / 266.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0003262/0.05603, allocations: 286.3 kB / 270 MB, free: 4.254 MB / 266.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.956e-06/0.05604, allocations: 4 kB / 270 MB, free: 4.25 MB / 266.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.433e-06/0.05604, allocations: 0 / 270 MB, free: 4.25 MB / 266.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.547e-06/0.05604, allocations: 0 / 270 MB, free: 4.25 MB / 266.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0008757/0.05692, allocations: 0.8273 MB / 270.8 MB, free: 3.391 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.235e-06/0.05692, allocations: 4 kB / 270.8 MB, free: 3.387 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001066/0.05702, allocations: 43.91 kB / 270.8 MB, free: 3.344 MB / 266.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002371/0.05726, allocations: 226.7 kB / 271.1 MB, free: 3.121 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 9.068e-05/0.05735, allocations: 28.83 kB / 271.1 MB, free: 3.09 MB / 266.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.437e-05/0.05737, allocations: 4 kB / 271.1 MB, free: 3.086 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0007679/0.05813, allocations: 1.368 MB / 272.5 MB, free: 1.633 MB / 266.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.176e-06/0.05814, allocations: 7.938 kB / 272.5 MB, free: 1.625 MB / 266.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.000514/0.05865, allocations: 372.7 kB / 272.8 MB, free: 1.234 MB / 266.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.876e-05/0.05872, allocations: 12.06 kB / 272.8 MB, free: 1.223 MB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001637/0.05888, allocations: 31.97 kB / 272.9 MB, free: 1.191 MB / 266.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.599e-05/0.05895, allocations: 31.88 kB / 272.9 MB, free: 1.16 MB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.117e-05/0.05896, allocations: 8 kB / 272.9 MB, free: 1.152 MB / 266.7 MB Notification: Performance of sorting global known variables: time 0.0007576/0.05972, allocations: 0.9143 MB / 273.8 MB, free: 212 kB / 266.7 MB Notification: Performance of sort global known variables: time 3.81e-07/0.05972, allocations: 0 / 273.8 MB, free: 212 kB / 266.7 MB Notification: Performance of remove unused functions: time 0.0004641/0.06018, allocations: 199.7 kB / 274 MB, free: 12 kB / 266.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 2 * Number of states: 3 (cell.cell.limIntegrator.y,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 (18): * Single equations (assignments): 17 * 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,3)} Notification: Performance of Backend phase and start with SimCode phase: time 0.001112/0.0613, allocations: 488.3 kB / 274.5 MB, free: 15.75 MB / 282.7 MB Notification: Performance of simCode: created initialization part: time 0.0003574/0.06165, allocations: 280.6 kB / 274.8 MB, free: 15.47 MB / 282.7 MB Notification: Performance of simCode: created event and clocks part: time 2.574e-05/0.06168, allocations: 23.98 kB / 274.8 MB, free: 15.45 MB / 282.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0001685/0.06185, allocations: 206.3 kB / 275 MB, free: 15.23 MB / 282.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0009788/0.06283, allocations: 1.352 MB / 276.3 MB, free: 13.68 MB / 282.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00549/0.06832, allocations: 2.403 MB / 278.7 MB, free: 11.23 MB / 282.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000266/0.06858, allocations: 357.8 kB / 279.1 MB, free: 10.85 MB / 282.7 MB Notification: Performance of simCode: alias equations: time 0.0003243/0.06891, allocations: 150.3 kB / 279.2 MB, free: 10.7 MB / 282.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003706/0.06928, allocations: 257.3 kB / 279.5 MB, free: 10.45 MB / 282.7 MB Notification: Performance of SimCode: time 1.653e-06/0.06928, allocations: 0 / 279.5 MB, free: 10.45 MB / 282.7 MB Notification: Performance of Templates: time 0.1269/0.1962, allocations: 16.9 MB / 296.4 MB, free: 28.12 MB / 282.7 MB " [Timeout remaining time 660] make -j1 -f Modelica_4.1.0_Modelica.Electrical.Batteries.Examples.CCCV_Cell.makefile [Timeout 660] (rm -f Modelica_4.1.0_Modelica.Electrical.Batteries.Examples.CCCV_Cell.pipe ; mkfifo Modelica_4.1.0_Modelica.Electrical.Batteries.Examples.CCCV_Cell.pipe ; head -c 1048576 < Modelica_4.1.0_Modelica.Electrical.Batteries.Examples.CCCV_Cell.pipe >> ../files/Modelica_4.1.0_Modelica.Electrical.Batteries.Examples.CCCV_Cell.sim & ./Modelica_4.1.0_Modelica.Electrical.Batteries.Examples.CCCV_Cell -abortSlowSimulation -alarm=240 -emit_protected -ignoreHideResult -lv LOG_STATS > Modelica_4.1.0_Modelica.Electrical.Batteries.Examples.CCCV_Cell.pipe 2>&1) [Timeout 240] diffSimulationResults("Modelica_4.1.0_Modelica.Electrical.Batteries.Examples.CCCV_Cell_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.1.0/Modelica/Electrical/Batteries/Examples/CCCV_Cell/CCCV_Cell.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.1764264870435]