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"}) [:1:1-1:32:writable] Error: Class GC_set_max_heap_size not found in scope (looking for a function or record). Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001401/0.001401, allocations: 186 kB / 8.137 MB, free: 2.188 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.143/1.143, allocations: 221.4 MB / 229.9 MB, free: 3.016 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.0009246/0.0009246, allocations: 100.8 kB / 280.8 MB, free: 1.258 MB / 218.7 MB Notification: Performance of FrontEnd - loaded program: time 0.1044/0.1054, allocations: 55.82 MB / 336.6 MB, free: 9.414 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2029/0.3083, allocations: 50.39 MB / 387 MB, free: 37.96 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.09248/0.4008, allocations: 88.95 MB / 476 MB, free: 13.8 MB / 362.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0001843/0.401, allocations: 80.84 kB / 476 MB, free: 13.72 MB / 362.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.2311/0.6322, allocations: 35.78 MB / 0.4998 GB, free: 92.47 MB / 378.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.438e-05/0.6322, allocations: 14.62 kB / 0.4998 GB, free: 92.47 MB / 378.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0004352/0.6326, allocations: 213.3 kB / 0.5 GB, free: 92.36 MB / 378.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002894/0.6356, allocations: 1.663 MB / 0.5017 GB, free: 91.92 MB / 378.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 7.784e-05/0.6357, allocations: 54.92 kB / 0.5017 GB, free: 91.89 MB / 378.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001007/0.6358, allocations: 36.56 kB / 0.5017 GB, free: 91.89 MB / 378.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0007586/0.6365, allocations: 456.4 kB / 0.5022 GB, free: 91.88 MB / 378.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0009305/0.6375, allocations: 0.6751 MB / 0.5028 GB, free: 91.72 MB / 378.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.024e-05/0.6375, allocations: 3.094 kB / 0.5028 GB, free: 91.72 MB / 378.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.522e-05/0.6376, allocations: 3.844 kB / 0.5028 GB, free: 91.72 MB / 378.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.346e-05/0.6376, allocations: 15.09 kB / 0.5029 GB, free: 91.72 MB / 378.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.004909/0.6425, allocations: 3.939 MB / 0.5067 GB, free: 90.69 MB / 378.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003561/0.6429, allocations: 241.9 kB / 0.5069 GB, free: 90.68 MB / 378.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004521/0.6434, allocations: 312.6 kB / 0.5072 GB, free: 90.67 MB / 378.7 MB Notification: Performance of preOpt evalFunc (simulation): time 4.024e-05/0.6434, allocations: 8.562 kB / 0.5072 GB, free: 90.67 MB / 378.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.023e-05/0.6434, allocations: 42.53 kB / 0.5073 GB, free: 90.63 MB / 378.7 MB Notification: Performance of pre-optimization done (n=33): time 2.284e-06/0.6434, allocations: 3.562 kB / 0.5073 GB, free: 90.63 MB / 378.7 MB Notification: Performance of matching and sorting (n=33): time 0.000729/0.6442, allocations: 486 kB / 0.5078 GB, free: 90.49 MB / 378.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.256e-05/0.6442, allocations: 268.4 kB / 0.508 GB, free: 90.18 MB / 378.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.003514/0.6478, allocations: 2.722 MB / 0.5107 GB, free: 89.4 MB / 378.7 MB Notification: Performance of collectPreVariables (initialization): time 4.114e-05/0.6478, allocations: 25.7 kB / 0.5107 GB, free: 89.37 MB / 378.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002501/0.6481, allocations: 471.6 kB / 0.5111 GB, free: 89.08 MB / 378.7 MB Notification: Performance of collectInitialBindings (initialization): time 7.078e-05/0.6482, allocations: 113 kB / 0.5112 GB, free: 88.99 MB / 378.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.978e-05/0.6482, allocations: 0 / 0.5112 GB, free: 88.99 MB / 378.7 MB Notification: Performance of setup shared object (initialization): time 5.834e-05/0.6482, allocations: 326.5 kB / 0.5116 GB, free: 88.68 MB / 378.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002103/0.6485, allocations: 162.9 kB / 0.5117 GB, free: 88.61 MB / 378.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002834/0.6487, allocations: 331.8 kB / 0.512 GB, free: 88.34 MB / 378.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002509/0.649, allocations: 206.8 kB / 0.5122 GB, free: 88.27 MB / 378.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.206e-06/0.649, allocations: 0 / 0.5122 GB, free: 88.27 MB / 378.7 MB Notification: Performance of matching and sorting (n=56) (initialization): time 0.0009138/0.6499, allocations: 0.6427 MB / 0.5129 GB, free: 87.98 MB / 378.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.417e-05/0.65, allocations: 4.688 kB / 0.5129 GB, free: 87.98 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.973e-06/0.65, allocations: 3.875 kB / 0.5129 GB, free: 87.98 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002103/0.6502, allocations: 57.92 kB / 0.5129 GB, free: 87.96 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004771/0.6507, allocations: 130.4 kB / 0.513 GB, free: 87.96 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001077/0.6518, allocations: 1.514 MB / 0.5145 GB, free: 86.57 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005735/0.6524, allocations: 65.34 kB / 0.5146 GB, free: 86.55 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.256e-05/0.6524, allocations: 21.66 kB / 0.5146 GB, free: 86.54 MB / 378.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.0001447/0.6526, allocations: 118.5 kB / 0.5147 GB, free: 86.43 MB / 378.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001913/0.6527, allocations: 174.7 kB / 0.5149 GB, free: 86.34 MB / 378.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0007016/0.6535, allocations: 0.532 MB / 0.5154 GB, free: 86.12 MB / 378.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.697e-06/0.6535, allocations: 3.906 kB / 0.5154 GB, free: 86.12 MB / 378.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.232e-06/0.6535, allocations: 0 / 0.5154 GB, free: 86.12 MB / 378.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.481e-06/0.6535, allocations: 0 / 0.5154 GB, free: 86.12 MB / 378.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002238/0.6557, allocations: 2.032 MB / 0.5174 GB, free: 85.2 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.586e-06/0.6557, allocations: 0 / 0.5174 GB, free: 85.2 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004146/0.6562, allocations: 88.66 kB / 0.5175 GB, free: 85.19 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.000137/0.6563, allocations: 46.23 kB / 0.5175 GB, free: 85.17 MB / 378.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.04e-05/0.6564, allocations: 10.44 kB / 0.5175 GB, free: 85.17 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001007/0.6574, allocations: 1.476 MB / 0.519 GB, free: 83.79 MB / 378.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.427e-06/0.6574, allocations: 5.688 kB / 0.519 GB, free: 83.79 MB / 378.7 MB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.001084/0.6585, allocations: 0.8194 MB / 0.5198 GB, free: 83.29 MB / 378.7 MB Notification: Performance of postOpt generateSymbolicLinearization (simulation): time 0.001145/0.6596, allocations: 1.41 MB / 0.5212 GB, free: 82.33 MB / 378.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0007681/0.6604, allocations: 0.7516 MB / 0.5219 GB, free: 81.73 MB / 378.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002234/0.6606, allocations: 6.031 kB / 0.5219 GB, free: 81.73 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0006014/0.6613, allocations: 67.62 kB / 0.522 GB, free: 81.73 MB / 378.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.966e-05/0.6614, allocations: 37.41 kB / 0.522 GB, free: 81.73 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.632e-05/0.6614, allocations: 13.38 kB / 0.522 GB, free: 81.72 MB / 378.7 MB Notification: Performance of sort global known variables: time 0.002611/0.664, allocations: 2.074 MB / 0.524 GB, free: 80.17 MB / 378.7 MB Notification: Performance of remove unused functions: time 0.001316/0.6653, allocations: 261.5 kB / 0.5243 GB, free: 79.91 MB / 378.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.000685/0.666, allocations: 346.5 kB / 0.5246 GB, free: 79.69 MB / 378.7 MB Notification: Performance of simCode: created initialization part: time 0.0007175/0.6668, allocations: 0.4989 MB / 0.5251 GB, free: 79.23 MB / 378.7 MB Notification: Performance of simCode: created event and clocks part: time 3.277e-06/0.6668, allocations: 0.9375 kB / 0.5251 GB, free: 79.23 MB / 378.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0003661/0.6671, allocations: 298.7 kB / 0.5254 GB, free: 78.95 MB / 378.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0008406/0.668, allocations: 232.7 kB / 0.5256 GB, free: 78.75 MB / 378.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00529/0.6733, allocations: 3.037 MB / 0.5286 GB, free: 76.03 MB / 378.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.00134/0.6746, allocations: 1.631 MB / 0.5302 GB, free: 74.66 MB / 378.7 MB Notification: Performance of SimCode: time 3.8e-07/0.6747, allocations: 0 / 0.5302 GB, free: 74.66 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)