Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr BuildingSystems_BuildingSystems.Technologies.ElectricalStorages.Examples.BatterySimple.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildingSystems 2.0.0-master/package.mo", uses=false) 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/NcDataReader2 2.5.1-master/package.mo", uses=false) Using package NcDataReader2 with version 2.5.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/NcDataReader2 2.5.1-master/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) Using package BuildingSystems with version 2.0.0-beta (/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildingSystems 2.0.0-master/package.mo) Running command: "" <> buildModelFMU(BuildingSystems.Technologies.ElectricalStorages.Examples.BatterySimple,fileNamePrefix="BuildingSystems_BuildingSystems_Technologies_ElectricalStorages_Examples_BatterySimple",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(BuildingSystems.Technologies.ElectricalStorages.Examples.BatterySimple,fileNamePrefix="BuildingSystems_BuildingSystems_Technologies_ElectricalStorages_Examples_BatterySimple",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/BuildingSystems 2.0.0-master/package.mo): time 0.6892/0.6892, allocations: 141.8 MB / 149.1 MB, free: 4.465 MB / 122.9 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001095/0.001095, allocations: 182.6 kB / 181.9 MB, free: 124 kB / 138.9 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.211/1.211, allocations: 221.4 MB / 436 MB, free: 9.254 MB / 330.9 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0009246/0.0009247, allocations: 95.23 kB / 0.507 GB, free: 24.27 MB / 394.9 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/NcDataReader2 2.5.1-master/package.mo): time 0.001799/0.001799, allocations: 278 kB / 0.5884 GB, free: 12.29 MB / 442.9 MB Notification: Performance of FrontEnd - loaded program: time 0.1726/0.1744, allocations: 89.65 MB / 0.676 GB, free: 2.562 MB / 0.5107 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3545/0.5289, allocations: 82.76 MB / 0.7568 GB, free: 112.8 MB / 0.5263 GB Notification: Performance of FrontEnd - scodeFlatten: time 0.1053/0.6343, allocations: 110.6 MB / 0.8648 GB, free: 2.102 MB / 0.5263 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0001594/0.6345, allocations: 76.84 kB / 0.8649 GB, free: 2.031 MB / 0.5263 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 19 * Number of variables: 19 Notification: Performance of Generate backend data structure: time 0.01167/0.6462, allocations: 4.252 MB / 0.869 GB, free: 13.73 MB / 0.5419 GB Notification: Performance of prepare preOptimizeDAE: time 3.786e-05/0.6462, allocations: 13.19 kB / 0.869 GB, free: 13.72 MB / 0.5419 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.527e-05/0.6463, allocations: 15.81 kB / 0.869 GB, free: 13.7 MB / 0.5419 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001654/0.6465, allocations: 202.7 kB / 0.8692 GB, free: 13.46 MB / 0.5419 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.709e-05/0.6465, allocations: 7.984 kB / 0.8692 GB, free: 13.46 MB / 0.5419 GB Notification: Performance of preOpt expandDerOperator (simulation): time 3.035e-05/0.6465, allocations: 8 kB / 0.8693 GB, free: 13.45 MB / 0.5419 GB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0001673/0.6467, allocations: 67.98 kB / 0.8693 GB, free: 13.38 MB / 0.5419 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001662/0.6469, allocations: 93.64 kB / 0.8694 GB, free: 13.29 MB / 0.5419 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.289e-05/0.6469, allocations: 4 kB / 0.8694 GB, free: 13.28 MB / 0.5419 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.501e-05/0.6469, allocations: 1.875 kB / 0.8694 GB, free: 13.28 MB / 0.5419 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.719e-06/0.6469, allocations: 0 / 0.8694 GB, free: 13.28 MB / 0.5419 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0006777/0.6476, allocations: 421 kB / 0.8698 GB, free: 12.83 MB / 0.5419 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001643/0.6478, allocations: 106.5 kB / 0.8699 GB, free: 12.71 MB / 0.5419 GB Notification: Performance of preOpt resolveLoops (simulation): time 9.563e-05/0.6479, allocations: 52.86 kB / 0.87 GB, free: 12.66 MB / 0.5419 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0006417/0.6485, allocations: 441.5 kB / 0.8704 GB, free: 12.14 MB / 0.5419 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001584/0.6487, allocations: 107.3 kB / 0.8705 GB, free: 12.02 MB / 0.5419 GB Notification: Performance of pre-optimization done (n=16): time 3.667e-06/0.6487, allocations: 0 / 0.8705 GB, free: 12.02 MB / 0.5419 GB Notification: Performance of matching and sorting (n=16): time 0.001016/0.6497, allocations: 245.2 kB / 0.8707 GB, free: 11.77 MB / 0.5419 GB Notification: Performance of inlineWhenForInitialization (initialization): time 2.574e-05/0.6498, allocations: 55.69 kB / 0.8708 GB, free: 11.71 MB / 0.5419 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001378/0.6499, allocations: 158.8 kB / 0.8709 GB, free: 11.54 MB / 0.5419 GB Notification: Performance of collectPreVariables (initialization): time 2.004e-05/0.65, allocations: 29.7 kB / 0.871 GB, free: 11.5 MB / 0.5419 GB Notification: Performance of collectInitialEqns (initialization): time 4.648e-05/0.65, allocations: 104 kB / 0.8711 GB, free: 11.4 MB / 0.5419 GB Notification: Performance of collectInitialBindings (initialization): time 4.741e-05/0.6501, allocations: 47.27 kB / 0.8711 GB, free: 11.35 MB / 0.5419 GB Notification: Performance of simplifyInitialFunctions (initialization): time 1.048e-05/0.6501, allocations: 0 / 0.8711 GB, free: 11.35 MB / 0.5419 GB Notification: Performance of setup shared object (initialization): time 0.0001196/0.6502, allocations: 326.8 kB / 0.8714 GB, free: 11.02 MB / 0.5419 GB Notification: Performance of preBalanceInitialSystem (initialization): time 9.735e-05/0.6503, allocations: 60.84 kB / 0.8715 GB, free: 10.96 MB / 0.5419 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001024/0.6504, allocations: 66.56 kB / 0.8715 GB, free: 10.89 MB / 0.5419 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0008208/0.6512, allocations: 160.3 kB / 0.8717 GB, free: 10.73 MB / 0.5419 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.963e-06/0.6513, allocations: 4.656 kB / 0.8717 GB, free: 10.72 MB / 0.5419 GB Notification: Performance of matching and sorting (n=23) (initialization): time 0.001011/0.6523, allocations: 281.5 kB / 0.872 GB, free: 10.45 MB / 0.5419 GB Notification: Performance of prepare postOptimizeDAE: time 1.326e-05/0.6523, allocations: 4 kB / 0.872 GB, free: 10.44 MB / 0.5419 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.23e-06/0.6523, allocations: 0 / 0.872 GB, free: 10.44 MB / 0.5419 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.288e-05/0.6523, allocations: 4 kB / 0.872 GB, free: 10.44 MB / 0.5419 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002798/0.6526, allocations: 47.91 kB / 0.872 GB, free: 10.39 MB / 0.5419 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.39e-06/0.6526, allocations: 4 kB / 0.872 GB, free: 10.39 MB / 0.5419 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002158/0.6529, allocations: 28.45 kB / 0.872 GB, free: 10.36 MB / 0.5419 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.477e-05/0.6529, allocations: 7.984 kB / 0.8721 GB, free: 10.35 MB / 0.5419 GB Warning: Assuming fixed start value for the following 4 variables: battery.E_discharged:VARIABLE(start = 0.0 unit = "J" ) "Total energy taken from the battery" type: Real battery.E_charged:VARIABLE(start = 0.0 unit = "J" ) "Total energy charged to the battery" type: Real battery.EBou:VARIABLE(start = (1.0 - battery.c) * battery.SOC_start * battery.E_nominal unit = "J" ) "Bound charge of the battery" type: Real battery.EAva:VARIABLE(start = battery.c * battery.SOC_start * battery.E_nominal unit = "J" ) "Available charge of the battery" type: Real Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 3 * Number of states: 0 () * Number of discrete variables: 5 ($whenCondition1,$PRE.gain.T_start,gain.T_start,$PRE.gain.count,gain.count) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (22): * Single equations (assignments): 21 * Array equations: 0 * Algorithm blocks: 1 * 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.0001492/0.653, allocations: 119.9 kB / 0.8722 GB, free: 10.23 MB / 0.5419 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.27e-05/0.6531, allocations: 23.8 kB / 0.8722 GB, free: 10.21 MB / 0.5419 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001152/0.6542, allocations: 357.2 kB / 0.8725 GB, free: 9.852 MB / 0.5419 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.727e-06/0.6543, allocations: 0.75 kB / 0.8725 GB, free: 9.852 MB / 0.5419 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.509e-06/0.6543, allocations: 0 / 0.8725 GB, free: 9.852 MB / 0.5419 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.259e-06/0.6543, allocations: 4 kB / 0.8725 GB, free: 9.848 MB / 0.5419 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002209/0.6545, allocations: 237.9 kB / 0.8728 GB, free: 9.578 MB / 0.5419 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.663e-06/0.6545, allocations: 0 / 0.8728 GB, free: 9.578 MB / 0.5419 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002914/0.6548, allocations: 51.91 kB / 0.8728 GB, free: 9.527 MB / 0.5419 GB Notification: Performance of postOpt tearingSystem (simulation): time 3.176e-06/0.6548, allocations: 3.938 kB / 0.8728 GB, free: 9.523 MB / 0.5419 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.094e-05/0.6548, allocations: 4 kB / 0.8728 GB, free: 9.52 MB / 0.5419 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.633e-06/0.6549, allocations: 1.781 kB / 0.8728 GB, free: 9.52 MB / 0.5419 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.893e-06/0.6549, allocations: 4 kB / 0.8728 GB, free: 9.516 MB / 0.5419 GB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.001115/0.656, allocations: 411.9 kB / 0.8732 GB, free: 9.098 MB / 0.5419 GB Notification: Performance of postOpt generateSymbolicLinearization (simulation): time 0.001305/0.6573, allocations: 0.8472 MB / 0.874 GB, free: 8.23 MB / 0.5419 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0001039/0.6574, allocations: 108.9 kB / 0.8741 GB, free: 8.105 MB / 0.5419 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.06e-05/0.6575, allocations: 3.906 kB / 0.8742 GB, free: 8.102 MB / 0.5419 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001892/0.6577, allocations: 15.98 kB / 0.8742 GB, free: 8.086 MB / 0.5419 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.917e-05/0.6577, allocations: 19.97 kB / 0.8742 GB, free: 8.066 MB / 0.5419 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.48e-05/0.6578, allocations: 8 kB / 0.8742 GB, free: 8.059 MB / 0.5419 GB Notification: Performance of sort global known variables: time 9.736e-05/0.6579, allocations: 141.2 kB / 0.8743 GB, free: 7.922 MB / 0.5419 GB Notification: Performance of remove unused functions: time 0.0008513/0.6587, allocations: 63.94 kB / 0.8744 GB, free: 7.859 MB / 0.5419 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 4 (battery.EAva,battery.EBou,battery.E_charged,battery.E_discharged) * Number of discrete variables: 3 ($whenCondition1,gain.T_start,gain.count) * Number of discrete states: 1 (gain.count) * Top-level inputs: 0 Notification: Strong component statistics for simulation (20): * Single equations (assignments): 18 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 2 * 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.0002112/0.6589, allocations: 135.1 kB / 0.8745 GB, free: 7.719 MB / 0.5419 GB Notification: Performance of simCode: created initialization part: time 0.00028/0.6592, allocations: 158.1 kB / 0.8747 GB, free: 7.559 MB / 0.5419 GB Notification: Performance of simCode: created event and clocks part: time 1.954e-06/0.6592, allocations: 0 / 0.8747 GB, free: 7.559 MB / 0.5419 GB Notification: Performance of simCode: created simulation system equations: time 0.0001268/0.6594, allocations: 79.66 kB / 0.8747 GB, free: 7.484 MB / 0.5419 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002425/0.6596, allocations: 27.92 kB / 0.8748 GB, free: 7.457 MB / 0.5419 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0009506/0.6606, allocations: 439.2 kB / 0.8752 GB, free: 7.008 MB / 0.5419 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003303/0.6609, allocations: 0.7589 MB / 0.8759 GB, free: 6.223 MB / 0.5419 GB Notification: Performance of SimCode: time 2.51e-07/0.6609, allocations: 3.938 kB / 0.8759 GB, free: 6.219 MB / 0.5419 GB (rm -f BuildingSystems_BuildingSystems.Technologies.ElectricalStorages.Examples.BatterySimple.pipe ; mkfifo BuildingSystems_BuildingSystems.Technologies.ElectricalStorages.Examples.BatterySimple.pipe ; head -c 1048576 < BuildingSystems_BuildingSystems.Technologies.ElectricalStorages.Examples.BatterySimple.pipe >> ../files/BuildingSystems_BuildingSystems.Technologies.ElectricalStorages.Examples.BatterySimple.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator --tempDir=temp_BuildingSystems_BuildingSystems_Technologies_ElectricalStorages_Examples_BatterySimple_fmu --startTime=0 --stopTime=3.1536e+07 --timeout=50 --tolerance=1e-06 BuildingSystems_BuildingSystems_Technologies_ElectricalStorages_Examples_BatterySimple.fmu > BuildingSystems_BuildingSystems.Technologies.ElectricalStorages.Examples.BatterySimple.pipe 2>&1)