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"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildingSystems 2.0.0-master/package.mo): time 0.9031/0.9031, allocations: 141.8 MB / 149.3 MB, free: 9.199 MB / 122.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001247/0.001247, allocations: 188.6 kB / 182.2 MB, free: 9.422 MB / 154.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.549/1.549, allocations: 221.5 MB / 436.4 MB, free: 13.32 MB / 330.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0008652/0.000865, allocations: 97.48 kB / 0.5074 GB, free: 10.16 MB / 410.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/NcDataReader2 2.5.1-master/package.mo): time 0.001813/0.001813, allocations: 279.9 kB / 0.5889 GB, free: 54.64 MB / 410.7 MB Notification: Performance of FrontEnd - loaded program: time 2.186e-05/2.18e-05, allocations: 4 kB / 0.6766 GB, free: 12.72 MB / 458.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.5165/0.5166, allocations: 82.77 MB / 0.7574 GB, free: 31.88 MB / 458.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1676/0.6842, allocations: 110.7 MB / 0.8655 GB, free: 1.082 MB / 0.5261 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003446/0.6846, allocations: 82.3 kB / 0.8656 GB, free: 1.004 MB / 0.5261 GB Notification: Performance of FrontEnd - DAE generated: time 0.01274/0.6974, allocations: 4.058 MB / 0.8695 GB, free: 12.89 MB / 0.5417 GB Notification: Performance of FrontEnd: time 1.553e-06/0.6975, allocations: 7.938 kB / 0.8696 GB, free: 12.89 MB / 0.5417 GB Notification: Performance of Transformations before backend: time 1.142e-05/0.6975, allocations: 4 kB / 0.8696 GB, free: 12.88 MB / 0.5417 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.0008356/0.6984, allocations: 480.1 kB / 0.87 GB, free: 12.36 MB / 0.5417 GB Notification: Performance of prepare preOptimizeDAE: time 4.912e-05/0.6984, allocations: 12.03 kB / 0.87 GB, free: 12.35 MB / 0.5417 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.153e-05/0.6985, allocations: 19.81 kB / 0.87 GB, free: 12.33 MB / 0.5417 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002128/0.6987, allocations: 194.8 kB / 0.8702 GB, free: 12.1 MB / 0.5417 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.756e-05/0.6987, allocations: 3.953 kB / 0.8702 GB, free: 12.1 MB / 0.5417 GB Notification: Performance of preOpt expandDerOperator (simulation): time 3.986e-05/0.6988, allocations: 12 kB / 0.8702 GB, free: 12.09 MB / 0.5417 GB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0001794/0.699, allocations: 71.92 kB / 0.8703 GB, free: 12.02 MB / 0.5417 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001972/0.6992, allocations: 94.66 kB / 0.8704 GB, free: 11.92 MB / 0.5417 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.82e-05/0.6992, allocations: 7.906 kB / 0.8704 GB, free: 11.91 MB / 0.5417 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.894e-05/0.6992, allocations: 0 / 0.8704 GB, free: 11.91 MB / 0.5417 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.909e-06/0.6992, allocations: 4 kB / 0.8704 GB, free: 11.91 MB / 0.5417 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0007326/0.7, allocations: 411.1 kB / 0.8708 GB, free: 11.47 MB / 0.5417 GB Notification: Performance of preOpt comSubExp (simulation): time 0.000196/0.7002, allocations: 106.4 kB / 0.8709 GB, free: 11.36 MB / 0.5417 GB Notification: Performance of preOpt resolveLoops (simulation): time 9.579e-05/0.7003, allocations: 52.86 kB / 0.871 GB, free: 11.3 MB / 0.5417 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0006941/0.701, allocations: 449.5 kB / 0.8714 GB, free: 10.77 MB / 0.5417 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002452/0.7012, allocations: 111.5 kB / 0.8715 GB, free: 10.65 MB / 0.5417 GB Notification: Performance of pre-optimization done (n=16): time 1.613e-06/0.7013, allocations: 0 / 0.8715 GB, free: 10.65 MB / 0.5417 GB Notification: Performance of matching and sorting (n=16): time 0.01077/0.712, allocations: 1.24 MB / 0.8727 GB, free: 9.402 MB / 0.5417 GB Notification: Performance of inlineWhenForInitialization (initialization): time 6.365e-05/0.7121, allocations: 63.28 kB / 0.8728 GB, free: 9.328 MB / 0.5417 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001986/0.7123, allocations: 162.6 kB / 0.8729 GB, free: 9.156 MB / 0.5417 GB Notification: Performance of collectPreVariables (initialization): time 3.912e-05/0.7124, allocations: 25.7 kB / 0.8729 GB, free: 9.125 MB / 0.5417 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001054/0.7125, allocations: 108 kB / 0.8731 GB, free: 9.016 MB / 0.5417 GB Notification: Performance of collectInitialBindings (initialization): time 5.318e-05/0.7126, allocations: 59.14 kB / 0.8731 GB, free: 8.957 MB / 0.5417 GB Notification: Performance of simplifyInitialFunctions (initialization): time 1.138e-05/0.7126, allocations: 0 / 0.8731 GB, free: 8.957 MB / 0.5417 GB Notification: Performance of setup shared object (initialization): time 0.0001566/0.7127, allocations: 330.8 kB / 0.8734 GB, free: 8.625 MB / 0.5417 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001012/0.7128, allocations: 60.84 kB / 0.8735 GB, free: 8.562 MB / 0.5417 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001144/0.713, allocations: 73.2 kB / 0.8736 GB, free: 8.484 MB / 0.5417 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.01041/0.7234, allocations: 1.148 MB / 0.8747 GB, free: 7.332 MB / 0.5417 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.88e-06/0.7234, allocations: 0 / 0.8747 GB, free: 7.332 MB / 0.5417 GB Notification: Performance of matching and sorting (n=23) (initialization): time 0.0106/0.734, allocations: 1.285 MB / 0.8759 GB, free: 6.043 MB / 0.5417 GB Notification: Performance of prepare postOptimizeDAE: time 6.646e-05/0.7342, allocations: 29.7 kB / 0.876 GB, free: 6.008 MB / 0.5417 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.592e-05/0.7342, allocations: 11.92 kB / 0.876 GB, free: 5.996 MB / 0.5417 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.616e-05/0.7342, allocations: 0 / 0.876 GB, free: 5.996 MB / 0.5417 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002793/0.7345, allocations: 43.97 kB / 0.876 GB, free: 5.953 MB / 0.5417 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.181e-06/0.7345, allocations: 8 kB / 0.876 GB, free: 5.945 MB / 0.5417 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000206/0.7348, allocations: 23.89 kB / 0.876 GB, free: 5.922 MB / 0.5417 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.798e-05/0.7348, allocations: 11.98 kB / 0.8761 GB, free: 5.91 MB / 0.5417 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.0002231/0.735, allocations: 123.8 kB / 0.8762 GB, free: 5.781 MB / 0.5417 GB Notification: Performance of postOpt createAliasVarsForOutputStates (simulation): time 0.01055/0.7456, allocations: 1.246 MB / 0.8774 GB, free: 4.527 MB / 0.5417 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.307e-05/0.7457, allocations: 23.8 kB / 0.8774 GB, free: 4.504 MB / 0.5417 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.009772/0.7554, allocations: 1.724 MB / 0.8791 GB, free: 2.773 MB / 0.5417 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.384e-05/0.7555, allocations: 4 kB / 0.8791 GB, free: 2.77 MB / 0.5417 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.009e-05/0.7555, allocations: 0 / 0.8791 GB, free: 2.77 MB / 0.5417 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.885e-06/0.7555, allocations: 0 / 0.8791 GB, free: 2.77 MB / 0.5417 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.000427/0.756, allocations: 241.9 kB / 0.8793 GB, free: 2.496 MB / 0.5417 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.128e-06/0.756, allocations: 4 kB / 0.8793 GB, free: 2.492 MB / 0.5417 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003009/0.7563, allocations: 47.86 kB / 0.8794 GB, free: 2.445 MB / 0.5417 GB Notification: Performance of postOpt tearingSystem (simulation): time 9.658e-06/0.7563, allocations: 4 kB / 0.8794 GB, free: 2.441 MB / 0.5417 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.964e-05/0.7563, allocations: 0 / 0.8794 GB, free: 2.441 MB / 0.5417 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.697e-06/0.7564, allocations: 0 / 0.8794 GB, free: 2.441 MB / 0.5417 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.857e-06/0.7564, allocations: 1.406 kB / 0.8794 GB, free: 2.441 MB / 0.5417 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.009606/0.766, allocations: 1.798 MB / 0.8811 GB, free: 0.625 MB / 0.5417 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0001463/0.7662, allocations: 116.9 kB / 0.8812 GB, free: 0.4922 MB / 0.5417 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.311e-05/0.7662, allocations: 3.953 kB / 0.8813 GB, free: 500 kB / 0.5417 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001739/0.7664, allocations: 15.92 kB / 0.8813 GB, free: 484 kB / 0.5417 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.000105/0.7665, allocations: 19.97 kB / 0.8813 GB, free: 464 kB / 0.5417 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.121e-05/0.7665, allocations: 11.98 kB / 0.8813 GB, free: 452 kB / 0.5417 GB Notification: Performance of sorting global known variables: time 0.0001449/0.7667, allocations: 133.2 kB / 0.8814 GB, free: 320 kB / 0.5417 GB Notification: Performance of sort global known variables: time 1.21e-07/0.7667, allocations: 0 / 0.8814 GB, free: 320 kB / 0.5417 GB Notification: Performance of remove unused functions: time 0.0003288/0.767, allocations: 56 kB / 0.8815 GB, free: 264 kB / 0.5417 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.01051/0.7776, allocations: 2.37 MB / 0.8838 GB, free: 13.86 MB / 0.5573 GB Notification: Performance of simCode: created initialization part: time 0.0004253/0.778, allocations: 188.3 kB / 0.884 GB, free: 13.66 MB / 0.5573 GB Notification: Performance of simCode: created event and clocks part: time 7.885e-06/0.7781, allocations: 8.125 kB / 0.884 GB, free: 13.65 MB / 0.5573 GB Notification: Performance of simCode: created simulation system equations: time 0.0001347/0.7782, allocations: 67.94 kB / 0.884 GB, free: 13.59 MB / 0.5573 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003469/0.7786, allocations: 16.17 kB / 0.8841 GB, free: 13.57 MB / 0.5573 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001287/0.7798, allocations: 0.5045 MB / 0.8846 GB, free: 13.04 MB / 0.5573 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004617/0.7803, allocations: 0.7319 MB / 0.8853 GB, free: 12.28 MB / 0.5573 GB Notification: Performance of simCode: alias equations: time 0.0001676/0.7805, allocations: 23.52 kB / 0.8853 GB, free: 12.26 MB / 0.5573 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001301/0.7806, allocations: 55.41 kB / 0.8853 GB, free: 12.2 MB / 0.5573 GB Notification: Performance of SimCode: time 5.31e-07/0.7807, allocations: 0 / 0.8853 GB, free: 12.2 MB / 0.5573 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02618/0.8068, allocations: 3.832 MB / 0.8891 GB, free: 8.406 MB / 0.5573 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001781/0.8071, allocations: 173.9 kB / 0.8893 GB, free: 8.207 MB / 0.5573 GB Notification: Performance of buildModelFMU: Generate platform static: time 1.958/2.766, allocations: 2.531 kB / 0.8893 GB, free: 8.207 MB / 0.5573 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)