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/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.CCCVcharging,tolerance=1e-06,outputFormat="mat",numberOfIntervals=24000,variableFilter="time|battery.capacitor.1..v|battery.capacitor.2..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=24000,variableFilter="time|battery.capacitor.1..v|battery.capacitor.2..v|battery.limIntegrator.y|energy.y",fileNamePrefix="Modelica_4.0.0_Modelica.Electrical.Batteries.Examples.CCCVcharging") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001084/0.001084, allocations: 179.9 kB / 16.38 MB, free: 5.766 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.329/1.329, allocations: 223.2 MB / 240.3 MB, free: 10.14 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.0008789/0.000879, allocations: 92.73 kB / 291.5 MB, free: 10.7 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 0.00027/0.00027, allocations: 4 kB / 351.1 MB, free: 15.1 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2649/0.2651, allocations: 50.41 MB / 401.5 MB, free: 32.57 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1145/0.3797, allocations: 87.66 MB / 489.2 MB, free: 8.781 MB / 362.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002515/0.38, allocations: 79.97 kB / 489.2 MB, free: 8.703 MB / 362.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.2849/0.6649, allocations: 29.51 MB / 0.5066 GB, free: 93.36 MB / 378.7 MB Notification: Performance of FrontEnd: time 2.354e-06/0.665, allocations: 0 / 0.5066 GB, free: 93.36 MB / 378.7 MB Notification: Performance of Transformations before backend: time 0.0001796/0.6652, allocations: 28.75 kB / 0.5066 GB, free: 93.36 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: 123 * Number of variables: 123 Notification: Performance of Generate backend data structure: time 0.00334/0.6685, allocations: 1.633 MB / 0.5082 GB, free: 92.47 MB / 378.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.298e-05/0.6686, allocations: 6.719 kB / 0.5082 GB, free: 92.47 MB / 378.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002808/0.6689, allocations: 162.5 kB / 0.5084 GB, free: 92.39 MB / 378.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001926/0.6708, allocations: 1.165 MB / 0.5095 GB, free: 92.03 MB / 378.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 7.348e-05/0.6709, allocations: 67.58 kB / 0.5096 GB, free: 92 MB / 378.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 6.663e-05/0.671, allocations: 54.05 kB / 0.5096 GB, free: 91.99 MB / 378.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0009904/0.672, allocations: 0.6459 MB / 0.5103 GB, free: 91.85 MB / 378.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.533e-05/0.672, allocations: 3.953 kB / 0.5103 GB, free: 91.84 MB / 378.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.561e-05/0.6721, allocations: 24.41 kB / 0.5103 GB, free: 91.84 MB / 378.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.012e-05/0.6721, allocations: 11.78 kB / 0.5103 GB, free: 91.84 MB / 378.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0006275/0.6727, allocations: 425.7 kB / 0.5107 GB, free: 91.84 MB / 378.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003799/0.6765, allocations: 2.91 MB / 0.5135 GB, free: 90.99 MB / 378.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0008766/0.6774, allocations: 455.2 kB / 0.514 GB, free: 90.93 MB / 378.7 MB Notification: Performance of preOpt evalFunc (simulation): time 3.469e-05/0.6775, allocations: 11.77 kB / 0.514 GB, free: 90.93 MB / 378.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.984e-05/0.6775, allocations: 42 kB / 0.514 GB, free: 90.88 MB / 378.7 MB Notification: Performance of pre-optimization done (n=30): time 2.866e-06/0.6775, allocations: 0 / 0.514 GB, free: 90.88 MB / 378.7 MB Notification: Performance of matching and sorting (n=30): time 0.001786/0.6793, allocations: 0.8534 MB / 0.5149 GB, free: 90.53 MB / 378.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 9.711e-05/0.6794, allocations: 264.3 kB / 0.5151 GB, free: 90.22 MB / 378.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002208/0.6816, allocations: 2.024 MB / 0.5171 GB, free: 89.59 MB / 378.7 MB Notification: Performance of collectPreVariables (initialization): time 3.804e-05/0.6817, allocations: 33.3 kB / 0.5171 GB, free: 89.56 MB / 378.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0003898/0.6821, allocations: 0.6414 MB / 0.5177 GB, free: 89.06 MB / 378.7 MB Notification: Performance of collectInitialBindings (initialization): time 6.706e-05/0.6822, allocations: 104.6 kB / 0.5178 GB, free: 88.98 MB / 378.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.567e-05/0.6822, allocations: 4 kB / 0.5179 GB, free: 88.98 MB / 378.7 MB Notification: Performance of setup shared object (initialization): time 6.13e-05/0.6822, allocations: 320.7 kB / 0.5182 GB, free: 88.67 MB / 378.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002774/0.6825, allocations: 171.2 kB / 0.5183 GB, free: 88.61 MB / 378.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003316/0.6829, allocations: 310.6 kB / 0.5186 GB, free: 88.4 MB / 378.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003132/0.6832, allocations: 206.8 kB / 0.5188 GB, free: 88.33 MB / 378.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.775e-06/0.6832, allocations: 0 / 0.5188 GB, free: 88.33 MB / 378.7 MB Notification: Performance of matching and sorting (n=46) (initialization): time 0.0009898/0.6842, allocations: 0.6474 MB / 0.5194 GB, free: 88.07 MB / 378.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.685e-05/0.6842, allocations: 7.906 kB / 0.5195 GB, free: 88.07 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.843e-06/0.6842, allocations: 3.594 kB / 0.5195 GB, free: 88.07 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0003255/0.6846, allocations: 95.66 kB / 0.5195 GB, free: 88.04 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003321/0.6849, allocations: 84.16 kB / 0.5196 GB, free: 88.04 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001549/0.6865, allocations: 1.872 MB / 0.5215 GB, free: 86.42 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004661/0.687, allocations: 54.52 kB / 0.5215 GB, free: 86.4 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.486e-05/0.687, allocations: 14.31 kB / 0.5215 GB, free: 86.4 MB / 378.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 (cccvCharger.CV,energy.local_reset,battery.limIntegrator.local_reset) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (38): * Single equations (assignments): 37 * 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 8} Notification: Performance of prepare postOptimizeDAE: time 0.0005657/0.6876, allocations: 490.1 kB / 0.522 GB, free: 86.17 MB / 378.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001623/0.6877, allocations: 139 kB / 0.5221 GB, free: 86.1 MB / 378.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001028/0.6888, allocations: 0.6095 MB / 0.5227 GB, free: 85.87 MB / 378.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.298e-06/0.6888, allocations: 6.734 kB / 0.5227 GB, free: 85.86 MB / 378.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.154e-06/0.6888, allocations: 0 / 0.5227 GB, free: 85.86 MB / 378.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.958e-06/0.6888, allocations: 3.938 kB / 0.5227 GB, free: 85.86 MB / 378.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0008323/0.6896, allocations: 0.9847 MB / 0.5237 GB, free: 85.4 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.324e-06/0.6896, allocations: 3.281 kB / 0.5237 GB, free: 85.4 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003013/0.6899, allocations: 67.58 kB / 0.5238 GB, free: 85.39 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0002268/0.6902, allocations: 83.45 kB / 0.5238 GB, free: 85.37 MB / 378.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.546e-05/0.6902, allocations: 11.25 kB / 0.5238 GB, free: 85.37 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001411/0.6916, allocations: 1.862 MB / 0.5257 GB, free: 83.74 MB / 378.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.122e-06/0.6917, allocations: 3.969 kB / 0.5257 GB, free: 83.74 MB / 378.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001269/0.6929, allocations: 0.8646 MB / 0.5265 GB, free: 83.32 MB / 378.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0006649/0.6936, allocations: 452.4 kB / 0.5269 GB, free: 82.97 MB / 378.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001137/0.6937, allocations: 16 kB / 0.527 GB, free: 82.96 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004335/0.6942, allocations: 54.5 kB / 0.527 GB, free: 82.91 MB / 378.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.252e-05/0.6943, allocations: 33.73 kB / 0.527 GB, free: 82.89 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.007e-05/0.6943, allocations: 8 kB / 0.5271 GB, free: 82.89 MB / 378.7 MB Notification: Performance of sorting global known variables: time 0.001677/0.696, allocations: 1.575 MB / 0.5286 GB, free: 81.55 MB / 378.7 MB Notification: Performance of sort global known variables: time 1.41e-07/0.696, allocations: 3.281 kB / 0.5286 GB, free: 81.55 MB / 378.7 MB Notification: Performance of remove unused functions: time 0.0007379/0.6967, allocations: 247.5 kB / 0.5288 GB, free: 81.31 MB / 378.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * 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 (22): * Single equations (assignments): 21 * 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 8} Notification: Performance of Backend phase and start with SimCode phase: time 0.0009084/0.6976, allocations: 442.8 kB / 0.5293 GB, free: 81.07 MB / 378.7 MB Notification: Performance of simCode: created initialization part: time 0.0008835/0.6985, allocations: 0.527 MB / 0.5298 GB, free: 80.59 MB / 378.7 MB Notification: Performance of simCode: created event and clocks part: time 3.316e-06/0.6986, allocations: 4 kB / 0.5298 GB, free: 80.58 MB / 378.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0004374/0.699, allocations: 337.8 kB / 0.5301 GB, free: 80.27 MB / 378.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0007001/0.6997, allocations: 193.3 kB / 0.5303 GB, free: 80.11 MB / 378.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00333/0.703, allocations: 2.976 MB / 0.5332 GB, free: 77.41 MB / 378.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0007104/0.7038, allocations: 1.294 MB / 0.5344 GB, free: 76.31 MB / 378.7 MB Notification: Performance of simCode: alias equations: time 0.0004764/0.7043, allocations: 226.4 kB / 0.5347 GB, free: 76.13 MB / 378.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001754/0.7044, allocations: 75.05 kB / 0.5347 GB, free: 76.06 MB / 378.7 MB Notification: Performance of SimCode: time 5.41e-07/0.7044, allocations: 0 / 0.5347 GB, free: 76.06 MB / 378.7 MB Notification: Performance of Templates: time 0.0216/0.726, allocations: 15.3 MB / 0.5497 GB, free: 61.48 MB / 378.7 MB make -j1 -f Modelica_4.0.0_Modelica.Electrical.Batteries.Examples.CCCVcharging.makefile (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=480 -emit_protected -lv LOG_STATS > Modelica_4.0.0_Modelica.Electrical.Batteries.Examples.CCCVcharging.pipe 2>&1) 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","../files/Modelica_4.0.0_Modelica.Electrical.Batteries.Examples.CCCVcharging.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches