Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr PowerSysPro_PowerSysPro.Batteries.Examples.BatteryDischargeChargeFromMSL.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) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSysPro 2.3.1/package.mo", uses=false) Using package PowerSysPro with version 2.3.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSysPro 2.3.1/package.mo) 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(PowerSysPro.Batteries.Examples.BatteryDischargeChargeFromMSL,fileNamePrefix="PowerSysPro_PowerSysPro_Batteries_Examples_BatteryDischargeChargeFromMSL",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(PowerSysPro.Batteries.Examples.BatteryDischargeChargeFromMSL,fileNamePrefix="PowerSysPro_PowerSysPro_Batteries_Examples_BatteryDischargeChargeFromMSL",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.001028/0.001028, allocations: 185.4 kB / 7.844 MB, free: 2.512 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.126/1.126, allocations: 221.4 MB / 229.7 MB, free: 3.023 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.0009264/0.0009264, allocations: 103.1 kB / 280.5 MB, free: 1.254 MB / 218.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSysPro 2.3.1/package.mo): time 0.03378/0.03378, allocations: 8.102 MB / 339.4 MB, free: 6.348 MB / 282.7 MB Notification: Performance of FrontEnd - loaded program: time 0.1633/0.1971, allocations: 58.62 MB / 398 MB, free: 67.96 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.07123/0.2683, allocations: 52.52 MB / 450.5 MB, free: 15.43 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.2307/0.4991, allocations: 85.75 MB / 0.5237 GB, free: 8.418 MB / 346.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0001891/0.4993, allocations: 62.28 kB / 0.5238 GB, free: 8.387 MB / 346.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 65 * Number of variables: 65 Notification: Performance of Generate backend data structure: time 0.03665/0.536, allocations: 13.55 MB / 0.537 GB, free: 12.96 MB / 362.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.299e-05/0.536, allocations: 11.94 kB / 0.537 GB, free: 12.95 MB / 362.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001224/0.5362, allocations: 59.34 kB / 0.5371 GB, free: 12.89 MB / 362.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0009489/0.5371, allocations: 0.5364 MB / 0.5376 GB, free: 12.41 MB / 362.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.213e-05/0.5372, allocations: 11.98 kB / 0.5376 GB, free: 12.4 MB / 362.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.545e-05/0.5372, allocations: 19.91 kB / 0.5376 GB, free: 12.38 MB / 362.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0003742/0.5376, allocations: 216.5 kB / 0.5378 GB, free: 12.24 MB / 362.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004917/0.5381, allocations: 340.1 kB / 0.5381 GB, free: 11.95 MB / 362.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.028e-05/0.5381, allocations: 0 / 0.5381 GB, free: 11.95 MB / 362.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.339e-05/0.5382, allocations: 4 kB / 0.5381 GB, free: 11.94 MB / 362.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.947e-06/0.5382, allocations: 4 kB / 0.5381 GB, free: 11.94 MB / 362.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002141/0.5403, allocations: 1.495 MB / 0.5396 GB, free: 10.62 MB / 362.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001938/0.5405, allocations: 125.4 kB / 0.5397 GB, free: 10.53 MB / 362.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001756/0.5407, allocations: 91.95 kB / 0.5398 GB, free: 10.46 MB / 362.7 MB Notification: Performance of preOpt evalFunc (simulation): time 4.226e-05/0.5408, allocations: 4 kB / 0.5398 GB, free: 10.46 MB / 362.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.289e-05/0.5408, allocations: 42.38 kB / 0.5399 GB, free: 10.41 MB / 362.7 MB Notification: Performance of pre-optimization done (n=13): time 1.322e-06/0.5408, allocations: 4 kB / 0.5399 GB, free: 10.41 MB / 362.7 MB Notification: Performance of matching and sorting (n=13): time 0.003338/0.5441, allocations: 1.05 MB / 0.5409 GB, free: 9.395 MB / 362.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.432e-05/0.5442, allocations: 205.6 kB / 0.5411 GB, free: 9.145 MB / 362.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0005759/0.5448, allocations: 498 kB / 0.5416 GB, free: 8.781 MB / 362.7 MB Notification: Performance of collectPreVariables (initialization): time 3.617e-05/0.5449, allocations: 25.7 kB / 0.5416 GB, free: 8.75 MB / 362.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001011/0.545, allocations: 197.4 kB / 0.5418 GB, free: 8.574 MB / 362.7 MB Notification: Performance of collectInitialBindings (initialization): time 3.515e-05/0.545, allocations: 37.14 kB / 0.5418 GB, free: 8.543 MB / 362.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.397e-05/0.545, allocations: 0 / 0.5418 GB, free: 8.543 MB / 362.7 MB Notification: Performance of setup shared object (initialization): time 0.0001379/0.5452, allocations: 355.2 kB / 0.5421 GB, free: 8.203 MB / 362.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001279/0.5453, allocations: 79.56 kB / 0.5422 GB, free: 8.152 MB / 362.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002097/0.5455, allocations: 202.8 kB / 0.5424 GB, free: 7.934 MB / 362.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.002969/0.5485, allocations: 0.9255 MB / 0.5433 GB, free: 7.039 MB / 362.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.038e-06/0.5485, allocations: 4 kB / 0.5433 GB, free: 7.035 MB / 362.7 MB Notification: Performance of matching and sorting (n=24) (initialization): time 0.003442/0.552, allocations: 1.11 MB / 0.5444 GB, free: 5.973 MB / 362.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.869e-05/0.552, allocations: 4 kB / 0.5444 GB, free: 5.969 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.508e-06/0.552, allocations: 7.938 kB / 0.5444 GB, free: 5.961 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.013e-05/0.552, allocations: 4 kB / 0.5444 GB, free: 5.957 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002464/0.5523, allocations: 52.22 kB / 0.5445 GB, free: 5.906 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.626e-06/0.5523, allocations: 7.938 kB / 0.5445 GB, free: 5.898 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000732/0.553, allocations: 151.2 kB / 0.5446 GB, free: 5.754 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.093e-05/0.5531, allocations: 8 kB / 0.5446 GB, free: 5.746 MB / 362.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 11 * Number of states: 0 () * Number of discrete variables: 3 (pulseSeries.on1,pulseSeries.on2,battery.limIntegrator.local_reset) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (24): * 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: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0001066/0.5532, allocations: 114.5 kB / 0.5447 GB, free: 5.629 MB / 362.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.966e-05/0.5533, allocations: 47.38 kB / 0.5448 GB, free: 5.582 MB / 362.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003512/0.5568, allocations: 1.099 MB / 0.5459 GB, free: 4.543 MB / 362.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.636e-06/0.5568, allocations: 0 / 0.5459 GB, free: 4.543 MB / 362.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.66e-06/0.5568, allocations: 0 / 0.5459 GB, free: 4.543 MB / 362.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.48e-06/0.5569, allocations: 3.984 kB / 0.5459 GB, free: 4.539 MB / 362.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003886/0.5607, allocations: 1.557 MB / 0.5474 GB, free: 3.082 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.405e-06/0.5608, allocations: 0 / 0.5474 GB, free: 3.082 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001789/0.5609, allocations: 27.98 kB / 0.5474 GB, free: 3.055 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.058e-06/0.561, allocations: 0 / 0.5474 GB, free: 3.055 MB / 362.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.215e-05/0.561, allocations: 4 kB / 0.5474 GB, free: 3.051 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.426e-06/0.561, allocations: 3.938 kB / 0.5474 GB, free: 3.047 MB / 362.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.414e-06/0.561, allocations: 4.031 kB / 0.5474 GB, free: 3.043 MB / 362.7 MB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.003432/0.5644, allocations: 1.288 MB / 0.5487 GB, free: 1.82 MB / 362.7 MB Notification: Performance of postOpt generateSymbolicLinearization (simulation): time 0.003716/0.5682, allocations: 1.777 MB / 0.5504 GB, free: 156 kB / 362.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002483/0.5684, allocations: 197.2 kB / 0.5506 GB, free: 15.95 MB / 378.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 8.162e-05/0.5685, allocations: 3.984 kB / 0.5506 GB, free: 15.95 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0007083/0.5692, allocations: 151.9 kB / 0.5508 GB, free: 15.8 MB / 378.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.000238/0.5695, allocations: 97.77 kB / 0.5508 GB, free: 15.71 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.436e-05/0.5695, allocations: 8 kB / 0.5509 GB, free: 15.71 MB / 378.7 MB Notification: Performance of sort global known variables: time 0.0004315/0.57, allocations: 388.5 kB / 0.5512 GB, free: 15.43 MB / 378.7 MB Notification: Performance of remove unused functions: time 0.001116/0.5711, allocations: 111 kB / 0.5513 GB, free: 15.33 MB / 378.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 2 * Number of states: 1 (battery.limIntegrator.y) * Number of discrete variables: 2 (pulseSeries.on1,pulseSeries.on2) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (13): * Single equations (assignments): 13 * 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: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0006076/0.5717, allocations: 297.5 kB / 0.5516 GB, free: 15.1 MB / 378.7 MB Notification: Performance of simCode: created initialization part: time 0.0003482/0.5721, allocations: 193.6 kB / 0.5518 GB, free: 14.96 MB / 378.7 MB Notification: Performance of simCode: created event and clocks part: time 3.466e-06/0.5721, allocations: 4 kB / 0.5518 GB, free: 14.95 MB / 378.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0002103/0.5723, allocations: 123.4 kB / 0.5519 GB, free: 14.86 MB / 378.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000492/0.5728, allocations: 85.14 kB / 0.552 GB, free: 14.79 MB / 378.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001502/0.5743, allocations: 0.6276 MB / 0.5526 GB, free: 14.2 MB / 378.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0005312/0.5748, allocations: 0.8763 MB / 0.5535 GB, free: 13.3 MB / 378.7 MB Notification: Performance of SimCode: time 3.61e-07/0.5749, allocations: 0 / 0.5535 GB, free: 13.3 MB / 378.7 MB (rm -f PowerSysPro_PowerSysPro.Batteries.Examples.BatteryDischargeChargeFromMSL.pipe ; mkfifo PowerSysPro_PowerSysPro.Batteries.Examples.BatteryDischargeChargeFromMSL.pipe ; head -c 1048576 < PowerSysPro_PowerSysPro.Batteries.Examples.BatteryDischargeChargeFromMSL.pipe >> ../files/PowerSysPro_PowerSysPro.Batteries.Examples.BatteryDischargeChargeFromMSL.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator --tempDir=temp_PowerSysPro_PowerSysPro_Batteries_Examples_BatteryDischargeChargeFromMSL_fmu --startTime=0 --stopTime=3600 --timeout=50 --tolerance=1e-06 PowerSysPro_PowerSysPro_Batteries_Examples_BatteryDischargeChargeFromMSL.fmu > PowerSysPro_PowerSysPro.Batteries.Examples.BatteryDischargeChargeFromMSL.pipe 2>&1)