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.0008695/0.0008691, allocations: 175.3 kB / 8.349 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.295/1.295, allocations: 221.5 MB / 230.3 MB, free: 7.566 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.0009041/0.0009041, allocations: 99.58 kB / 281.2 MB, free: 5.336 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 2.113e-05/2.117e-05, allocations: 7.984 kB / 337.1 MB, free: 9.945 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1126/0.1126, allocations: 50.42 MB / 387.6 MB, free: 7.488 MB / 282.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.3808/0.4935, allocations: 89.04 MB / 476.6 MB, free: 5.668 MB / 346.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.000266/0.4938, allocations: 83.95 kB / 476.7 MB, free: 5.586 MB / 346.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.079/0.5729, allocations: 34.29 MB / 0.499 GB, free: 3.051 MB / 378.7 MB Notification: Performance of FrontEnd: time 1.783e-06/0.5729, allocations: 0 / 0.499 GB, free: 3.051 MB / 378.7 MB Notification: Performance of Transformations before backend: time 0.0001199/0.573, allocations: 43.86 kB / 0.499 GB, free: 3.008 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: 154 * Number of variables: 154 Notification: Performance of Generate backend data structure: time 0.002481/0.5755, allocations: 1.644 MB / 0.5006 GB, free: 1.312 MB / 378.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.656e-05/0.5756, allocations: 8.031 kB / 0.5006 GB, free: 1.305 MB / 378.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0003066/0.5759, allocations: 217.4 kB / 0.5008 GB, free: 1.09 MB / 378.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002657/0.5786, allocations: 1.638 MB / 0.5024 GB, free: 15.38 MB / 394.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 9.172e-05/0.5787, allocations: 62.98 kB / 0.5025 GB, free: 15.31 MB / 394.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 8.154e-05/0.5788, allocations: 39.95 kB / 0.5025 GB, free: 15.27 MB / 394.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0007858/0.5796, allocations: 446.5 kB / 0.503 GB, free: 14.84 MB / 394.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001088/0.5807, allocations: 0.6788 MB / 0.5036 GB, free: 14.11 MB / 394.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.631e-05/0.5807, allocations: 4 kB / 0.5036 GB, free: 14.1 MB / 394.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.32e-05/0.5808, allocations: 4 kB / 0.5036 GB, free: 14.1 MB / 394.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.33e-05/0.5808, allocations: 16 kB / 0.5037 GB, free: 14.08 MB / 394.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.006084/0.5869, allocations: 3.921 MB / 0.5075 GB, free: 10.05 MB / 394.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0009123/0.5878, allocations: 434.2 kB / 0.5079 GB, free: 9.621 MB / 394.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0005433/0.5884, allocations: 317.2 kB / 0.5082 GB, free: 9.309 MB / 394.7 MB Notification: Performance of preOpt evalFunc (simulation): time 3.826e-05/0.5884, allocations: 288 / 0.5082 GB, free: 9.309 MB / 394.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.548e-05/0.5885, allocations: 38.84 kB / 0.5082 GB, free: 9.262 MB / 394.7 MB Notification: Performance of pre-optimization done (n=33): time 2.124e-06/0.5885, allocations: 0 / 0.5082 GB, free: 9.262 MB / 394.7 MB Notification: Performance of matching and sorting (n=33): time 0.0009716/0.5895, allocations: 490.6 kB / 0.5087 GB, free: 8.773 MB / 394.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001302/0.5896, allocations: 261 kB / 0.509 GB, free: 8.457 MB / 394.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.003818/0.5934, allocations: 2.711 MB / 0.5116 GB, free: 5.711 MB / 394.7 MB Notification: Performance of collectPreVariables (initialization): time 6.587e-05/0.5935, allocations: 29.7 kB / 0.5116 GB, free: 5.676 MB / 394.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.001023/0.5945, allocations: 0.8679 MB / 0.5125 GB, free: 4.797 MB / 394.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001403/0.5947, allocations: 118.3 kB / 0.5126 GB, free: 4.68 MB / 394.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.113e-05/0.5947, allocations: 0 / 0.5126 GB, free: 4.68 MB / 394.7 MB Notification: Performance of setup shared object (initialization): time 0.000172/0.5949, allocations: 329.9 kB / 0.5129 GB, free: 4.352 MB / 394.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002683/0.5952, allocations: 153.1 kB / 0.5131 GB, free: 4.203 MB / 394.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000415/0.5956, allocations: 333 kB / 0.5134 GB, free: 3.801 MB / 394.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003329/0.596, allocations: 203.6 kB / 0.5136 GB, free: 3.602 MB / 394.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.99e-06/0.596, allocations: 0 / 0.5136 GB, free: 3.602 MB / 394.7 MB Notification: Performance of matching and sorting (n=56) (initialization): time 0.001216/0.5972, allocations: 0.6323 MB / 0.5142 GB, free: 2.957 MB / 394.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.617e-05/0.5972, allocations: 9.094 kB / 0.5142 GB, free: 2.949 MB / 394.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.777e-05/0.5973, allocations: 7.984 kB / 0.5142 GB, free: 2.941 MB / 394.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002996/0.5976, allocations: 52.78 kB / 0.5143 GB, free: 2.887 MB / 394.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005157/0.5981, allocations: 124 kB / 0.5144 GB, free: 2.766 MB / 394.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.00155/0.5996, allocations: 1.556 MB / 0.5159 GB, free: 1.094 MB / 394.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0006051/0.6003, allocations: 63.75 kB / 0.516 GB, free: 1.031 MB / 394.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.535e-05/0.6003, allocations: 19.98 kB / 0.516 GB, free: 1.012 MB / 394.7 MB Warning: Iteration variables with default zero start attribute in torn nonlinear equation system: cccvCharger.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: 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.0001893/0.6005, allocations: 128.7 kB / 0.5161 GB, free: 0.8789 MB / 394.7 MB Notification: Performance of postOpt createAliasVarsForOutputStates (simulation): time 0.0006925/0.6012, allocations: 492.3 kB / 0.5166 GB, free: 396 kB / 394.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.000303/0.6015, allocations: 177.8 kB / 0.5167 GB, free: 216 kB / 394.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001109/0.6026, allocations: 0.5318 MB / 0.5173 GB, free: 15.67 MB / 410.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.075e-06/0.6027, allocations: 0 / 0.5173 GB, free: 15.67 MB / 410.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.479e-06/0.6027, allocations: 4 kB / 0.5173 GB, free: 15.67 MB / 410.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.649e-06/0.6027, allocations: 0 / 0.5173 GB, free: 15.67 MB / 410.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002898/0.6056, allocations: 2.019 MB / 0.5192 GB, free: 13.59 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.136e-06/0.6056, allocations: 0 / 0.5192 GB, free: 13.59 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004462/0.6061, allocations: 87.88 kB / 0.5193 GB, free: 13.5 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001429/0.6062, allocations: 44.91 kB / 0.5194 GB, free: 13.46 MB / 410.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.737e-05/0.6062, allocations: 8 kB / 0.5194 GB, free: 13.45 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.00136/0.6076, allocations: 1.505 MB / 0.5208 GB, free: 11.83 MB / 410.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.6e-06/0.6076, allocations: 4.031 kB / 0.5208 GB, free: 11.82 MB / 410.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001032/0.6087, allocations: 0.8019 MB / 0.5216 GB, free: 10.98 MB / 410.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0008718/0.6096, allocations: 0.7516 MB / 0.5224 GB, free: 10.15 MB / 410.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001562/0.6097, allocations: 7.984 kB / 0.5224 GB, free: 10.14 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.00057/0.6103, allocations: 59.95 kB / 0.5224 GB, free: 10.08 MB / 410.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.581e-05/0.6104, allocations: 35.94 kB / 0.5225 GB, free: 10.05 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.283e-05/0.6104, allocations: 12 kB / 0.5225 GB, free: 10.04 MB / 410.7 MB Notification: Performance of sorting global known variables: time 0.002882/0.6133, allocations: 2.066 MB / 0.5245 GB, free: 7.949 MB / 410.7 MB Notification: Performance of sort global known variables: time 1.8e-07/0.6133, allocations: 4 kB / 0.5245 GB, free: 7.945 MB / 410.7 MB Notification: Performance of remove unused functions: time 0.001038/0.6144, allocations: 259.4 kB / 0.5247 GB, free: 7.691 MB / 410.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.002148/0.6165, allocations: 1.766 MB / 0.5265 GB, free: 5.961 MB / 410.7 MB Notification: Performance of simCode: created initialization part: time 0.0009177/0.6175, allocations: 0.4943 MB / 0.5269 GB, free: 5.457 MB / 410.7 MB Notification: Performance of simCode: created event and clocks part: time 3.106e-06/0.6175, allocations: 0 / 0.5269 GB, free: 5.457 MB / 410.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0004209/0.6179, allocations: 301.6 kB / 0.5272 GB, free: 5.152 MB / 410.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0009983/0.6189, allocations: 233 kB / 0.5274 GB, free: 4.922 MB / 410.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.007032/0.626, allocations: 3.43 MB / 0.5308 GB, free: 1.43 MB / 410.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001187/0.6272, allocations: 1.531 MB / 0.5323 GB, free: 15.87 MB / 426.7 MB Notification: Performance of simCode: alias equations: time 0.0007936/0.628, allocations: 306.5 kB / 0.5326 GB, free: 15.57 MB / 426.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0008681/0.6289, allocations: 0.6711 MB / 0.5332 GB, free: 14.89 MB / 426.7 MB Notification: Performance of SimCode: time 1.223e-06/0.6289, allocations: 0 / 0.5332 GB, free: 14.89 MB / 426.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.3316/0.9605, allocations: 30.55 MB / 0.5631 GB, free: 121.6 MB / 426.7 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001584/0.9607, allocations: 175.3 kB / 0.5632 GB, free: 121.5 MB / 426.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 2.933/3.894, allocations: 0.5469 kB / 0.5632 GB, free: 121.5 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