Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_4.0.0_Modelica.Electrical.Batteries.Examples.CCCV_Cell.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_Cell,fileNamePrefix="Modelica_4_0_0_Modelica_Electrical_Batteries_Examples_CCCV_Cell",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Electrical.Batteries.Examples.CCCV_Cell,fileNamePrefix="Modelica_4_0_0_Modelica_Electrical_Batteries_Examples_CCCV_Cell",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.001519/0.001518, allocations: 184.6 kB / 8.133 MB, free: 2.184 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.141/1.141, allocations: 221.4 MB / 229.9 MB, free: 3.078 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.001006/0.001006, allocations: 101.7 kB / 280.8 MB, free: 1.266 MB / 218.7 MB Notification: Performance of FrontEnd - loaded program: time 0.1002/0.1012, allocations: 55.81 MB / 336.6 MB, free: 9.426 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2015/0.3028, allocations: 50.4 MB / 387 MB, free: 37.98 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.08796/0.3908, allocations: 86.26 MB / 473.3 MB, free: 0.5 MB / 346.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002217/0.3911, allocations: 81.61 kB / 473.3 MB, free: 432 kB / 346.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 120 * Number of variables: 120 Notification: Performance of Generate backend data structure: time 0.06483/0.4559, allocations: 27.74 MB / 0.4893 GB, free: 4.562 MB / 378.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.733e-05/0.456, allocations: 12 kB / 0.4894 GB, free: 4.551 MB / 378.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0005344/0.4565, allocations: 185.7 kB / 0.4895 GB, free: 4.367 MB / 378.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.003358/0.4599, allocations: 1.492 MB / 0.491 GB, free: 2.832 MB / 378.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001007/0.46, allocations: 46.7 kB / 0.491 GB, free: 2.777 MB / 378.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001021/0.4601, allocations: 28 kB / 0.4911 GB, free: 2.75 MB / 378.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0006437/0.4608, allocations: 265.9 kB / 0.4913 GB, free: 2.492 MB / 378.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0008215/0.4616, allocations: 481.6 kB / 0.4918 GB, free: 1.977 MB / 378.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.454e-05/0.4617, allocations: 0 / 0.4918 GB, free: 1.977 MB / 378.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.115e-05/0.4617, allocations: 4 kB / 0.4918 GB, free: 1.973 MB / 378.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.272e-05/0.4617, allocations: 12 kB / 0.4918 GB, free: 1.961 MB / 378.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.1121/0.5738, allocations: 3.21 MB / 0.4949 GB, free: 128 MB / 378.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002585/0.5741, allocations: 138.4 kB / 0.4951 GB, free: 128 MB / 378.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002918/0.5744, allocations: 144.3 kB / 0.4952 GB, free: 128 MB / 378.7 MB Notification: Performance of preOpt evalFunc (simulation): time 5.21e-05/0.5745, allocations: 5.281 kB / 0.4952 GB, free: 128 MB / 378.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.416e-05/0.5745, allocations: 38.09 kB / 0.4952 GB, free: 127.9 MB / 378.7 MB Notification: Performance of pre-optimization done (n=21): time 2.564e-06/0.5745, allocations: 0 / 0.4952 GB, free: 127.9 MB / 378.7 MB Notification: Performance of matching and sorting (n=21): time 0.0008117/0.5754, allocations: 338.8 kB / 0.4956 GB, free: 127.9 MB / 378.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.142e-05/0.5754, allocations: 217.3 kB / 0.4958 GB, free: 127.6 MB / 378.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.003425/0.5789, allocations: 2.492 MB / 0.4982 GB, free: 127.4 MB / 378.7 MB Notification: Performance of collectPreVariables (initialization): time 4.027e-05/0.5789, allocations: 30.8 kB / 0.4982 GB, free: 127.4 MB / 378.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002075/0.5792, allocations: 413.8 kB / 0.4986 GB, free: 127.2 MB / 378.7 MB Notification: Performance of collectInitialBindings (initialization): time 4.451e-05/0.5792, allocations: 76.5 kB / 0.4987 GB, free: 127.2 MB / 378.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.359e-05/0.5792, allocations: 0 / 0.4987 GB, free: 127.2 MB / 378.7 MB Notification: Performance of setup shared object (initialization): time 4.532e-05/0.5793, allocations: 320.9 kB / 0.499 GB, free: 126.9 MB / 378.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001202/0.5794, allocations: 79.77 kB / 0.4991 GB, free: 126.9 MB / 378.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001653/0.5796, allocations: 239 kB / 0.4993 GB, free: 126.7 MB / 378.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001475/0.5797, allocations: 104 kB / 0.4994 GB, free: 126.7 MB / 378.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.915e-06/0.5797, allocations: 0 / 0.4994 GB, free: 126.7 MB / 378.7 MB Notification: Performance of matching and sorting (n=40) (initialization): time 0.0008885/0.5806, allocations: 498.8 kB / 0.4999 GB, free: 126.6 MB / 378.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.634e-05/0.5807, allocations: 7.719 kB / 0.4999 GB, free: 126.6 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.838e-06/0.5807, allocations: 10.5 kB / 0.4999 GB, free: 126.6 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002143/0.5809, allocations: 47.88 kB / 0.4999 GB, free: 126.6 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003121/0.5812, allocations: 81.88 kB / 0.5 GB, free: 126.6 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001089/0.5823, allocations: 1.45 MB / 0.5014 GB, free: 125.3 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000476/0.5828, allocations: 61.41 kB / 0.5015 GB, free: 125.3 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.475e-05/0.5828, allocations: 15.84 kB / 0.5015 GB, free: 125.3 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: 17 * 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 (36): * Single equations (assignments): 35 * 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 prepare postOptimizeDAE: time 0.0001489/0.583, allocations: 129.2 kB / 0.5016 GB, free: 125.2 MB / 378.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001837/0.5832, allocations: 157.6 kB / 0.5018 GB, free: 125.1 MB / 378.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0005092/0.5837, allocations: 372.5 kB / 0.5021 GB, free: 125 MB / 378.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.076e-06/0.5837, allocations: 6.156 kB / 0.5021 GB, free: 125 MB / 378.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.322e-06/0.5837, allocations: 0 / 0.5021 GB, free: 125 MB / 378.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.55e-06/0.5837, allocations: 10.59 kB / 0.5022 GB, free: 125 MB / 378.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001879/0.5856, allocations: 1.588 MB / 0.5037 GB, free: 124.7 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.745e-06/0.5856, allocations: 0 / 0.5037 GB, free: 124.7 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002592/0.5859, allocations: 53.88 kB / 0.5038 GB, free: 124.7 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.000104/0.586, allocations: 42.44 kB / 0.5038 GB, free: 124.7 MB / 378.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.883e-05/0.586, allocations: 5.375 kB / 0.5038 GB, free: 124.7 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0008176/0.5869, allocations: 1.404 MB / 0.5052 GB, free: 123.4 MB / 378.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.395e-06/0.5869, allocations: 0 / 0.5052 GB, free: 123.4 MB / 378.7 MB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.0005399/0.5874, allocations: 0.5557 MB / 0.5057 GB, free: 123.2 MB / 378.7 MB Notification: Performance of postOpt generateSymbolicLinearization (simulation): time 0.0006981/0.5881, allocations: 1.057 MB / 0.5067 GB, free: 122.5 MB / 378.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.000569/0.5887, allocations: 0.4925 MB / 0.5072 GB, free: 122.3 MB / 378.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001791/0.5889, allocations: 3.906 kB / 0.5072 GB, free: 122.2 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004828/0.5894, allocations: 60.8 kB / 0.5073 GB, free: 122.2 MB / 378.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.312e-05/0.5895, allocations: 25.84 kB / 0.5073 GB, free: 122.2 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.751e-05/0.5895, allocations: 11.12 kB / 0.5073 GB, free: 122.2 MB / 378.7 MB Notification: Performance of sort global known variables: time 0.002128/0.5916, allocations: 1.9 MB / 0.5092 GB, free: 122.1 MB / 378.7 MB Notification: Performance of remove unused functions: time 0.001873/0.5935, allocations: 213.7 kB / 0.5094 GB, free: 122.1 MB / 378.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 2 * Number of states: 3 (cell.cell.limIntegrator.y,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 (18): * Single equations (assignments): 17 * 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 3} Notification: Performance of Backend phase and start with SimCode phase: time 0.00064/0.5942, allocations: 327.9 kB / 0.5097 GB, free: 122 MB / 378.7 MB Notification: Performance of simCode: created initialization part: time 0.0006388/0.5948, allocations: 335.5 kB / 0.51 GB, free: 121.9 MB / 378.7 MB Notification: Performance of simCode: created event and clocks part: time 2.986e-06/0.5948, allocations: 0 / 0.51 GB, free: 121.9 MB / 378.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0003224/0.5952, allocations: 221.3 kB / 0.5102 GB, free: 121.8 MB / 378.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0008422/0.596, allocations: 187 kB / 0.5104 GB, free: 121.8 MB / 378.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004744/0.6008, allocations: 2.505 MB / 0.5129 GB, free: 121.3 MB / 378.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001182/0.602, allocations: 1.464 MB / 0.5143 GB, free: 120.6 MB / 378.7 MB Notification: Performance of SimCode: time 5.21e-07/0.602, allocations: 3.172 kB / 0.5143 GB, free: 120.6 MB / 378.7 MB (rm -f Modelica_4.0.0_Modelica.Electrical.Batteries.Examples.CCCV_Cell.pipe ; mkfifo Modelica_4.0.0_Modelica.Electrical.Batteries.Examples.CCCV_Cell.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Electrical.Batteries.Examples.CCCV_Cell.pipe >> ../files/Modelica_4.0.0_Modelica.Electrical.Batteries.Examples.CCCV_Cell.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Modelica_4.0.0_Modelica.Electrical.Batteries.Examples.CCCV_Cell_res.mat --tempDir=temp_Modelica_4_0_0_Modelica_Electrical_Batteries_Examples_CCCV_Cell_fmu --startTime=0 --stopTime=1200 --timeout=50 --tolerance=1e-06 Modelica_4_0_0_Modelica_Electrical_Batteries_Examples_CCCV_Cell.fmu > Modelica_4.0.0_Modelica.Electrical.Batteries.Examples.CCCV_Cell.pipe 2>&1)