Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_4.0.0_Modelica.Electrical.Batteries.Examples.CCCV_Cell.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo) 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) Running command: translateModel(Modelica.Electrical.Batteries.Examples.CCCV_Cell,tolerance=1e-06,outputFormat="mat",numberOfIntervals=24000,variableFilter="time|cell.cell.limIntegrator.y|cell.limIntegrator.y|energy.y",fileNamePrefix="Modelica_4.0.0_Modelica.Electrical.Batteries.Examples.CCCV_Cell") translateModel(Modelica.Electrical.Batteries.Examples.CCCV_Cell,tolerance=1e-06,outputFormat="mat",numberOfIntervals=24000,variableFilter="time|cell.cell.limIntegrator.y|cell.limIntegrator.y|energy.y",fileNamePrefix="Modelica_4.0.0_Modelica.Electrical.Batteries.Examples.CCCV_Cell") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001112/0.001112, allocations: 180.2 kB / 16.38 MB, free: 5.762 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.316/1.316, allocations: 223.2 MB / 240.3 MB, free: 11.88 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0009895/0.0009895, allocations: 92 kB / 291.5 MB, free: 10.92 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0002355/0.0002354, allocations: 8 kB / 351.1 MB, free: 15.32 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2712/0.2714, allocations: 50.4 MB / 401.5 MB, free: 32.61 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1182/0.3897, allocations: 87.07 MB / 488.6 MB, free: 9.41 MB / 362.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.000259/0.39, allocations: 95.88 kB / 488.7 MB, free: 9.316 MB / 362.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.2817/0.6718, allocations: 26.88 MB / 0.5035 GB, free: 91.24 MB / 378.7 MB Notification: Performance of FrontEnd: time 1.724e-06/0.6718, allocations: 0 / 0.5035 GB, free: 91.24 MB / 378.7 MB Notification: Performance of Transformations before backend: time 0.0001252/0.672, allocations: 26 kB / 0.5035 GB, free: 91.24 MB / 378.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.003727/0.6757, allocations: 1.91 MB / 0.5053 GB, free: 90.18 MB / 378.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.846e-05/0.6758, allocations: 13.12 kB / 0.5054 GB, free: 90.18 MB / 378.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0003118/0.6761, allocations: 187.1 kB / 0.5055 GB, free: 90.08 MB / 378.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002946/0.679, allocations: 1.489 MB / 0.507 GB, free: 89.69 MB / 378.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001091/0.6792, allocations: 64.61 kB / 0.507 GB, free: 89.66 MB / 378.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001105/0.6793, allocations: 50.83 kB / 0.5071 GB, free: 89.66 MB / 378.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001085/0.6804, allocations: 0.5914 MB / 0.5077 GB, free: 89.51 MB / 378.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.425e-05/0.6804, allocations: 3.562 kB / 0.5077 GB, free: 89.51 MB / 378.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.08e-05/0.6805, allocations: 26.48 kB / 0.5077 GB, free: 89.51 MB / 378.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.135e-05/0.6805, allocations: 13.53 kB / 0.5077 GB, free: 89.51 MB / 378.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0005997/0.6811, allocations: 352.5 kB / 0.5081 GB, free: 89.5 MB / 378.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003937/0.685, allocations: 3.32 MB / 0.5113 GB, free: 88.43 MB / 378.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0009981/0.686, allocations: 432.5 kB / 0.5117 GB, free: 88.41 MB / 378.7 MB Notification: Performance of preOpt evalFunc (simulation): time 3.446e-05/0.6861, allocations: 8.188 kB / 0.5117 GB, free: 88.41 MB / 378.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.386e-05/0.6861, allocations: 41.56 kB / 0.5118 GB, free: 88.37 MB / 378.7 MB Notification: Performance of pre-optimization done (n=21): time 2.224e-06/0.6862, allocations: 0 / 0.5118 GB, free: 88.37 MB / 378.7 MB Notification: Performance of matching and sorting (n=21): time 0.001675/0.6878, allocations: 0.741 MB / 0.5125 GB, free: 88.15 MB / 378.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.165e-05/0.6879, allocations: 216.1 kB / 0.5127 GB, free: 87.9 MB / 378.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002977/0.6909, allocations: 2.634 MB / 0.5153 GB, free: 87.63 MB / 378.7 MB Notification: Performance of collectPreVariables (initialization): time 3e-05/0.691, allocations: 33.58 kB / 0.5153 GB, free: 87.6 MB / 378.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0004904/0.6914, allocations: 0.7784 MB / 0.516 GB, free: 86.99 MB / 378.7 MB Notification: Performance of collectInitialBindings (initialization): time 4.863e-05/0.6915, allocations: 71.3 kB / 0.5161 GB, free: 86.94 MB / 378.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.493e-05/0.6915, allocations: 8 kB / 0.5161 GB, free: 86.93 MB / 378.7 MB Notification: Performance of setup shared object (initialization): time 5.672e-05/0.6916, allocations: 320.2 kB / 0.5164 GB, free: 86.62 MB / 378.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002908/0.6919, allocations: 134.3 kB / 0.5166 GB, free: 86.59 MB / 378.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.00034/0.6922, allocations: 299.2 kB / 0.5168 GB, free: 86.36 MB / 378.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002991/0.6925, allocations: 157.2 kB / 0.517 GB, free: 86.32 MB / 378.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.256e-06/0.6926, allocations: 0 / 0.517 GB, free: 86.32 MB / 378.7 MB Notification: Performance of matching and sorting (n=40) (initialization): time 0.0009792/0.6935, allocations: 0.6021 MB / 0.5176 GB, free: 86.08 MB / 378.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.778e-05/0.6936, allocations: 10.09 kB / 0.5176 GB, free: 86.08 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.274e-06/0.6936, allocations: 0 / 0.5176 GB, free: 86.08 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0003054/0.6939, allocations: 87.72 kB / 0.5177 GB, free: 86.06 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002544/0.6942, allocations: 74.08 kB / 0.5177 GB, free: 86.05 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001452/0.6956, allocations: 1.81 MB / 0.5195 GB, free: 84.49 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004832/0.6961, allocations: 72.05 kB / 0.5196 GB, free: 84.46 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.25e-05/0.6961, allocations: 11.84 kB / 0.5196 GB, free: 84.46 MB / 378.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 (cccvCharger.CV,energy.local_reset,cell.limIntegrator.local_reset,cell.cell.limIntegrator.local_reset) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (33): * Single equations (assignments): 32 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 0 * Non-linear torn systems: 1 {1 7} Notification: Performance of prepare postOptimizeDAE: time 0.0006707/0.6968, allocations: 0.5847 MB / 0.5202 GB, free: 84.2 MB / 378.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001839/0.697, allocations: 160.9 kB / 0.5203 GB, free: 84.11 MB / 378.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0008905/0.6979, allocations: 0.5111 MB / 0.5208 GB, free: 83.92 MB / 378.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.608e-06/0.6979, allocations: 3.5 kB / 0.5208 GB, free: 83.92 MB / 378.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.743e-06/0.6979, allocations: 0 / 0.5208 GB, free: 83.92 MB / 378.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.45e-06/0.6979, allocations: 3.703 kB / 0.5208 GB, free: 83.92 MB / 378.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001114/0.6991, allocations: 1.12 MB / 0.5219 GB, free: 83.39 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.994e-06/0.6991, allocations: 3.469 kB / 0.5219 GB, free: 83.39 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001982/0.6993, allocations: 46.42 kB / 0.522 GB, free: 83.39 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0002034/0.6995, allocations: 81.08 kB / 0.522 GB, free: 83.36 MB / 378.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.141e-05/0.6995, allocations: 4 kB / 0.522 GB, free: 83.36 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001325/0.7009, allocations: 1.815 MB / 0.5238 GB, free: 81.78 MB / 378.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.774e-06/0.7009, allocations: 2.25 kB / 0.5238 GB, free: 81.78 MB / 378.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001127/0.702, allocations: 0.7143 MB / 0.5245 GB, free: 81.41 MB / 378.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0007768/0.7028, allocations: 0.4989 MB / 0.525 GB, free: 81.05 MB / 378.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.000125/0.7029, allocations: 7.469 kB / 0.525 GB, free: 81.05 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000425/0.7034, allocations: 64.67 kB / 0.5251 GB, free: 81.04 MB / 378.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.998e-05/0.7035, allocations: 27.81 kB / 0.5251 GB, free: 81.04 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.563e-05/0.7035, allocations: 7.531 kB / 0.5251 GB, free: 81.03 MB / 378.7 MB Notification: Performance of sorting global known variables: time 0.002149/0.7056, allocations: 2.044 MB / 0.5271 GB, free: 80.34 MB / 378.7 MB Notification: Performance of sort global known variables: time 1.4e-07/0.7056, allocations: 0 / 0.5271 GB, free: 80.34 MB / 378.7 MB Notification: Performance of remove unused functions: time 0.0008088/0.7065, allocations: 247.1 kB / 0.5273 GB, free: 80.3 MB / 378.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * 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 (14): * Single equations (assignments): 13 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 0 * Non-linear torn systems: 1 {1 7} Notification: Performance of Backend phase and start with SimCode phase: time 0.0008136/0.7073, allocations: 408.7 kB / 0.5277 GB, free: 80.16 MB / 378.7 MB Notification: Performance of simCode: created initialization part: time 0.0009275/0.7082, allocations: 492 kB / 0.5282 GB, free: 79.83 MB / 378.7 MB Notification: Performance of simCode: created event and clocks part: time 3.126e-06/0.7082, allocations: 0 / 0.5282 GB, free: 79.83 MB / 378.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0004561/0.7087, allocations: 303.2 kB / 0.5285 GB, free: 79.55 MB / 378.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0008411/0.7095, allocations: 202.1 kB / 0.5287 GB, free: 79.38 MB / 378.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004795/0.7143, allocations: 3.457 MB / 0.5321 GB, free: 76.21 MB / 378.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0007337/0.7151, allocations: 1.384 MB / 0.5334 GB, free: 75.04 MB / 378.7 MB Notification: Performance of simCode: alias equations: time 0.0005583/0.7157, allocations: 254.5 kB / 0.5336 GB, free: 74.84 MB / 378.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001979/0.7159, allocations: 83.38 kB / 0.5337 GB, free: 74.77 MB / 378.7 MB Notification: Performance of SimCode: time 5.21e-07/0.7159, allocations: 0 / 0.5337 GB, free: 74.77 MB / 378.7 MB Notification: Performance of Templates: time 0.02505/0.7409, allocations: 16.75 MB / 0.5501 GB, free: 60.18 MB / 378.7 MB make -j1 -f Modelica_4.0.0_Modelica.Electrical.Batteries.Examples.CCCV_Cell.makefile (rm -f Modelica_4.0.0_Modelica.Electrical.Batteries.Examples.CCCV_Cell.pipe ; mkfifo Modelica_4.0.0_Modelica.Electrical.Batteries.Examples.CCCV_Cell.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Electrical.Batteries.Examples.CCCV_Cell.pipe >> ../files/Modelica_4.0.0_Modelica.Electrical.Batteries.Examples.CCCV_Cell.sim & ./Modelica_4.0.0_Modelica.Electrical.Batteries.Examples.CCCV_Cell -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_4.0.0_Modelica.Electrical.Batteries.Examples.CCCV_Cell.pipe 2>&1) diffSimulationResults("Modelica_4.0.0_Modelica.Electrical.Batteries.Examples.CCCV_Cell_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Electrical/Batteries/Examples/CCCV_Cell/CCCV_Cell.csv","../files/Modelica_4.0.0_Modelica.Electrical.Batteries.Examples.CCCV_Cell.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches