Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_trunk_cpp_Modelica.Electrical.Batteries.Examples.CCCVcharging.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo", uses=false) Using package ModelicaServices with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo) Using package Modelica with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo) Using package Complex with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/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_trunk_cpp_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_trunk_cpp_Modelica.Electrical.Batteries.Examples.CCCVcharging") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001001/0.001001, allocations: 198.7 kB / 18.07 MB, free: 3.762 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.301/1.301, allocations: 226.5 MB / 245.3 MB, free: 6.508 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.0007424/0.0007423, allocations: 101.3 kB / 297.4 MB, free: 6.68 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0002224/0.0002224, allocations: 4 kB / 357.4 MB, free: 10.74 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2057/0.2059, allocations: 51.28 MB / 408.7 MB, free: 27.71 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1108/0.3168, allocations: 88.86 MB / 497.5 MB, free: 2.723 MB / 362.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003155/0.3171, allocations: 79.95 kB / 497.6 MB, free: 2.645 MB / 362.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.2554/0.5726, allocations: 30.29 MB / 0.5155 GB, free: 92.57 MB / 378.7 MB Notification: Performance of FrontEnd: time 2.645e-06/0.5726, allocations: 3.188 kB / 0.5155 GB, free: 92.57 MB / 378.7 MB Notification: Performance of Transformations before backend: time 7.469e-05/0.5727, allocations: 22.66 kB / 0.5155 GB, free: 92.57 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.002187/0.5749, allocations: 1.64 MB / 0.5171 GB, free: 91.52 MB / 378.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.327e-05/0.575, allocations: 10.91 kB / 0.5171 GB, free: 91.52 MB / 378.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001998/0.5752, allocations: 165.7 kB / 0.5173 GB, free: 91.43 MB / 378.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001525/0.5767, allocations: 1.233 MB / 0.5185 GB, free: 90.79 MB / 378.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.632e-05/0.5768, allocations: 62.33 kB / 0.5186 GB, free: 90.75 MB / 378.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 6.168e-05/0.5768, allocations: 48.75 kB / 0.5186 GB, free: 90.73 MB / 378.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0008475/0.5777, allocations: 0.6541 MB / 0.5193 GB, free: 90.39 MB / 378.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.495e-05/0.5777, allocations: 3.938 kB / 0.5193 GB, free: 90.38 MB / 378.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.988e-05/0.5778, allocations: 26.78 kB / 0.5193 GB, free: 90.36 MB / 378.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.247e-06/0.5778, allocations: 14.73 kB / 0.5193 GB, free: 90.36 MB / 378.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0006306/0.5784, allocations: 421 kB / 0.5197 GB, free: 90.22 MB / 378.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003313/0.5817, allocations: 2.922 MB / 0.5226 GB, free: 88.69 MB / 378.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0008109/0.5826, allocations: 454.4 kB / 0.523 GB, free: 88.46 MB / 378.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0005225/0.5831, allocations: 319.4 kB / 0.5233 GB, free: 88.33 MB / 378.7 MB Notification: Performance of preOpt evalFunc (simulation): time 3.346e-05/0.5832, allocations: 13.66 kB / 0.5233 GB, free: 88.32 MB / 378.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.853e-05/0.5832, allocations: 43.98 kB / 0.5233 GB, free: 88.28 MB / 378.7 MB Notification: Performance of pre-optimization done (n=30): time 1.894e-06/0.5832, allocations: 3.969 kB / 0.5234 GB, free: 88.28 MB / 378.7 MB Notification: Performance of matching and sorting (n=30): time 0.001483/0.5847, allocations: 0.7921 MB / 0.5241 GB, free: 87.7 MB / 378.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.037e-05/0.5847, allocations: 261 kB / 0.5244 GB, free: 87.38 MB / 378.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002838/0.5876, allocations: 2.211 MB / 0.5265 GB, free: 85.16 MB / 378.7 MB Notification: Performance of collectPreVariables (initialization): time 4.359e-05/0.5876, allocations: 37.7 kB / 0.5266 GB, free: 85.12 MB / 378.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0005105/0.5882, allocations: 0.6429 MB / 0.5272 GB, free: 84.47 MB / 378.7 MB Notification: Performance of collectInitialBindings (initialization): time 8.147e-05/0.5883, allocations: 108.4 kB / 0.5273 GB, free: 84.36 MB / 378.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.535e-05/0.5883, allocations: 8 kB / 0.5273 GB, free: 84.36 MB / 378.7 MB Notification: Performance of setup shared object (initialization): time 5.414e-05/0.5884, allocations: 325.9 kB / 0.5276 GB, free: 84.03 MB / 378.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003361/0.5887, allocations: 160.7 kB / 0.5278 GB, free: 83.87 MB / 378.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003328/0.589, allocations: 308.5 kB / 0.5281 GB, free: 83.52 MB / 378.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0006096/0.5897, allocations: 408.7 kB / 0.5285 GB, free: 83.09 MB / 378.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.116e-06/0.5897, allocations: 0 / 0.5285 GB, free: 83.09 MB / 378.7 MB Notification: Performance of matching and sorting (n=46) (initialization): time 0.0009036/0.5906, allocations: 0.6056 MB / 0.529 GB, free: 82.47 MB / 378.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.421e-05/0.5906, allocations: 4 kB / 0.5291 GB, free: 82.46 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.681e-06/0.5906, allocations: 4 kB / 0.5291 GB, free: 82.46 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002513/0.5909, allocations: 72.75 kB / 0.5291 GB, free: 82.39 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003319/0.5912, allocations: 91.92 kB / 0.5292 GB, free: 82.3 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001169/0.5924, allocations: 1.619 MB / 0.5308 GB, free: 80.55 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004293/0.5928, allocations: 66.98 kB / 0.5309 GB, free: 80.48 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.321e-05/0.5929, allocations: 12 kB / 0.5309 GB, free: 80.47 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.0005251/0.5934, allocations: 485.5 kB / 0.5313 GB, free: 79.99 MB / 378.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001482/0.5936, allocations: 142.2 kB / 0.5315 GB, free: 79.85 MB / 378.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0009867/0.5946, allocations: 0.579 MB / 0.532 GB, free: 79.25 MB / 378.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.537e-06/0.5946, allocations: 4 kB / 0.532 GB, free: 79.25 MB / 378.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.543e-06/0.5946, allocations: 4 kB / 0.532 GB, free: 79.25 MB / 378.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.859e-06/0.5946, allocations: 7.922 kB / 0.532 GB, free: 79.24 MB / 378.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002195/0.5968, allocations: 1.754 MB / 0.5338 GB, free: 77.42 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.685e-06/0.5968, allocations: 0 / 0.5338 GB, free: 77.42 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002932/0.5971, allocations: 64.02 kB / 0.5338 GB, free: 77.36 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001654/0.5973, allocations: 64.81 kB / 0.5339 GB, free: 77.29 MB / 378.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.231e-05/0.5973, allocations: 8 kB / 0.5339 GB, free: 77.29 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001031/0.5983, allocations: 1.573 MB / 0.5354 GB, free: 75.58 MB / 378.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.493e-06/0.5984, allocations: 3.938 kB / 0.5354 GB, free: 75.57 MB / 378.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001192/0.5996, allocations: 0.8208 MB / 0.5362 GB, free: 74.72 MB / 378.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0004533/0.6, allocations: 455.8 kB / 0.5367 GB, free: 74.24 MB / 378.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001121/0.6002, allocations: 8 kB / 0.5367 GB, free: 74.23 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004365/0.6006, allocations: 59.95 kB / 0.5367 GB, free: 74.18 MB / 378.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.37e-05/0.6007, allocations: 31.89 kB / 0.5368 GB, free: 74.14 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.034e-05/0.6007, allocations: 12 kB / 0.5368 GB, free: 74.13 MB / 378.7 MB Notification: Performance of sorting global known variables: time 0.00164/0.6023, allocations: 1.584 MB / 0.5383 GB, free: 72.55 MB / 378.7 MB Notification: Performance of sort global known variables: time 1.2e-07/0.6024, allocations: 0 / 0.5383 GB, free: 72.55 MB / 378.7 MB Notification: Performance of remove unused functions: time 0.0007259/0.6031, allocations: 243.5 kB / 0.5386 GB, free: 72.31 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.0007643/0.6039, allocations: 448.8 kB / 0.539 GB, free: 72.02 MB / 378.7 MB Notification: Performance of simCode: created initialization part: time 0.0008364/0.6047, allocations: 0.499 MB / 0.5395 GB, free: 71.51 MB / 378.7 MB Notification: Performance of simCode: created event and clocks part: time 3.757e-06/0.6047, allocations: 4 kB / 0.5395 GB, free: 71.5 MB / 378.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0004206/0.6052, allocations: 322.4 kB / 0.5398 GB, free: 71.18 MB / 378.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0009684/0.6061, allocations: 205.3 kB / 0.54 GB, free: 70.97 MB / 378.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003163/0.6093, allocations: 3.054 MB / 0.543 GB, free: 67.88 MB / 378.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005821/0.6099, allocations: 1.253 MB / 0.5442 GB, free: 66.6 MB / 378.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002085/0.6101, allocations: 71.44 kB / 0.5442 GB, free: 66.53 MB / 378.7 MB Notification: Performance of SimCode: time 3.11e-07/0.6101, allocations: 0 / 0.5442 GB, free: 66.53 MB / 378.7 MB Notification: Performance of Templates: time 0.02381/0.6339, allocations: 21.22 MB / 0.565 GB, free: 45.33 MB / 378.7 MB make -j1 -f Modelica_trunk_cpp_Modelica.Electrical.Batteries.Examples.CCCVcharging.makefile (rm -f Modelica_trunk_cpp_Modelica.Electrical.Batteries.Examples.CCCVcharging.pipe ; mkfifo Modelica_trunk_cpp_Modelica.Electrical.Batteries.Examples.CCCVcharging.pipe ; head -c 1048576 < Modelica_trunk_cpp_Modelica.Electrical.Batteries.Examples.CCCVcharging.pipe >> ../files/Modelica_trunk_cpp_Modelica.Electrical.Batteries.Examples.CCCVcharging.sim & ./Modelica_trunk_cpp_Modelica.Electrical.Batteries.Examples.CCCVcharging --alarm=480 -emit_protected > Modelica_trunk_cpp_Modelica.Electrical.Batteries.Examples.CCCVcharging.pipe 2>&1) diffSimulationResults("Modelica_trunk_cpp_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_trunk_cpp_Modelica.Electrical.Batteries.Examples.CCCVcharging.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches