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.001337/0.001337, allocations: 176.2 kB / 17.4 MB, free: 4.418 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.443/1.443, allocations: 223.3 MB / 241.4 MB, free: 10 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.0008162/0.0008162, allocations: 88.33 kB / 292.6 MB, free: 10.57 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0003207/0.0003207, allocations: 11.94 kB / 352.3 MB, free: 14.81 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2224/0.2228, allocations: 50.41 MB / 402.7 MB, free: 32.41 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1014/0.3242, allocations: 87.75 MB / 490.5 MB, free: 8.539 MB / 362.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002616/0.3246, allocations: 82.7 kB / 490.6 MB, free: 8.461 MB / 362.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.23/0.5545, allocations: 29.5 MB / 0.5079 GB, free: 93.39 MB / 378.7 MB Notification: Performance of FrontEnd: time 2.755e-06/0.5546, allocations: 0 / 0.5079 GB, free: 93.39 MB / 378.7 MB Notification: Performance of Transformations before backend: time 8.732e-05/0.5547, allocations: 28.91 kB / 0.5079 GB, free: 93.39 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.002202/0.5569, allocations: 1.623 MB / 0.5095 GB, free: 92.49 MB / 378.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.835e-05/0.5569, allocations: 9.969 kB / 0.5095 GB, free: 92.49 MB / 378.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001966/0.5571, allocations: 161 kB / 0.5097 GB, free: 92.41 MB / 378.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001713/0.5589, allocations: 1.225 MB / 0.5109 GB, free: 91.99 MB / 378.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 7.261e-05/0.5589, allocations: 66.02 kB / 0.5109 GB, free: 91.96 MB / 378.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 6.64e-05/0.559, allocations: 48.41 kB / 0.511 GB, free: 91.96 MB / 378.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001264/0.5603, allocations: 0.6519 MB / 0.5116 GB, free: 91.81 MB / 378.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.309e-05/0.5603, allocations: 3.938 kB / 0.5116 GB, free: 91.8 MB / 378.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.149e-05/0.5604, allocations: 28.03 kB / 0.5116 GB, free: 91.8 MB / 378.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.391e-05/0.5604, allocations: 13.44 kB / 0.5117 GB, free: 91.8 MB / 378.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0009462/0.5614, allocations: 425.5 kB / 0.5121 GB, free: 91.8 MB / 378.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.004862/0.5663, allocations: 2.927 MB / 0.5149 GB, free: 90.95 MB / 378.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001143/0.5674, allocations: 444.9 kB / 0.5153 GB, free: 90.84 MB / 378.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0006803/0.5681, allocations: 318.9 kB / 0.5156 GB, free: 90.75 MB / 378.7 MB Notification: Performance of preOpt evalFunc (simulation): time 3.681e-05/0.5682, allocations: 10.64 kB / 0.5157 GB, free: 90.75 MB / 378.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.085e-05/0.5682, allocations: 41.31 kB / 0.5157 GB, free: 90.71 MB / 378.7 MB Notification: Performance of pre-optimization done (n=30): time 3.657e-06/0.5682, allocations: 0 / 0.5157 GB, free: 90.71 MB / 378.7 MB Notification: Performance of matching and sorting (n=30): time 0.00215/0.5704, allocations: 0.7915 MB / 0.5165 GB, free: 90.38 MB / 378.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.206e-05/0.5705, allocations: 273.2 kB / 0.5167 GB, free: 90.06 MB / 378.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.003449/0.5739, allocations: 2.192 MB / 0.5189 GB, free: 89.38 MB / 378.7 MB Notification: Performance of collectPreVariables (initialization): time 5.649e-05/0.574, allocations: 39.2 kB / 0.5189 GB, free: 89.34 MB / 378.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0005666/0.5746, allocations: 0.6363 MB / 0.5195 GB, free: 88.84 MB / 378.7 MB Notification: Performance of collectInitialBindings (initialization): time 8.991e-05/0.5747, allocations: 110.8 kB / 0.5196 GB, free: 88.76 MB / 378.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.185e-05/0.5747, allocations: 4 kB / 0.5196 GB, free: 88.76 MB / 378.7 MB Notification: Performance of setup shared object (initialization): time 6.202e-05/0.5748, allocations: 322.8 kB / 0.5199 GB, free: 88.45 MB / 378.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004061/0.5752, allocations: 164.5 kB / 0.5201 GB, free: 88.39 MB / 378.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004625/0.5757, allocations: 303.6 kB / 0.5204 GB, free: 88.19 MB / 378.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0007904/0.5765, allocations: 409.9 kB / 0.5208 GB, free: 87.99 MB / 378.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.849e-06/0.5765, allocations: 0 / 0.5208 GB, free: 87.99 MB / 378.7 MB Notification: Performance of matching and sorting (n=46) (initialization): time 0.001469/0.578, allocations: 0.61 MB / 0.5214 GB, free: 87.74 MB / 378.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.22e-05/0.578, allocations: 5.812 kB / 0.5214 GB, free: 87.74 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.248e-06/0.5781, allocations: 5.344 kB / 0.5214 GB, free: 87.74 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0003383/0.5784, allocations: 67.97 kB / 0.5215 GB, free: 87.71 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004731/0.5789, allocations: 93.75 kB / 0.5215 GB, free: 87.71 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001256/0.5802, allocations: 1.622 MB / 0.5231 GB, free: 86.23 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004689/0.5806, allocations: 57.47 kB / 0.5232 GB, free: 86.21 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.363e-05/0.5807, allocations: 14.28 kB / 0.5232 GB, free: 86.2 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 (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.000601/0.5813, allocations: 489.1 kB / 0.5237 GB, free: 85.98 MB / 378.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001612/0.5815, allocations: 140.6 kB / 0.5238 GB, free: 85.9 MB / 378.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001013/0.5825, allocations: 0.5751 MB / 0.5244 GB, free: 85.69 MB / 378.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.606e-06/0.5825, allocations: 3.531 kB / 0.5244 GB, free: 85.69 MB / 378.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.452e-06/0.5825, allocations: 0 / 0.5244 GB, free: 85.69 MB / 378.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.481e-06/0.5825, allocations: 7.875 kB / 0.5244 GB, free: 85.69 MB / 378.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002149/0.5847, allocations: 1.739 MB / 0.5261 GB, free: 84.9 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.835e-06/0.5847, allocations: 4.062 kB / 0.5261 GB, free: 84.9 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002867/0.585, allocations: 68.84 kB / 0.5261 GB, free: 84.89 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001562/0.5851, allocations: 68.38 kB / 0.5262 GB, free: 84.88 MB / 378.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.173e-05/0.5852, allocations: 6.438 kB / 0.5262 GB, free: 84.87 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.00105/0.5862, allocations: 1.573 MB / 0.5277 GB, free: 83.35 MB / 378.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.136e-06/0.5862, allocations: 4.031 kB / 0.5277 GB, free: 83.34 MB / 378.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.00164/0.5879, allocations: 0.8204 MB / 0.5285 GB, free: 82.57 MB / 378.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0006759/0.5886, allocations: 452.7 kB / 0.529 GB, free: 82.12 MB / 378.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001728/0.5888, allocations: 15.66 kB / 0.529 GB, free: 82.11 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0006408/0.5894, allocations: 54.59 kB / 0.529 GB, free: 82.07 MB / 378.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.601e-05/0.5895, allocations: 30.34 kB / 0.5291 GB, free: 82.05 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.072e-05/0.5896, allocations: 19.61 kB / 0.5291 GB, free: 82.04 MB / 378.7 MB Notification: Performance of sorting global known variables: time 0.002595/0.5922, allocations: 1.574 MB / 0.5306 GB, free: 80.7 MB / 378.7 MB Notification: Performance of sort global known variables: time 3.41e-07/0.5922, allocations: 0 / 0.5306 GB, free: 80.7 MB / 378.7 MB Notification: Performance of remove unused functions: time 0.001132/0.5933, allocations: 243.5 kB / 0.5309 GB, free: 80.46 MB / 378.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 () * Number of clocked 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.001141/0.5945, allocations: 455.5 kB / 0.5313 GB, free: 80.22 MB / 378.7 MB Notification: Performance of simCode: created initialization part: time 0.001247/0.5958, allocations: 0.5152 MB / 0.5318 GB, free: 79.75 MB / 378.7 MB Notification: Performance of simCode: created event and clocks part: time 4.889e-06/0.5958, allocations: 0 / 0.5318 GB, free: 79.75 MB / 378.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0005833/0.5964, allocations: 307.8 kB / 0.5321 GB, free: 79.47 MB / 378.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001695/0.5981, allocations: 190.3 kB / 0.5323 GB, free: 79.3 MB / 378.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.005513/0.6036, allocations: 2.997 MB / 0.5352 GB, free: 76.58 MB / 378.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0009943/0.6047, allocations: 1.255 MB / 0.5364 GB, free: 75.49 MB / 378.7 MB Notification: Performance of simCode: alias equations: time 0.0008645/0.6055, allocations: 226.1 kB / 0.5366 GB, free: 75.32 MB / 378.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002966/0.6058, allocations: 79.19 kB / 0.5367 GB, free: 75.25 MB / 378.7 MB Notification: Performance of SimCode: time 6.31e-07/0.6059, allocations: 4 kB / 0.5367 GB, free: 75.24 MB / 378.7 MB Notification: Performance of Templates: time 0.0288/0.6347, allocations: 15.35 MB / 0.5517 GB, free: 60.37 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/jenkins1/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