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.001088/0.001088, allocations: 180.2 kB / 16.39 MB, free: 5.766 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.272/1.272, allocations: 223.2 MB / 240.3 MB, free: 11.9 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.0009536/0.0009533, allocations: 102 kB / 291.5 MB, free: 10.91 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0002532/0.0002531, allocations: 4 kB / 351.2 MB, free: 15.21 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2213/0.2216, allocations: 50.39 MB / 401.6 MB, free: 32.59 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1087/0.3303, allocations: 89.78 MB / 491.4 MB, free: 6.68 MB / 362.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002341/0.3306, allocations: 84.55 kB / 491.4 MB, free: 6.598 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.2636/0.5942, allocations: 34.83 MB / 0.5139 GB, free: 92.84 MB / 378.7 MB Notification: Performance of FrontEnd: time 3.486e-06/0.5943, allocations: 0 / 0.5139 GB, free: 92.84 MB / 378.7 MB Notification: Performance of Transformations before backend: time 0.0002344/0.5945, allocations: 38.27 kB / 0.514 GB, free: 92.84 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.004519/0.5991, allocations: 2.136 MB / 0.5161 GB, free: 91.68 MB / 378.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.385e-05/0.5991, allocations: 14.56 kB / 0.5161 GB, free: 91.68 MB / 378.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.000271/0.5994, allocations: 107.2 kB / 0.5162 GB, free: 91.64 MB / 378.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0007566/0.6002, allocations: 210 kB / 0.5164 GB, free: 91.54 MB / 378.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.003558/0.6037, allocations: 1.661 MB / 0.518 GB, free: 90.88 MB / 378.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001034/0.6039, allocations: 76.17 kB / 0.5181 GB, free: 90.82 MB / 378.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001257/0.604, allocations: 62.06 kB / 0.5181 GB, free: 90.8 MB / 378.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001353/0.6054, allocations: 0.8256 MB / 0.5189 GB, free: 90.38 MB / 378.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.683e-05/0.6054, allocations: 3.625 kB / 0.5189 GB, free: 90.38 MB / 378.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.047e-05/0.6055, allocations: 25.66 kB / 0.519 GB, free: 90.36 MB / 378.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.144e-05/0.6055, allocations: 20.09 kB / 0.519 GB, free: 90.35 MB / 378.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0009713/0.6065, allocations: 0.5286 MB / 0.5195 GB, free: 90.16 MB / 378.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.005874/0.6124, allocations: 4.063 MB / 0.5235 GB, free: 88 MB / 378.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001212/0.6136, allocations: 0.5535 MB / 0.524 GB, free: 87.8 MB / 378.7 MB Notification: Performance of preOpt evalFunc (simulation): time 4.623e-05/0.6137, allocations: 18.95 kB / 0.524 GB, free: 87.79 MB / 378.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.339e-05/0.6137, allocations: 34.84 kB / 0.5241 GB, free: 87.75 MB / 378.7 MB Notification: Performance of pre-optimization done (n=33): time 2.184e-06/0.6137, allocations: 2.344 kB / 0.5241 GB, free: 87.75 MB / 378.7 MB Notification: Performance of matching and sorting (n=33): time 0.002369/0.6161, allocations: 0.9866 MB / 0.525 GB, free: 87.3 MB / 378.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.568e-05/0.6162, allocations: 265 kB / 0.5253 GB, free: 86.98 MB / 378.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.004583/0.6208, allocations: 2.883 MB / 0.5281 GB, free: 84.33 MB / 378.7 MB Notification: Performance of collectPreVariables (initialization): time 6.896e-05/0.6209, allocations: 37.64 kB / 0.5281 GB, free: 84.29 MB / 378.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0006738/0.6216, allocations: 0.8596 MB / 0.529 GB, free: 83.43 MB / 378.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001114/0.6217, allocations: 117.5 kB / 0.5291 GB, free: 83.31 MB / 378.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.448e-05/0.6217, allocations: 16 kB / 0.5291 GB, free: 83.3 MB / 378.7 MB Notification: Performance of setup shared object (initialization): time 5.737e-05/0.6218, allocations: 325.9 kB / 0.5294 GB, free: 82.97 MB / 378.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004464/0.6222, allocations: 221 kB / 0.5296 GB, free: 82.75 MB / 378.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004682/0.6227, allocations: 402 kB / 0.53 GB, free: 82.29 MB / 378.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004382/0.6231, allocations: 269.7 kB / 0.5303 GB, free: 82.04 MB / 378.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.581e-06/0.6232, allocations: 4 kB / 0.5303 GB, free: 82.03 MB / 378.7 MB Notification: Performance of matching and sorting (n=56) (initialization): time 0.001585/0.6248, allocations: 0.8273 MB / 0.5311 GB, free: 81.19 MB / 378.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.456e-05/0.6248, allocations: 4 kB / 0.5311 GB, free: 81.19 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.969e-06/0.6248, allocations: 4 kB / 0.5311 GB, free: 81.18 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0003348/0.6251, allocations: 96.98 kB / 0.5312 GB, free: 81.09 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004171/0.6256, allocations: 111.8 kB / 0.5313 GB, free: 80.98 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001686/0.6273, allocations: 1.92 MB / 0.5331 GB, free: 78.92 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0007924/0.6281, allocations: 83.41 kB / 0.5332 GB, free: 78.84 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.092e-05/0.6281, allocations: 16 kB / 0.5332 GB, free: 78.82 MB / 378.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 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (48): * Single equations (assignments): 47 * 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 8} Notification: Performance of prepare postOptimizeDAE: time 0.0009085/0.629, allocations: 0.6524 MB / 0.5339 GB, free: 78.16 MB / 378.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003862/0.6294, allocations: 185.7 kB / 0.5341 GB, free: 77.98 MB / 378.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001334/0.6308, allocations: 0.6803 MB / 0.5347 GB, free: 77.28 MB / 378.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.831e-06/0.6308, allocations: 4.188 kB / 0.5347 GB, free: 77.28 MB / 378.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.767e-06/0.6308, allocations: 7.953 kB / 0.5347 GB, free: 77.27 MB / 378.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.631e-06/0.6308, allocations: 3.938 kB / 0.5347 GB, free: 77.27 MB / 378.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001696/0.6325, allocations: 1.361 MB / 0.5361 GB, free: 75.86 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.849e-06/0.6325, allocations: 2.062 kB / 0.5361 GB, free: 75.86 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003766/0.6329, allocations: 75.89 kB / 0.5361 GB, free: 75.78 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0002568/0.6332, allocations: 96.11 kB / 0.5362 GB, free: 75.69 MB / 378.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.334e-05/0.6332, allocations: 11.98 kB / 0.5362 GB, free: 75.68 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001527/0.6348, allocations: 1.902 MB / 0.5381 GB, free: 73.64 MB / 378.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.392e-06/0.6348, allocations: 0 / 0.5381 GB, free: 73.64 MB / 378.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001546/0.6363, allocations: 0.9849 MB / 0.5391 GB, free: 72.63 MB / 378.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001068/0.6374, allocations: 0.7594 MB / 0.5398 GB, free: 71.79 MB / 378.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002569/0.6377, allocations: 12 kB / 0.5398 GB, free: 71.78 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0006485/0.6383, allocations: 71.94 kB / 0.5399 GB, free: 71.71 MB / 378.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.677e-05/0.6385, allocations: 39.88 kB / 0.5399 GB, free: 71.67 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.551e-05/0.6385, allocations: 15.94 kB / 0.5399 GB, free: 71.66 MB / 378.7 MB Notification: Performance of sorting global known variables: time 0.00285/0.6413, allocations: 2.224 MB / 0.5421 GB, free: 69.41 MB / 378.7 MB Notification: Performance of sort global known variables: time 1.2e-07/0.6413, allocations: 4 kB / 0.5421 GB, free: 69.41 MB / 378.7 MB Notification: Performance of remove unused functions: time 0.001036/0.6424, allocations: 299.5 kB / 0.5424 GB, free: 69.12 MB / 378.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * 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 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (25): * Single equations (assignments): 24 * 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 8} Notification: Performance of Backend phase and start with SimCode phase: time 0.002471/0.6449, allocations: 1.879 MB / 0.5442 GB, free: 67.39 MB / 378.7 MB Notification: Performance of simCode: created initialization part: time 0.001243/0.6461, allocations: 0.6477 MB / 0.5449 GB, free: 66.73 MB / 378.7 MB Notification: Performance of simCode: created event and clocks part: time 3.166e-06/0.6462, allocations: 0 / 0.5449 GB, free: 66.73 MB / 378.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0005704/0.6467, allocations: 387 kB / 0.5452 GB, free: 66.34 MB / 378.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001149/0.6479, allocations: 273.7 kB / 0.5455 GB, free: 66.08 MB / 378.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.02726/0.6752, allocations: 16.49 MB / 0.5616 GB, free: 48.77 MB / 378.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0011/0.6763, allocations: 1.528 MB / 0.5631 GB, free: 47.22 MB / 378.7 MB Notification: Performance of simCode: alias equations: time 0.001012/0.6773, allocations: 311.1 kB / 0.5634 GB, free: 46.91 MB / 378.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001026/0.6784, allocations: 0.671 MB / 0.564 GB, free: 46.24 MB / 378.7 MB Notification: Performance of SimCode: time 1.603e-06/0.6784, allocations: 4 kB / 0.564 GB, free: 46.23 MB / 378.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.05563/0.734, allocations: 38.04 MB / 0.6012 GB, free: 8.527 MB / 378.7 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001365/0.7342, allocations: 245.1 kB / 0.6014 GB, free: 8.195 MB / 378.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 2.933/3.667, allocations: 0 / 0.6014 GB, free: 8.195 MB / 378.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