Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_4.0.0_Modelica.Electrical.Batteries.Examples.CCCV_StackRC.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_StackRC,fileNamePrefix="Modelica_4_0_0_Modelica_Electrical_Batteries_Examples_CCCV_StackRC",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Electrical.Batteries.Examples.CCCV_StackRC,fileNamePrefix="Modelica_4_0_0_Modelica_Electrical_Batteries_Examples_CCCV_StackRC",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.00107/0.001069, allocations: 183.4 kB / 8.138 MB, free: 2.223 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.154/1.154, allocations: 221.4 MB / 229.9 MB, free: 3.09 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.0008672/0.0008673, allocations: 106 kB / 280.8 MB, free: 1.273 MB / 218.7 MB Notification: Performance of FrontEnd - loaded program: time 0.09696/0.09786, allocations: 55.81 MB / 336.6 MB, free: 9.434 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2068/0.3046, allocations: 50.39 MB / 387 MB, free: 37.99 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.09682/0.4015, allocations: 93.24 MB / 480.2 MB, free: 9.508 MB / 362.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002249/0.4018, allocations: 83.78 kB / 480.3 MB, free: 9.43 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: 1013 * Number of variables: 1013 Notification: Performance of Generate backend data structure: time 0.8807/1.283, allocations: 284.2 MB / 0.7466 GB, free: 54 MB / 426.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.541e-05/1.283, allocations: 12 kB / 0.7466 GB, free: 53.98 MB / 426.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.006306/1.289, allocations: 1.74 MB / 0.7483 GB, free: 52.22 MB / 426.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.05285/1.342, allocations: 25.5 MB / 0.7732 GB, free: 27.01 MB / 426.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0005333/1.342, allocations: 253.6 kB / 0.7735 GB, free: 26.75 MB / 426.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001682/1.344, allocations: 235.9 kB / 0.7737 GB, free: 26.52 MB / 426.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.009478/1.354, allocations: 5.693 MB / 0.7792 GB, free: 20.83 MB / 426.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.009188/1.363, allocations: 6.894 MB / 0.786 GB, free: 13.68 MB / 426.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.316e-05/1.363, allocations: 0 / 0.786 GB, free: 13.68 MB / 426.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.000525/1.363, allocations: 11.94 kB / 0.786 GB, free: 13.67 MB / 426.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.5e-05/1.363, allocations: 99.94 kB / 0.7861 GB, free: 13.57 MB / 426.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.3039/1.667, allocations: 33.17 MB / 0.8185 GB, free: 100.5 MB / 442.8 MB Notification: Performance of preOpt comSubExp (simulation): time 0.003529/1.671, allocations: 2.88 MB / 0.8213 GB, free: 100.4 MB / 442.8 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.003922/1.675, allocations: 3.498 MB / 0.8247 GB, free: 100.4 MB / 442.8 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0001201/1.675, allocations: 27.47 kB / 0.8247 GB, free: 100.4 MB / 442.8 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.684e-05/1.675, allocations: 79.28 kB / 0.8248 GB, free: 100.4 MB / 442.8 MB Notification: Performance of pre-optimization done (n=231): time 3.626e-06/1.675, allocations: 0 / 0.8248 GB, free: 100.4 MB / 442.8 MB Notification: Performance of matching and sorting (n=231): time 0.008196/1.683, allocations: 5.163 MB / 0.8298 GB, free: 100.3 MB / 442.8 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0002357/1.684, allocations: 1.297 MB / 0.8311 GB, free: 98.71 MB / 442.8 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.04489/1.728, allocations: 26.67 MB / 0.8572 GB, free: 97.84 MB / 442.8 MB Notification: Performance of collectPreVariables (initialization): time 0.0007134/1.729, allocations: 33.42 kB / 0.8572 GB, free: 97.81 MB / 442.8 MB Notification: Performance of collectInitialEqns (initialization): time 0.005158/1.734, allocations: 3.281 MB / 0.8604 GB, free: 97.16 MB / 442.8 MB Notification: Performance of collectInitialBindings (initialization): time 0.001735/1.736, allocations: 0.7786 MB / 0.8611 GB, free: 96.75 MB / 442.8 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002525/1.736, allocations: 3 kB / 0.8612 GB, free: 96.75 MB / 442.8 MB Notification: Performance of setup shared object (initialization): time 0.000157/1.737, allocations: 432.9 kB / 0.8616 GB, free: 96.44 MB / 442.8 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002553/1.739, allocations: 2.248 MB / 0.8638 GB, free: 96.43 MB / 442.8 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.00321/1.742, allocations: 3.27 MB / 0.867 GB, free: 95.48 MB / 442.8 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.002721/1.745, allocations: 2.653 MB / 0.8695 GB, free: 95.43 MB / 442.8 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.01e-05/1.745, allocations: 10.62 kB / 0.8696 GB, free: 95.43 MB / 442.8 MB Notification: Performance of matching and sorting (n=348) (initialization): time 0.01153/1.757, allocations: 6.748 MB / 0.8761 GB, free: 94.48 MB / 442.8 MB Notification: Performance of prepare postOptimizeDAE: time 1.543e-05/1.757, allocations: 5.656 kB / 0.8762 GB, free: 94.48 MB / 442.8 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.694e-05/1.757, allocations: 14.94 kB / 0.8762 GB, free: 94.48 MB / 442.8 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001155/1.758, allocations: 0.5284 MB / 0.8767 GB, free: 94.47 MB / 442.8 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.003385/1.761, allocations: 0.901 MB / 0.8776 GB, free: 94.47 MB / 442.8 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.006098/1.767, allocations: 5.51 MB / 0.8829 GB, free: 91.9 MB / 442.8 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.006316/1.774, allocations: 0.6116 MB / 0.8835 GB, free: 91.84 MB / 442.8 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0004718/1.774, allocations: 100.8 kB / 0.8836 GB, free: 91.81 MB / 442.8 MB Warning: Iteration variables with default zero start attribute in torn nonlinear equation system: stack.cell[1,1].n.v:VARIABLE(flow=false unit = "V" ) "Potential at the pin" type: Real [3,2] stack.cell[3,1].v:VARIABLE(unit = "V" ) "Voltage drop of the two pins (= p.v - n.v)" type: Real [3,2] 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: 70 * Number of states: 0 () * Number of discrete variables: 14 (cccvCharger.CV,energy.local_reset,stack.cell[3,2].limIntegrator.local_reset,stack.cell[3,2].cell.limIntegrator.local_reset,stack.cell[3,1].limIntegrator.local_reset,stack.cell[3,1].cell.limIntegrator.local_reset,stack.cell[2,2].limIntegrator.local_reset,stack.cell[2,2].cell.limIntegrator.local_reset,stack.cell[2,1].limIntegrator.local_reset,stack.cell[2,1].cell.limIntegrator.local_reset,stack.cell[1,2].limIntegrator.local_reset,stack.cell[1,2].cell.limIntegrator.local_reset,stack.cell[1,1].limIntegrator.local_reset,stack.cell[1,1].cell.limIntegrator.local_reset) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (308): * Single equations (assignments): 307 * 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 {3 38} Notification: Performance of prepare postOptimizeDAE: time 0.0008312/1.775, allocations: 200.5 kB / 0.8838 GB, free: 91.7 MB / 442.8 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.004029/1.779, allocations: 1.511 MB / 0.8853 GB, free: 90.86 MB / 442.8 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01488/1.794, allocations: 6.219 MB / 0.8914 GB, free: 89.1 MB / 442.8 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.865e-05/1.794, allocations: 23.16 kB / 0.8914 GB, free: 89.1 MB / 442.8 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.841e-06/1.794, allocations: 0 / 0.8914 GB, free: 89.1 MB / 442.8 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.042e-05/1.794, allocations: 20.3 kB / 0.8914 GB, free: 89.1 MB / 442.8 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.03298/1.827, allocations: 18.16 MB / 0.9091 GB, free: 80.29 MB / 442.8 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.446e-06/1.827, allocations: 0 / 0.9091 GB, free: 80.29 MB / 442.8 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.002976/1.83, allocations: 0.7455 MB / 0.9099 GB, free: 79.75 MB / 442.8 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.000953/1.831, allocations: 443.4 kB / 0.9103 GB, free: 79.38 MB / 442.8 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.000224/1.831, allocations: 42.03 kB / 0.9103 GB, free: 79.35 MB / 442.8 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.004652/1.836, allocations: 4.763 MB / 0.915 GB, free: 75.07 MB / 442.8 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.496e-06/1.836, allocations: 0 / 0.915 GB, free: 75.07 MB / 442.8 MB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.01043/1.846, allocations: 8.498 MB / 0.9233 GB, free: 67.39 MB / 442.8 MB Notification: Performance of postOpt generateSymbolicLinearization (simulation): time 0.01338/1.86, allocations: 12.05 MB / 0.9351 GB, free: 56.54 MB / 442.8 MB Notification: Performance of postOpt removeConstants (simulation): time 0.01096/1.871, allocations: 7.415 MB / 0.9423 GB, free: 48.92 MB / 442.8 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.004366/1.875, allocations: 41.95 kB / 0.9423 GB, free: 48.89 MB / 442.8 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.006811/1.882, allocations: 0.6932 MB / 0.943 GB, free: 48.45 MB / 442.8 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.000973/1.883, allocations: 394.7 kB / 0.9434 GB, free: 48.21 MB / 442.8 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0004/1.883, allocations: 65.91 kB / 0.9435 GB, free: 48.16 MB / 442.8 MB Notification: Performance of sort global known variables: time 0.04299/1.926, allocations: 20.54 MB / 0.9635 GB, free: 30.58 MB / 442.8 MB Notification: Performance of remove unused functions: time 0.009416/1.936, allocations: 1.849 MB / 0.9653 GB, free: 28.82 MB / 442.8 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 3 * Number of states: 25 (stack.cell[1,1].cell.limIntegrator.y,stack.cell[1,1].cell.capacitor[1].v,stack.cell[1,1].cell.capacitor[2].v,stack.cell[1,1].limIntegrator.y,stack.cell[1,2].cell.limIntegrator.y,stack.cell[1,2].cell.capacitor[1].v,stack.cell[1,2].cell.capacitor[2].v,stack.cell[1,2].limIntegrator.y,stack.cell[2,1].cell.limIntegrator.y,stack.cell[2,1].cell.capacitor[1].v,stack.cell[2,1].cell.capacitor[2].v,stack.cell[2,1].limIntegrator.y,stack.cell[2,2].cell.limIntegrator.y,stack.cell[2,2].cell.capacitor[1].v,stack.cell[2,2].cell.capacitor[2].v,stack.cell[2,2].limIntegrator.y,stack.cell[3,1].cell.limIntegrator.y,stack.cell[3,1].cell.capacitor[1].v,stack.cell[3,1].cell.capacitor[2].v,stack.cell[3,1].limIntegrator.y,stack.cell[3,2].cell.limIntegrator.y,stack.cell[3,2].cell.capacitor[1].v,stack.cell[3,2].cell.capacitor[2].v,stack.cell[3,2].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 (201): * Single equations (assignments): 200 * 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 {3 28} Notification: Performance of Backend phase and start with SimCode phase: time 0.001479/1.937, allocations: 0.6391 MB / 0.9659 GB, free: 28.43 MB / 442.8 MB Notification: Performance of simCode: created initialization part: time 0.006878/1.944, allocations: 4.863 MB / 0.9707 GB, free: 24.21 MB / 442.8 MB Notification: Performance of simCode: created event and clocks part: time 9.649e-06/1.944, allocations: 5.781 kB / 0.9707 GB, free: 24.21 MB / 442.8 MB Notification: Performance of simCode: created simulation system equations: time 0.003412/1.948, allocations: 2.589 MB / 0.9732 GB, free: 21.97 MB / 442.8 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.01146/1.959, allocations: 2.064 MB / 0.9752 GB, free: 20.29 MB / 442.8 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.2207/2.18, allocations: 38.58 MB / 1.013 GB, free: 88.66 MB / 442.8 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.01823/2.198, allocations: 12.7 MB / 1.025 GB, free: 87.67 MB / 442.8 MB Notification: Performance of SimCode: time 6.41e-07/2.198, allocations: 0 / 1.025 GB, free: 87.67 MB / 442.8 MB (rm -f Modelica_4.0.0_Modelica.Electrical.Batteries.Examples.CCCV_StackRC.pipe ; mkfifo Modelica_4.0.0_Modelica.Electrical.Batteries.Examples.CCCV_StackRC.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Electrical.Batteries.Examples.CCCV_StackRC.pipe >> ../files/Modelica_4.0.0_Modelica.Electrical.Batteries.Examples.CCCV_StackRC.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Modelica_4.0.0_Modelica.Electrical.Batteries.Examples.CCCV_StackRC_res.mat --tempDir=temp_Modelica_4_0_0_Modelica_Electrical_Batteries_Examples_CCCV_StackRC_fmu --startTime=0 --stopTime=1200 --timeout=50 --tolerance=1e-06 Modelica_4_0_0_Modelica_Electrical_Batteries_Examples_CCCV_StackRC.fmu > Modelica_4.0.0_Modelica.Electrical.Batteries.Examples.CCCV_StackRC.pipe 2>&1)