Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_4.0.0_Modelica.Electrical.Batteries.Examples.CCCVcharging.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.CCCVcharging,fileNamePrefix="Modelica_4_0_0_Modelica_Electrical_Batteries_Examples_CCCVcharging",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Electrical.Batteries.Examples.CCCVcharging,fileNamePrefix="Modelica_4_0_0_Modelica_Electrical_Batteries_Examples_CCCVcharging",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.001071/0.001071, allocations: 184 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.151/1.151, 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.0009193/0.0009193, allocations: 99.67 kB / 280.8 MB, free: 1.246 MB / 218.7 MB Notification: Performance of FrontEnd - loaded program: time 0.09699/0.09794, allocations: 55.81 MB / 336.6 MB, free: 9.418 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2053/0.3032, allocations: 50.39 MB / 387 MB, free: 37.97 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.0911/0.3943, allocations: 86.85 MB / 473.8 MB, free: 15.93 MB / 362.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002242/0.3946, allocations: 79.41 kB / 473.9 MB, free: 15.85 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: 123 * Number of variables: 123 Notification: Performance of Generate backend data structure: time 0.07068/0.4653, allocations: 30.12 MB / 0.4922 GB, free: 1.523 MB / 378.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.001e-05/0.4654, allocations: 12 kB / 0.4922 GB, free: 1.512 MB / 378.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0004489/0.4658, allocations: 158 kB / 0.4924 GB, free: 1.355 MB / 378.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002321/0.4682, allocations: 1.17 MB / 0.4935 GB, free: 140 kB / 378.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 7.707e-05/0.4683, allocations: 50.7 kB / 0.4936 GB, free: 80 kB / 378.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 7.357e-05/0.4684, allocations: 28 kB / 0.4936 GB, free: 52 kB / 378.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.1201/0.5885, allocations: 361.9 kB / 0.494 GB, free: 129.1 MB / 378.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0007888/0.5893, allocations: 0.5446 MB / 0.4945 GB, free: 129 MB / 378.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.812e-05/0.5893, allocations: 2.812 kB / 0.4945 GB, free: 129 MB / 378.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.435e-05/0.5894, allocations: 0 / 0.4945 GB, free: 129 MB / 378.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.774e-05/0.5894, allocations: 13.03 kB / 0.4945 GB, free: 129 MB / 378.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003928/0.5933, allocations: 2.825 MB / 0.4973 GB, free: 128.2 MB / 378.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003082/0.5937, allocations: 207.7 kB / 0.4975 GB, free: 128.2 MB / 378.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004314/0.5941, allocations: 287.5 kB / 0.4977 GB, free: 128.2 MB / 378.7 MB Notification: Performance of preOpt evalFunc (simulation): time 4.231e-05/0.5942, allocations: 5.875 kB / 0.4977 GB, free: 128.2 MB / 378.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.999e-05/0.5942, allocations: 42.69 kB / 0.4978 GB, free: 128.2 MB / 378.7 MB Notification: Performance of pre-optimization done (n=30): time 1.884e-06/0.5942, allocations: 0 / 0.4978 GB, free: 128.2 MB / 378.7 MB Notification: Performance of matching and sorting (n=30): time 0.0008799/0.5951, allocations: 464 kB / 0.4982 GB, free: 128 MB / 378.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.351e-05/0.5952, allocations: 269 kB / 0.4985 GB, free: 127.7 MB / 378.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002012/0.5972, allocations: 1.909 MB / 0.5003 GB, free: 127.6 MB / 378.7 MB Notification: Performance of collectPreVariables (initialization): time 2.935e-05/0.5972, allocations: 25.7 kB / 0.5004 GB, free: 127.5 MB / 378.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001827/0.5974, allocations: 368.4 kB / 0.5007 GB, free: 127.4 MB / 378.7 MB Notification: Performance of collectInitialBindings (initialization): time 6.074e-05/0.5975, allocations: 105 kB / 0.5008 GB, free: 127.3 MB / 378.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.651e-05/0.5975, allocations: 0 / 0.5008 GB, free: 127.3 MB / 378.7 MB Notification: Performance of setup shared object (initialization): time 6.351e-05/0.5976, allocations: 319.9 kB / 0.5011 GB, free: 127 MB / 378.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001695/0.5977, allocations: 130.5 kB / 0.5012 GB, free: 127 MB / 378.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002354/0.598, allocations: 262.3 kB / 0.5015 GB, free: 126.9 MB / 378.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002063/0.5982, allocations: 171.8 kB / 0.5017 GB, free: 126.9 MB / 378.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.965e-06/0.5982, allocations: 3.594 kB / 0.5017 GB, free: 126.9 MB / 378.7 MB Notification: Performance of matching and sorting (n=46) (initialization): time 0.000627/0.5988, allocations: 0.5102 MB / 0.5022 GB, free: 126.8 MB / 378.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.094e-05/0.5989, allocations: 3.562 kB / 0.5022 GB, free: 126.8 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.673e-06/0.5989, allocations: 3.531 kB / 0.5022 GB, free: 126.8 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002016/0.5991, allocations: 53.06 kB / 0.5022 GB, free: 126.8 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003707/0.5995, allocations: 95.94 kB / 0.5023 GB, free: 126.8 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001047/0.6005, allocations: 1.493 MB / 0.5038 GB, free: 125.5 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004216/0.601, allocations: 49.16 kB / 0.5038 GB, free: 125.5 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.56e-05/0.601, allocations: 17.58 kB / 0.5038 GB, free: 125.5 MB / 378.7 MB Warning: Iteration variables with default zero start attribute in torn nonlinear equation system: battery.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: 10 * Number of states: 0 () * Number of discrete variables: 3 (cccvCharger.CV,energy.local_reset,battery.limIntegrator.local_reset) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (41): * Single equations (assignments): 40 * 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.0001278/0.6011, allocations: 119.7 kB / 0.5039 GB, free: 125.4 MB / 378.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001529/0.6013, allocations: 137.1 kB / 0.5041 GB, free: 125.3 MB / 378.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0008234/0.6021, allocations: 0.4926 MB / 0.5046 GB, free: 125.2 MB / 378.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.477e-06/0.6021, allocations: 3.406 kB / 0.5046 GB, free: 125.2 MB / 378.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.392e-06/0.6021, allocations: 6.688 kB / 0.5046 GB, free: 125.2 MB / 378.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.531e-06/0.6021, allocations: 7.797 kB / 0.5046 GB, free: 125.2 MB / 378.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002086/0.6042, allocations: 1.59 MB / 0.5061 GB, free: 124.9 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.387e-06/0.6043, allocations: 3.5 kB / 0.5061 GB, free: 124.9 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003339/0.6046, allocations: 75.88 kB / 0.5062 GB, free: 124.9 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001238/0.6047, allocations: 40.33 kB / 0.5062 GB, free: 124.9 MB / 378.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.355e-05/0.6048, allocations: 7.156 kB / 0.5063 GB, free: 124.9 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.000885/0.6057, allocations: 1.454 MB / 0.5077 GB, free: 123.7 MB / 378.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.655e-06/0.6057, allocations: 3.156 kB / 0.5077 GB, free: 123.7 MB / 378.7 MB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.0008969/0.6066, allocations: 0.7432 MB / 0.5084 GB, free: 123.4 MB / 378.7 MB Notification: Performance of postOpt generateSymbolicLinearization (simulation): time 0.001178/0.6078, allocations: 1.29 MB / 0.5097 GB, free: 122.7 MB / 378.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0005114/0.6083, allocations: 455.3 kB / 0.5101 GB, free: 122.5 MB / 378.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001476/0.6084, allocations: 7.422 kB / 0.5101 GB, free: 122.5 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004768/0.6089, allocations: 54.89 kB / 0.5102 GB, free: 122.5 MB / 378.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.028e-05/0.609, allocations: 24.81 kB / 0.5102 GB, free: 122.5 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.992e-05/0.609, allocations: 9.688 kB / 0.5102 GB, free: 122.5 MB / 378.7 MB Notification: Performance of sort global known variables: time 0.001494/0.6105, allocations: 1.463 MB / 0.5116 GB, free: 122.4 MB / 378.7 MB Notification: Performance of remove unused functions: time 0.001293/0.6118, allocations: 219.7 kB / 0.5118 GB, free: 122.3 MB / 378.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 3 * Number of states: 4 (battery.limIntegrator.y,battery.capacitor[1].v,battery.capacitor[2].v,energy.y) * Number of discrete variables: 1 (cccvCharger.CV) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (26): * Single equations (assignments): 25 * 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.0006497/0.6125, allocations: 358.3 kB / 0.5122 GB, free: 122.2 MB / 378.7 MB Notification: Performance of simCode: created initialization part: time 0.0006606/0.6132, allocations: 438.1 kB / 0.5126 GB, free: 122.1 MB / 378.7 MB Notification: Performance of simCode: created event and clocks part: time 2.825e-06/0.6132, allocations: 0 / 0.5126 GB, free: 122.1 MB / 378.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0003212/0.6135, allocations: 271.1 kB / 0.5128 GB, free: 122 MB / 378.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006747/0.6142, allocations: 156.7 kB / 0.513 GB, free: 122 MB / 378.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003126/0.6173, allocations: 2.148 MB / 0.5151 GB, free: 121.6 MB / 378.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0009703/0.6183, allocations: 1.365 MB / 0.5164 GB, free: 120.9 MB / 378.7 MB Notification: Performance of SimCode: time 6.91e-07/0.6183, allocations: 0 / 0.5164 GB, free: 120.9 MB / 378.7 MB (rm -f Modelica_4.0.0_Modelica.Electrical.Batteries.Examples.CCCVcharging.pipe ; mkfifo Modelica_4.0.0_Modelica.Electrical.Batteries.Examples.CCCVcharging.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Electrical.Batteries.Examples.CCCVcharging.pipe >> ../files/Modelica_4.0.0_Modelica.Electrical.Batteries.Examples.CCCVcharging.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Modelica_4.0.0_Modelica.Electrical.Batteries.Examples.CCCVcharging_res.mat --tempDir=temp_Modelica_4_0_0_Modelica_Electrical_Batteries_Examples_CCCVcharging_fmu --startTime=0 --stopTime=1200 --timeout=50 --tolerance=1e-06 Modelica_4_0_0_Modelica_Electrical_Batteries_Examples_CCCVcharging.fmu > Modelica_4.0.0_Modelica.Electrical.Batteries.Examples.CCCVcharging.pipe 2>&1)