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.0009079/0.0009082, allocations: 177.1 kB / 8.35 MB, free: 0.7266 MB / 5.871 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.262/1.262, allocations: 221.5 MB / 230.3 MB, free: 7.559 MB / 186.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0007943/0.0007942, allocations: 94.95 kB / 281.2 MB, free: 5.324 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 1.353e-05/1.35e-05, allocations: 0 / 337 MB, free: 10.03 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09267/0.0927, allocations: 50.42 MB / 387.5 MB, free: 7.574 MB / 282.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.2983/0.3911, allocations: 86.94 MB / 474.4 MB, free: 7.91 MB / 346.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002092/0.3913, allocations: 75.97 kB / 474.5 MB, free: 7.836 MB / 346.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.06709/0.4585, allocations: 29.05 MB / 0.4917 GB, free: 10.56 MB / 378.7 MB Notification: Performance of FrontEnd: time 1.002e-06/0.4585, allocations: 0 / 0.4917 GB, free: 10.56 MB / 378.7 MB Notification: Performance of Transformations before backend: time 7.567e-05/0.4586, allocations: 23.94 kB / 0.4917 GB, free: 10.54 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.001793/0.4604, allocations: 1.303 MB / 0.493 GB, free: 9.188 MB / 378.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.079e-05/0.4604, allocations: 8.031 kB / 0.493 GB, free: 9.18 MB / 378.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002265/0.4606, allocations: 158.1 kB / 0.4932 GB, free: 9.023 MB / 378.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001726/0.4624, allocations: 1.155 MB / 0.4943 GB, free: 7.816 MB / 378.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 6.337e-05/0.4625, allocations: 54.97 kB / 0.4943 GB, free: 7.758 MB / 378.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 6.379e-05/0.4625, allocations: 35.91 kB / 0.4944 GB, free: 7.723 MB / 378.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0005644/0.4631, allocations: 354.5 kB / 0.4947 GB, free: 7.375 MB / 378.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0007938/0.4639, allocations: 0.5406 MB / 0.4952 GB, free: 6.789 MB / 378.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.512e-05/0.4639, allocations: 3.938 kB / 0.4952 GB, free: 6.785 MB / 378.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.445e-05/0.464, allocations: 4 kB / 0.4953 GB, free: 6.781 MB / 378.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.177e-05/0.464, allocations: 12 kB / 0.4953 GB, free: 6.77 MB / 378.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003654/0.4677, allocations: 2.813 MB / 0.498 GB, free: 3.867 MB / 378.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.000687/0.4684, allocations: 370.7 kB / 0.4984 GB, free: 3.496 MB / 378.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004689/0.4688, allocations: 288.7 kB / 0.4986 GB, free: 3.211 MB / 378.7 MB Notification: Performance of preOpt evalFunc (simulation): time 3.096e-05/0.4689, allocations: 4 kB / 0.4986 GB, free: 3.207 MB / 378.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.468e-05/0.4689, allocations: 38.5 kB / 0.4987 GB, free: 3.16 MB / 378.7 MB Notification: Performance of pre-optimization done (n=30): time 1.613e-06/0.4689, allocations: 4 kB / 0.4987 GB, free: 3.156 MB / 378.7 MB Notification: Performance of matching and sorting (n=30): time 0.0008605/0.4698, allocations: 457.1 kB / 0.4991 GB, free: 2.699 MB / 378.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 9.633e-05/0.4699, allocations: 261 kB / 0.4994 GB, free: 2.383 MB / 378.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002313/0.4722, allocations: 1.901 MB / 0.5012 GB, free: 480 kB / 378.7 MB Notification: Performance of collectPreVariables (initialization): time 3.269e-05/0.4723, allocations: 29.7 kB / 0.5013 GB, free: 444 kB / 378.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0005163/0.4728, allocations: 0.6426 MB / 0.5019 GB, free: 15.78 MB / 394.7 MB Notification: Performance of collectInitialBindings (initialization): time 7.481e-05/0.4729, allocations: 102.5 kB / 0.502 GB, free: 15.68 MB / 394.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.667e-05/0.4729, allocations: 0 / 0.502 GB, free: 15.68 MB / 394.7 MB Notification: Performance of setup shared object (initialization): time 0.0001116/0.473, allocations: 326 kB / 0.5023 GB, free: 15.36 MB / 394.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001833/0.4732, allocations: 120.7 kB / 0.5024 GB, free: 15.23 MB / 394.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000277/0.4735, allocations: 264.3 kB / 0.5027 GB, free: 14.92 MB / 394.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002248/0.4737, allocations: 168.8 kB / 0.5028 GB, free: 14.76 MB / 394.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.524e-06/0.4737, allocations: 0 / 0.5028 GB, free: 14.76 MB / 394.7 MB Notification: Performance of matching and sorting (n=46) (initialization): time 0.0007345/0.4745, allocations: 0.5003 MB / 0.5033 GB, free: 14.25 MB / 394.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.533e-05/0.4745, allocations: 8 kB / 0.5033 GB, free: 14.24 MB / 394.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.977e-06/0.4745, allocations: 3.953 kB / 0.5033 GB, free: 14.23 MB / 394.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002161/0.4747, allocations: 52.83 kB / 0.5034 GB, free: 14.18 MB / 394.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003762/0.4751, allocations: 91.89 kB / 0.5035 GB, free: 14.09 MB / 394.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001339/0.4765, allocations: 1.525 MB / 0.5049 GB, free: 12.45 MB / 394.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004342/0.4769, allocations: 47.61 kB / 0.505 GB, free: 12.4 MB / 394.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.914e-05/0.477, allocations: 23.92 kB / 0.505 GB, free: 12.38 MB / 394.7 MB Warning: Iteration variables with default zero start attribute in torn nonlinear equation system: battery.v:VARIABLE(unit = "V" ) "Voltage drop of the two pins (= p.v - n.v)" type: Real 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 () * 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 (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 5} Notification: Performance of prepare postOptimizeDAE: time 0.0001517/0.4771, allocations: 122.5 kB / 0.5051 GB, free: 12.25 MB / 394.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001695/0.4773, allocations: 130.5 kB / 0.5053 GB, free: 12.12 MB / 394.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0009234/0.4782, allocations: 0.4888 MB / 0.5057 GB, free: 11.62 MB / 394.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.591e-06/0.4782, allocations: 8 kB / 0.5057 GB, free: 11.61 MB / 394.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.334e-06/0.4783, allocations: 3.953 kB / 0.5057 GB, free: 11.61 MB / 394.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.777e-06/0.4783, allocations: 0 / 0.5057 GB, free: 11.61 MB / 394.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002283/0.4806, allocations: 1.584 MB / 0.5073 GB, free: 9.969 MB / 394.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.368e-06/0.4806, allocations: 7.938 kB / 0.5073 GB, free: 9.961 MB / 394.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003226/0.4809, allocations: 63.95 kB / 0.5074 GB, free: 9.898 MB / 394.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001292/0.481, allocations: 48.78 kB / 0.5074 GB, free: 9.848 MB / 394.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.239e-05/0.4811, allocations: 3.984 kB / 0.5074 GB, free: 9.844 MB / 394.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001133/0.4822, allocations: 1.482 MB / 0.5089 GB, free: 8.246 MB / 394.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.047e-06/0.4822, allocations: 3.953 kB / 0.5089 GB, free: 8.242 MB / 394.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0009889/0.4832, allocations: 0.7273 MB / 0.5096 GB, free: 7.469 MB / 394.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0005181/0.4838, allocations: 452.4 kB / 0.51 GB, free: 6.988 MB / 394.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001212/0.4839, allocations: 4.109 kB / 0.51 GB, free: 6.984 MB / 394.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004607/0.4844, allocations: 59.89 kB / 0.5101 GB, free: 6.926 MB / 394.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.905e-05/0.4844, allocations: 27.97 kB / 0.5101 GB, free: 6.898 MB / 394.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.396e-05/0.4845, allocations: 15.98 kB / 0.5101 GB, free: 6.883 MB / 394.7 MB Notification: Performance of sorting global known variables: time 0.001763/0.4862, allocations: 1.454 MB / 0.5115 GB, free: 5.43 MB / 394.7 MB Notification: Performance of sort global known variables: time 1.5e-07/0.4862, allocations: 0 / 0.5115 GB, free: 5.43 MB / 394.7 MB Notification: Performance of remove unused functions: time 0.0006962/0.4869, allocations: 219.4 kB / 0.5117 GB, free: 5.215 MB / 394.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 () * 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 (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 4} Notification: Performance of Backend phase and start with SimCode phase: time 0.0007696/0.4877, allocations: 391 kB / 0.5121 GB, free: 4.902 MB / 394.7 MB Notification: Performance of simCode: created initialization part: time 0.0006965/0.4884, allocations: 429.9 kB / 0.5125 GB, free: 4.473 MB / 394.7 MB Notification: Performance of simCode: created event and clocks part: time 4.198e-06/0.4884, allocations: 4.562 kB / 0.5125 GB, free: 4.469 MB / 394.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0003573/0.4888, allocations: 277.5 kB / 0.5128 GB, free: 4.188 MB / 394.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000691/0.4895, allocations: 167.8 kB / 0.5129 GB, free: 4.027 MB / 394.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003014/0.4925, allocations: 2.145 MB / 0.515 GB, free: 1.844 MB / 394.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0008108/0.4934, allocations: 1.28 MB / 0.5163 GB, free: 0.5391 MB / 394.7 MB Notification: Performance of simCode: alias equations: time 0.0004606/0.4938, allocations: 223.4 kB / 0.5165 GB, free: 324 kB / 394.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001955/0.494, allocations: 71.44 kB / 0.5166 GB, free: 252 kB / 394.7 MB Notification: Performance of SimCode: time 9.32e-07/0.494, allocations: 0 / 0.5166 GB, free: 252 kB / 394.7 MB Notification: Performance of Templates: time 0.02015/0.5142, allocations: 10.89 MB / 0.5272 GB, free: 5.414 MB / 410.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