Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_4.0.0_Modelica.Electrical.Batteries.Examples.CCCV_CellRC.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: "" <> buildModelFMU(Modelica.Electrical.Batteries.Examples.CCCV_CellRC,fileNamePrefix="Modelica_4_0_0_Modelica_Electrical_Batteries_Examples_CCCV_CellRC",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Electrical.Batteries.Examples.CCCV_CellRC,fileNamePrefix="Modelica_4_0_0_Modelica_Electrical_Batteries_Examples_CCCV_CellRC",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001858/0.001858, allocations: 175.1 kB / 13.63 MB, free: 1.684 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.428/1.428, allocations: 221.3 MB / 235.5 MB, free: 2.902 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.0009094/0.0009093, allocations: 97.77 kB / 286.5 MB, free: 180 kB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 2.741e-05/2.765e-05, allocations: 4 kB / 343.9 MB, free: 4.219 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1034/0.1034, allocations: 50.42 MB / 394.3 MB, free: 1.762 MB / 282.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.3306/0.434, allocations: 89.7 MB / 484 MB, free: 13.78 MB / 362.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.000197/0.4343, allocations: 79.97 kB / 484.1 MB, free: 13.7 MB / 362.7 MB [/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/Electrical/Batteries/ParameterRecords/TransientData/CellData.mo:8:3-11:59:writable] Notification: Moving binding to initial equation section and setting fixed attribute of rcData[2].R to false. [/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/Electrical/Batteries/ParameterRecords/TransientData/CellData.mo:8:3-11:59:writable] Notification: Moving binding to initial equation section and setting fixed attribute of rcData[2].C to false. [/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/Electrical/Batteries/ParameterRecords/TransientData/CellData.mo:8:3-11:59:writable] Notification: Moving binding to initial equation section and setting fixed attribute of rcData[1].R to false. [/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/Electrical/Batteries/ParameterRecords/TransientData/CellData.mo:8:3-11:59:writable] Notification: Moving binding to initial equation section and setting fixed attribute of rcData[1].C to false. Notification: Performance of FrontEnd - DAE generated: time 0.08842/0.5227, allocations: 34.85 MB / 0.5068 GB, free: 10.59 MB / 394.7 MB Notification: Performance of FrontEnd: time 1.673e-06/0.5228, allocations: 0 / 0.5068 GB, free: 10.59 MB / 394.7 MB Notification: Performance of Transformations before backend: time 0.0002046/0.523, allocations: 35.94 kB / 0.5068 GB, free: 10.56 MB / 394.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 154 * Number of variables: 154 Notification: Performance of Generate backend data structure: time 0.003508/0.5265, allocations: 1.652 MB / 0.5085 GB, free: 8.852 MB / 394.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.379e-05/0.5266, allocations: 8.031 kB / 0.5085 GB, free: 8.844 MB / 394.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0002685/0.5268, allocations: 106.5 kB / 0.5086 GB, free: 8.73 MB / 394.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0006651/0.5275, allocations: 213.4 kB / 0.5088 GB, free: 8.52 MB / 394.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.003824/0.5314, allocations: 1.646 MB / 0.5104 GB, free: 6.805 MB / 394.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001057/0.5315, allocations: 74.97 kB / 0.5104 GB, free: 6.727 MB / 394.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001247/0.5316, allocations: 60 kB / 0.5105 GB, free: 6.668 MB / 394.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001324/0.5329, allocations: 0.7635 MB / 0.5113 GB, free: 5.852 MB / 394.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.573e-05/0.533, allocations: 0 / 0.5113 GB, free: 5.852 MB / 394.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.671e-05/0.5331, allocations: 28 kB / 0.5113 GB, free: 5.824 MB / 394.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.587e-05/0.5331, allocations: 16 kB / 0.5113 GB, free: 5.809 MB / 394.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.000893/0.534, allocations: 493 kB / 0.5118 GB, free: 5.328 MB / 394.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.006508/0.5405, allocations: 4.059 MB / 0.5157 GB, free: 1.145 MB / 394.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0009012/0.5414, allocations: 454.4 kB / 0.5162 GB, free: 0.6914 MB / 394.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0005451/0.542, allocations: 316.6 kB / 0.5165 GB, free: 392 kB / 394.7 MB Notification: Performance of preOpt evalFunc (simulation): time 4.112e-05/0.5421, allocations: 12.27 kB / 0.5165 GB, free: 380 kB / 394.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.37e-05/0.5421, allocations: 46.78 kB / 0.5165 GB, free: 324 kB / 394.7 MB Notification: Performance of pre-optimization done (n=33): time 2.374e-06/0.5421, allocations: 0 / 0.5165 GB, free: 324 kB / 394.7 MB Notification: Performance of matching and sorting (n=33): time 0.001027/0.5431, allocations: 0.4987 MB / 0.517 GB, free: 15.81 MB / 410.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001102/0.5433, allocations: 273 kB / 0.5173 GB, free: 15.48 MB / 410.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.005194/0.5485, allocations: 2.853 MB / 0.5201 GB, free: 12.59 MB / 410.7 MB Notification: Performance of collectPreVariables (initialization): time 7.053e-05/0.5486, allocations: 33.7 kB / 0.5201 GB, free: 12.55 MB / 410.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0008387/0.5494, allocations: 0.8723 MB / 0.5209 GB, free: 11.67 MB / 410.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001198/0.5495, allocations: 114.4 kB / 0.521 GB, free: 11.56 MB / 410.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.494e-05/0.5496, allocations: 8 kB / 0.5211 GB, free: 11.55 MB / 410.7 MB Notification: Performance of setup shared object (initialization): time 0.0001112/0.5497, allocations: 330 kB / 0.5214 GB, free: 11.22 MB / 410.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002783/0.55, allocations: 161.1 kB / 0.5215 GB, free: 11.07 MB / 410.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004105/0.5504, allocations: 346.1 kB / 0.5219 GB, free: 10.65 MB / 410.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003431/0.5507, allocations: 215.4 kB / 0.5221 GB, free: 10.44 MB / 410.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5e-06/0.5508, allocations: 0 / 0.5221 GB, free: 10.44 MB / 410.7 MB Notification: Performance of matching and sorting (n=56) (initialization): time 0.001322/0.5521, allocations: 0.6793 MB / 0.5227 GB, free: 9.75 MB / 410.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.328e-05/0.5521, allocations: 8 kB / 0.5227 GB, free: 9.742 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.107e-05/0.5521, allocations: 4 kB / 0.5227 GB, free: 9.738 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002592/0.5524, allocations: 68.72 kB / 0.5228 GB, free: 9.668 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004866/0.5529, allocations: 112.1 kB / 0.5229 GB, free: 9.559 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001532/0.5544, allocations: 1.607 MB / 0.5245 GB, free: 7.82 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000727/0.5552, allocations: 87.5 kB / 0.5246 GB, free: 7.734 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.765e-05/0.5552, allocations: 16 kB / 0.5246 GB, free: 7.719 MB / 410.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 16 * Number of states: 0 () * Number of discrete variables: 4 (cccvCharger.CV,energy.local_reset,cell.limIntegrator.local_reset,cell.cell.limIntegrator.local_reset) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (51): * Single equations (assignments): 50 * 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.0001402/0.5554, allocations: 136.9 kB / 0.5247 GB, free: 7.578 MB / 410.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003505/0.5557, allocations: 185.7 kB / 0.5249 GB, free: 7.395 MB / 410.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0009695/0.5567, allocations: 0.5555 MB / 0.5254 GB, free: 6.824 MB / 410.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.959e-06/0.5567, allocations: 4 kB / 0.5254 GB, free: 6.82 MB / 410.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.033e-06/0.5567, allocations: 4 kB / 0.5254 GB, free: 6.816 MB / 410.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.5e-06/0.5567, allocations: 0 / 0.5254 GB, free: 6.816 MB / 410.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003345/0.5601, allocations: 2.134 MB / 0.5275 GB, free: 4.609 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.869e-06/0.5601, allocations: 8.062 kB / 0.5275 GB, free: 4.602 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004264/0.5606, allocations: 79.94 kB / 0.5276 GB, free: 4.523 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.000151/0.5607, allocations: 48.78 kB / 0.5276 GB, free: 4.473 MB / 410.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.31e-05/0.5608, allocations: 16.11 kB / 0.5277 GB, free: 4.457 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001267/0.562, allocations: 1.553 MB / 0.5292 GB, free: 2.77 MB / 410.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.128e-06/0.5621, allocations: 3.984 kB / 0.5292 GB, free: 2.766 MB / 410.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001138/0.5632, allocations: 0.8382 MB / 0.53 GB, free: 1.883 MB / 410.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.00114/0.5643, allocations: 0.7516 MB / 0.5307 GB, free: 1.055 MB / 410.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.000224/0.5646, allocations: 16 kB / 0.5307 GB, free: 1.039 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0006361/0.5652, allocations: 67.94 kB / 0.5308 GB, free: 0.9727 MB / 410.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001003/0.5653, allocations: 35.89 kB / 0.5308 GB, free: 0.9375 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.831e-05/0.5654, allocations: 15.98 kB / 0.5309 GB, free: 0.9219 MB / 410.7 MB Notification: Performance of sorting global known variables: time 0.003395/0.5688, allocations: 2.202 MB / 0.533 GB, free: 14.69 MB / 426.7 MB Notification: Performance of sort global known variables: time 1.6e-07/0.5688, allocations: 3.938 kB / 0.533 GB, free: 14.69 MB / 426.7 MB Notification: Performance of remove unused functions: time 0.001124/0.5699, allocations: 303.3 kB / 0.5333 GB, free: 14.39 MB / 426.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 3 * Number of states: 5 (cell.cell.limIntegrator.y,cell.cell.capacitor[1].v,cell.cell.capacitor[2].v,cell.limIntegrator.y,energy.y) * Number of discrete variables: 1 (cccvCharger.CV) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (29): * Single equations (assignments): 28 * 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.002464/0.5724, allocations: 1.81 MB / 0.5351 GB, free: 12.64 MB / 426.7 MB Notification: Performance of simCode: created initialization part: time 0.001008/0.5734, allocations: 0.5154 MB / 0.5356 GB, free: 12.11 MB / 426.7 MB Notification: Performance of simCode: created event and clocks part: time 3.848e-06/0.5734, allocations: 8 kB / 0.5356 GB, free: 12.1 MB / 426.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0004716/0.5739, allocations: 326.3 kB / 0.5359 GB, free: 11.77 MB / 426.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001251/0.5752, allocations: 271.2 kB / 0.5362 GB, free: 11.5 MB / 426.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.007831/0.583, allocations: 3.476 MB / 0.5395 GB, free: 7.969 MB / 426.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001475/0.5845, allocations: 1.536 MB / 0.541 GB, free: 6.406 MB / 426.7 MB Notification: Performance of simCode: alias equations: time 0.0009322/0.5855, allocations: 303.1 kB / 0.5413 GB, free: 6.105 MB / 426.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001044/0.5866, allocations: 0.6672 MB / 0.542 GB, free: 5.438 MB / 426.7 MB Notification: Performance of SimCode: time 8.92e-07/0.5866, allocations: 0 / 0.542 GB, free: 5.438 MB / 426.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.2773/0.8639, allocations: 37.21 MB / 0.5783 GB, free: 114.3 MB / 426.7 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001573/0.8641, allocations: 238.4 kB / 0.5786 GB, free: 114.1 MB / 426.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 2.874/3.739, allocations: 0 / 0.5786 GB, free: 114.1 MB / 426.7 MB (rm -f Modelica_4.0.0_Modelica.Electrical.Batteries.Examples.CCCV_CellRC.pipe ; mkfifo Modelica_4.0.0_Modelica.Electrical.Batteries.Examples.CCCV_CellRC.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Electrical.Batteries.Examples.CCCV_CellRC.pipe >> ../files/Modelica_4.0.0_Modelica.Electrical.Batteries.Examples.CCCV_CellRC.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Modelica_4.0.0_Modelica.Electrical.Batteries.Examples.CCCV_CellRC_res.mat --tempDir=temp_Modelica_4_0_0_Modelica_Electrical_Batteries_Examples_CCCV_CellRC_fmu --startTime=0 --stopTime=1200 --timeout=50 --tolerance=1e-06 Modelica_4_0_0_Modelica_Electrical_Batteries_Examples_CCCV_CellRC.fmu > Modelica_4.0.0_Modelica.Electrical.Batteries.Examples.CCCV_CellRC.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result Modelica_4.0.0_Modelica.Electrical.Batteries.Examples.CCCV_CellRC_res.mat does not exist to compare? outputFormat=mat