Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_trunk_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_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_Modelica.Electrical.Batteries.Examples.CCCVcharging") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001085/0.001085, allocations: 196.1 kB / 18.1 MB, free: 3.742 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.451/1.451, allocations: 226.5 MB / 245.4 MB, free: 6.516 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.0007786/0.0007786, allocations: 101.4 kB / 297.5 MB, free: 6.68 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0002697/0.0002697, allocations: 15.98 kB / 358.1 MB, free: 10.05 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2375/0.2377, allocations: 51.28 MB / 409.4 MB, free: 27.61 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1066/0.3444, allocations: 88.86 MB / 498.2 MB, free: 2.625 MB / 362.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002602/0.3447, allocations: 79.97 kB / 498.3 MB, free: 2.547 MB / 362.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.243/0.5878, allocations: 30.29 MB / 0.5162 GB, free: 92.44 MB / 378.7 MB Notification: Performance of FrontEnd: time 1.543e-06/0.5878, allocations: 7.781 kB / 0.5162 GB, free: 92.44 MB / 378.7 MB Notification: Performance of Transformations before backend: time 0.0001105/0.5879, allocations: 19.06 kB / 0.5162 GB, free: 92.44 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.002543/0.5905, allocations: 1.651 MB / 0.5178 GB, free: 91.38 MB / 378.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.366e-05/0.5905, allocations: 10.25 kB / 0.5179 GB, free: 91.38 MB / 378.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002892/0.5908, allocations: 157.9 kB / 0.518 GB, free: 91.29 MB / 378.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001787/0.5926, allocations: 1.236 MB / 0.5192 GB, free: 90.66 MB / 378.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 6.229e-05/0.5927, allocations: 63.67 kB / 0.5193 GB, free: 90.61 MB / 378.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 7.233e-05/0.5928, allocations: 50.47 kB / 0.5193 GB, free: 90.59 MB / 378.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0008974/0.5937, allocations: 0.653 MB / 0.52 GB, free: 90.25 MB / 378.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.655e-05/0.5937, allocations: 3.938 kB / 0.52 GB, free: 90.25 MB / 378.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.849e-05/0.5938, allocations: 22.25 kB / 0.52 GB, free: 90.23 MB / 378.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.658e-06/0.5938, allocations: 13.81 kB / 0.52 GB, free: 90.23 MB / 378.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0006962/0.5945, allocations: 425.6 kB / 0.5204 GB, free: 90.09 MB / 378.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003493/0.598, allocations: 2.918 MB / 0.5233 GB, free: 88.56 MB / 378.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0008019/0.5988, allocations: 454.2 kB / 0.5237 GB, free: 88.34 MB / 378.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0005009/0.5994, allocations: 326.3 kB / 0.524 GB, free: 88.2 MB / 378.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.899e-05/0.5994, allocations: 6.094 kB / 0.524 GB, free: 88.2 MB / 378.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.155e-05/0.5994, allocations: 38.47 kB / 0.524 GB, free: 88.15 MB / 378.7 MB Notification: Performance of pre-optimization done (n=30): time 2.255e-06/0.5994, allocations: 0 / 0.524 GB, free: 88.15 MB / 378.7 MB Notification: Performance of matching and sorting (n=30): time 0.001544/0.601, allocations: 0.8027 MB / 0.5248 GB, free: 87.62 MB / 378.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.464e-05/0.6011, allocations: 265 kB / 0.5251 GB, free: 87.3 MB / 378.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002399/0.6035, allocations: 2.215 MB / 0.5272 GB, free: 85.07 MB / 378.7 MB Notification: Performance of collectPreVariables (initialization): time 3.334e-05/0.6035, allocations: 37.7 kB / 0.5273 GB, free: 85.03 MB / 378.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0003645/0.6039, allocations: 0.6428 MB / 0.5279 GB, free: 84.38 MB / 378.7 MB Notification: Performance of collectInitialBindings (initialization): time 6.77e-05/0.604, allocations: 101.2 kB / 0.528 GB, free: 84.28 MB / 378.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.676e-05/0.604, allocations: 8 kB / 0.528 GB, free: 84.27 MB / 378.7 MB Notification: Performance of setup shared object (initialization): time 7.809e-05/0.6041, allocations: 318 kB / 0.5283 GB, free: 83.96 MB / 378.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000286/0.6044, allocations: 164.7 kB / 0.5285 GB, free: 83.79 MB / 378.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003637/0.6047, allocations: 308.6 kB / 0.5288 GB, free: 83.44 MB / 378.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.000575/0.6053, allocations: 400.7 kB / 0.5291 GB, free: 83.02 MB / 378.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.958e-06/0.6053, allocations: 4 kB / 0.5291 GB, free: 83.01 MB / 378.7 MB Notification: Performance of matching and sorting (n=46) (initialization): time 0.001034/0.6064, allocations: 0.6133 MB / 0.5297 GB, free: 82.39 MB / 378.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.283e-05/0.6064, allocations: 4 kB / 0.5297 GB, free: 82.38 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.828e-06/0.6064, allocations: 4 kB / 0.5298 GB, free: 82.38 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002998/0.6067, allocations: 72.92 kB / 0.5298 GB, free: 82.3 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003457/0.6071, allocations: 87.89 kB / 0.5299 GB, free: 82.22 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001424/0.6085, allocations: 1.621 MB / 0.5315 GB, free: 80.46 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004557/0.609, allocations: 63.56 kB / 0.5316 GB, free: 80.4 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.686e-05/0.609, allocations: 19.81 kB / 0.5316 GB, free: 80.39 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.0005043/0.6095, allocations: 481.7 kB / 0.532 GB, free: 79.91 MB / 378.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001704/0.6097, allocations: 138.2 kB / 0.5322 GB, free: 79.77 MB / 378.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0009792/0.6107, allocations: 0.5789 MB / 0.5327 GB, free: 79.18 MB / 378.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.398e-06/0.6107, allocations: 4 kB / 0.5327 GB, free: 79.17 MB / 378.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.956e-06/0.6107, allocations: 0 / 0.5327 GB, free: 79.17 MB / 378.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.63e-06/0.6107, allocations: 7.922 kB / 0.5327 GB, free: 79.16 MB / 378.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.00235/0.6131, allocations: 1.748 MB / 0.5344 GB, free: 77.36 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.757e-06/0.6131, allocations: 4 kB / 0.5344 GB, free: 77.35 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000285/0.6134, allocations: 75.95 kB / 0.5345 GB, free: 77.28 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001622/0.6136, allocations: 56.81 kB / 0.5346 GB, free: 77.22 MB / 378.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.419e-05/0.6136, allocations: 12 kB / 0.5346 GB, free: 77.21 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001034/0.6146, allocations: 1.576 MB / 0.5361 GB, free: 75.5 MB / 378.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.333e-06/0.6147, allocations: 0 / 0.5361 GB, free: 75.5 MB / 378.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001205/0.6159, allocations: 0.8208 MB / 0.5369 GB, free: 74.64 MB / 378.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0005148/0.6164, allocations: 459.7 kB / 0.5374 GB, free: 74.16 MB / 378.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001523/0.6166, allocations: 12 kB / 0.5374 GB, free: 74.15 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004618/0.617, allocations: 59.95 kB / 0.5374 GB, free: 74.09 MB / 378.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.294e-05/0.6171, allocations: 35.83 kB / 0.5375 GB, free: 74.05 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.933e-05/0.6171, allocations: 8 kB / 0.5375 GB, free: 74.05 MB / 378.7 MB Notification: Performance of sorting global known variables: time 0.002045/0.6192, allocations: 1.584 MB / 0.539 GB, free: 72.46 MB / 378.7 MB Notification: Performance of sort global known variables: time 1.6e-07/0.6192, allocations: 0 / 0.539 GB, free: 72.46 MB / 378.7 MB Notification: Performance of remove unused functions: time 0.0008876/0.6201, allocations: 251.5 kB / 0.5393 GB, free: 72.22 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.001037/0.6211, allocations: 430.1 kB / 0.5397 GB, free: 71.95 MB / 378.7 MB Notification: Performance of simCode: created initialization part: time 0.001039/0.6222, allocations: 0.5065 MB / 0.5402 GB, free: 71.43 MB / 378.7 MB Notification: Performance of simCode: created event and clocks part: time 4.689e-06/0.6222, allocations: 3.938 kB / 0.5402 GB, free: 71.42 MB / 378.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0004618/0.6227, allocations: 322.8 kB / 0.5405 GB, free: 71.09 MB / 378.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001027/0.6237, allocations: 201.2 kB / 0.5407 GB, free: 70.89 MB / 378.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003768/0.6275, allocations: 2.978 MB / 0.5436 GB, free: 67.88 MB / 378.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0007185/0.6282, allocations: 1.261 MB / 0.5448 GB, free: 66.6 MB / 378.7 MB Notification: Performance of simCode: alias equations: time 0.0004952/0.6287, allocations: 223.9 kB / 0.545 GB, free: 66.38 MB / 378.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000189/0.6289, allocations: 75.42 kB / 0.5451 GB, free: 66.3 MB / 378.7 MB Notification: Performance of SimCode: time 4.21e-07/0.6289, allocations: 4 kB / 0.5451 GB, free: 66.3 MB / 378.7 MB Notification: Performance of Templates: time 0.02289/0.6518, allocations: 15.38 MB / 0.5601 GB, free: 51.01 MB / 378.7 MB make -j1 -f Modelica_trunk_Modelica.Electrical.Batteries.Examples.CCCVcharging.makefile (rm -f Modelica_trunk_Modelica.Electrical.Batteries.Examples.CCCVcharging.pipe ; mkfifo Modelica_trunk_Modelica.Electrical.Batteries.Examples.CCCVcharging.pipe ; head -c 1048576 < Modelica_trunk_Modelica.Electrical.Batteries.Examples.CCCVcharging.pipe >> ../files/Modelica_trunk_Modelica.Electrical.Batteries.Examples.CCCVcharging.sim & ./Modelica_trunk_Modelica.Electrical.Batteries.Examples.CCCVcharging -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_trunk_Modelica.Electrical.Batteries.Examples.CCCVcharging.pipe 2>&1) diffSimulationResults("Modelica_trunk_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_Modelica.Electrical.Batteries.Examples.CCCVcharging.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches