Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_latest_Buildings.Fluid.Storage.Ice.BaseClasses.Examples.StateOfCharge.conf.json 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/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/Buildings 11.0.1-master/package.mo", uses=false) Using package Buildings with version 11.0.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.0.1-master/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 ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo) Running command: "" <> buildModelFMU(Buildings.Fluid.Storage.Ice.BaseClasses.Examples.StateOfCharge,fileNamePrefix="Buildings_latest_Buildings_Fluid_Storage_Ice_BaseClasses_Examples_StateOfCharge",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Fluid.Storage.Ice.BaseClasses.Examples.StateOfCharge,fileNamePrefix="Buildings_latest_Buildings_Fluid_Storage_Ice_BaseClasses_Examples_StateOfCharge",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001961/0.001961, allocations: 115.3 kB / 15.34 MB, free: 0.5156 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.007144/0.007145, allocations: 195 kB / 16.26 MB, free: 6.637 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 2.588/2.588, allocations: 222.9 MB / 239.9 MB, free: 4.52 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.0.1-master/package.mo): time 5.19/5.19, allocations: 461.9 MB / 0.7343 GB, free: 14.91 MB / 0.5919 GB Notification: Performance of FrontEnd - loaded program: time 0.002629/0.002629, allocations: 63.03 kB / 0.8987 GB, free: 37.1 MB / 0.7169 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.6226/0.6252, allocations: 157.4 MB / 1.052 GB, free: 8.641 MB / 0.8106 GB Notification: Performance of NFInst.instantiate(Buildings.Fluid.Storage.Ice.BaseClasses.Examples.StateOfCharge): time 0.00633/0.6317, allocations: 1.625 MB / 1.054 GB, free: 7 MB / 0.8106 GB Notification: Performance of NFInst.instExpressions: time 0.00148/0.6332, allocations: 459.3 kB / 1.054 GB, free: 6.547 MB / 0.8106 GB Notification: Performance of NFInst.updateImplicitVariability: time 9.093e-05/0.6333, allocations: 0 / 1.054 GB, free: 6.547 MB / 0.8106 GB Notification: Performance of NFTyping.typeComponents: time 5.682e-05/0.6335, allocations: 0 / 1.054 GB, free: 6.547 MB / 0.8106 GB Notification: Performance of NFTyping.typeBindings: time 0.0001354/0.6336, allocations: 7.922 kB / 1.054 GB, free: 6.539 MB / 0.8106 GB Notification: Performance of NFTyping.typeClassSections: time 0.0004693/0.6341, allocations: 31.91 kB / 1.054 GB, free: 6.508 MB / 0.8106 GB Notification: Performance of NFFlatten.flatten: time 0.0002285/0.6343, allocations: 71.78 kB / 1.055 GB, free: 6.438 MB / 0.8106 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0002045/0.6346, allocations: 11.98 kB / 1.055 GB, free: 6.426 MB / 0.8106 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0002323/0.6348, allocations: 35.92 kB / 1.055 GB, free: 6.391 MB / 0.8106 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0001359/0.635, allocations: 27.91 kB / 1.055 GB, free: 6.363 MB / 0.8106 GB Notification: Performance of NFPackage.collectConstants: time 3.208e-05/0.635, allocations: 4 kB / 1.055 GB, free: 6.359 MB / 0.8106 GB Notification: Performance of NFFlatten.collectFunctions: time 2.845e-05/0.6351, allocations: 8 kB / 1.055 GB, free: 6.352 MB / 0.8106 GB Notification: Performance of NFScalarize.scalarize: time 5.698e-05/0.6351, allocations: 23.91 kB / 1.055 GB, free: 6.328 MB / 0.8106 GB Notification: Performance of NFVerifyModel.verify: time 0.0001032/0.6352, allocations: 31.86 kB / 1.055 GB, free: 6.297 MB / 0.8106 GB Notification: Performance of NFConvertDAE.convert: time 0.0002133/0.6355, allocations: 64.05 kB / 1.055 GB, free: 6.234 MB / 0.8106 GB Notification: Performance of FrontEnd - DAE generated: time 7.254e-06/0.6355, allocations: 7.938 kB / 1.055 GB, free: 6.227 MB / 0.8106 GB Notification: Performance of FrontEnd: time 2.495e-06/0.6355, allocations: 0 / 1.055 GB, free: 6.227 MB / 0.8106 GB Notification: Performance of Transformations before backend: time 2.124e-05/0.6355, allocations: 0 / 1.055 GB, free: 6.227 MB / 0.8106 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 9 * Number of variables: 9 Notification: Performance of Generate backend data structure: time 0.001053/0.6366, allocations: 368.9 kB / 1.055 GB, free: 5.82 MB / 0.8106 GB Notification: Performance of prepare preOptimizeDAE: time 0.000101/0.6367, allocations: 12.62 kB / 1.055 GB, free: 5.809 MB / 0.8106 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001088/0.6369, allocations: 38.75 kB / 1.055 GB, free: 5.762 MB / 0.8106 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 9.484e-05/0.637, allocations: 8.844 kB / 1.055 GB, free: 5.754 MB / 0.8106 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002762/0.6373, allocations: 176.2 kB / 1.055 GB, free: 5.543 MB / 0.8106 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.843e-05/0.6373, allocations: 8.375 kB / 1.055 GB, free: 5.535 MB / 0.8106 GB Notification: Performance of preOpt expandDerOperator (simulation): time 5.414e-05/0.6374, allocations: 8.375 kB / 1.055 GB, free: 5.527 MB / 0.8106 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003321/0.6377, allocations: 85.75 kB / 1.055 GB, free: 5.438 MB / 0.8106 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.258e-05/0.6378, allocations: 3.938 kB / 1.055 GB, free: 5.434 MB / 0.8106 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.075e-05/0.6378, allocations: 4 kB / 1.055 GB, free: 5.43 MB / 0.8106 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.108e-05/0.6378, allocations: 4 kB / 1.055 GB, free: 5.426 MB / 0.8106 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002406/0.6381, allocations: 39.91 kB / 1.055 GB, free: 5.387 MB / 0.8106 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0009871/0.6391, allocations: 320.7 kB / 1.056 GB, free: 5.023 MB / 0.8106 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0004613/0.6396, allocations: 102.5 kB / 1.056 GB, free: 4.914 MB / 0.8106 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001755/0.6398, allocations: 44.83 kB / 1.056 GB, free: 4.867 MB / 0.8106 GB Notification: Performance of preOpt evalFunc (simulation): time 2.673e-05/0.6398, allocations: 96 / 1.056 GB, free: 4.867 MB / 0.8106 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0005504/0.6404, allocations: 123.3 kB / 1.056 GB, free: 4.734 MB / 0.8106 GB Notification: Performance of pre-optimization done (n=11): time 2.215e-06/0.6404, allocations: 0 / 1.056 GB, free: 4.734 MB / 0.8106 GB Notification: Performance of matching and sorting (n=11): time 0.0007/0.6411, allocations: 169.6 kB / 1.056 GB, free: 4.562 MB / 0.8106 GB Notification: Performance of inlineWhenForInitialization (initialization): time 7.548e-05/0.6412, allocations: 51.41 kB / 1.056 GB, free: 4.5 MB / 0.8106 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001619/0.6414, allocations: 117.8 kB / 1.056 GB, free: 4.375 MB / 0.8106 GB Notification: Performance of collectPreVariables (initialization): time 3.184e-05/0.6414, allocations: 33.64 kB / 1.056 GB, free: 4.336 MB / 0.8106 GB Notification: Performance of collectInitialEqns (initialization): time 7.663e-05/0.6415, allocations: 88.38 kB / 1.056 GB, free: 4.246 MB / 0.8106 GB Notification: Performance of collectInitialBindings (initialization): time 6.106e-05/0.6416, allocations: 23.7 kB / 1.057 GB, free: 4.223 MB / 0.8106 GB Notification: Performance of simplifyInitialFunctions (initialization): time 9.569e-05/0.6417, allocations: 25.72 kB / 1.057 GB, free: 4.191 MB / 0.8106 GB Notification: Performance of setup shared object (initialization): time 0.0001741/0.6419, allocations: 326.8 kB / 1.057 GB, free: 3.863 MB / 0.8106 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001374/0.642, allocations: 27.98 kB / 1.057 GB, free: 3.836 MB / 0.8106 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001602/0.6422, allocations: 52.81 kB / 1.057 GB, free: 3.781 MB / 0.8106 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002419/0.6425, allocations: 66.08 kB / 1.057 GB, free: 3.711 MB / 0.8106 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.338e-06/0.6425, allocations: 0 / 1.057 GB, free: 3.711 MB / 0.8106 GB Notification: Performance of matching and sorting (n=14) (initialization): time 0.0004048/0.6429, allocations: 113.5 kB / 1.057 GB, free: 3.594 MB / 0.8106 GB Notification: Performance of prepare postOptimizeDAE: time 3.301e-05/0.643, allocations: 9.719 kB / 1.057 GB, free: 3.586 MB / 0.8106 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.113e-05/0.643, allocations: 0 / 1.057 GB, free: 3.586 MB / 0.8106 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.28e-05/0.643, allocations: 3.938 kB / 1.057 GB, free: 3.582 MB / 0.8106 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001402/0.6432, allocations: 19.92 kB / 1.057 GB, free: 3.562 MB / 0.8106 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.381e-05/0.6432, allocations: 4 kB / 1.057 GB, free: 3.559 MB / 0.8106 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001585/0.6434, allocations: 19.83 kB / 1.057 GB, free: 3.539 MB / 0.8106 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.228e-05/0.6434, allocations: 4 kB / 1.057 GB, free: 3.535 MB / 0.8106 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 2 * Number of states: 0 () * Number of discrete variables: 9 ($whenCondition4,$whenCondition3,soc.suspend,soc.discharged,$PRE.soc.discharged,soc.charged,$PRE.soc.charged,$whenCondition2,$whenCondition1) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (14): * Single equations (assignments): 14 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0001872/0.6436, allocations: 123.3 kB / 1.057 GB, free: 3.406 MB / 0.8106 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.498e-05/0.6437, allocations: 4 kB / 1.057 GB, free: 3.402 MB / 0.8106 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 5.798e-05/0.6437, allocations: 12.36 kB / 1.057 GB, free: 3.391 MB / 0.8106 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.089e-05/0.6438, allocations: 4 kB / 1.057 GB, free: 3.387 MB / 0.8106 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.158e-06/0.6438, allocations: 0 / 1.057 GB, free: 3.387 MB / 0.8106 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.997e-06/0.6438, allocations: 4.031 kB / 1.057 GB, free: 3.383 MB / 0.8106 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002836/0.6441, allocations: 205.5 kB / 1.057 GB, free: 3.133 MB / 0.8106 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.439e-06/0.6441, allocations: 0 / 1.057 GB, free: 3.133 MB / 0.8106 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001432/0.6443, allocations: 15.92 kB / 1.058 GB, free: 3.117 MB / 0.8106 GB Notification: Performance of postOpt tearingSystem (simulation): time 7.063e-06/0.6443, allocations: 0 / 1.058 GB, free: 3.117 MB / 0.8106 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.564e-05/0.6443, allocations: 8 kB / 1.058 GB, free: 3.109 MB / 0.8106 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.866e-06/0.6443, allocations: 0 / 1.058 GB, free: 3.109 MB / 0.8106 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.806e-06/0.6444, allocations: 0 / 1.058 GB, free: 3.109 MB / 0.8106 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0007755/0.6451, allocations: 224.8 kB / 1.058 GB, free: 2.871 MB / 0.8106 GB Notification: Performance of postOpt removeConstants (simulation): time 7.917e-05/0.6452, allocations: 81.14 kB / 1.058 GB, free: 2.773 MB / 0.8106 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.224e-05/0.6453, allocations: 0 / 1.058 GB, free: 2.773 MB / 0.8106 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001312/0.6454, allocations: 7.984 kB / 1.058 GB, free: 2.766 MB / 0.8106 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001013/0.6456, allocations: 19.97 kB / 1.058 GB, free: 2.746 MB / 0.8106 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.379e-05/0.6456, allocations: 4 kB / 1.058 GB, free: 2.742 MB / 0.8106 GB Notification: Performance of sorting global known variables: time 9.314e-05/0.6457, allocations: 87.27 kB / 1.058 GB, free: 2.656 MB / 0.8106 GB Notification: Performance of sort global known variables: time 3.2e-07/0.6457, allocations: 0 / 1.058 GB, free: 2.656 MB / 0.8106 GB Notification: Performance of remove unused functions: time 0.0003961/0.6461, allocations: 20 kB / 1.058 GB, free: 2.637 MB / 0.8106 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 1 (soc.SOC) * Number of discrete variables: 7 ($whenCondition1,$whenCondition2,$whenCondition3,$whenCondition4,soc.charged,soc.discharged,soc.suspend) * Number of discrete states: 2 (soc.discharged,soc.charged) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (11): * Single equations (assignments): 9 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 2 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.001166/0.6473, allocations: 0.7607 MB / 1.059 GB, free: 1.848 MB / 0.8106 GB Notification: Performance of simCode: created initialization part: time 0.0004543/0.6478, allocations: 92.22 kB / 1.059 GB, free: 1.758 MB / 0.8106 GB Notification: Performance of simCode: created event and clocks part: time 3.437e-06/0.6478, allocations: 0 / 1.059 GB, free: 1.758 MB / 0.8106 GB Notification: Performance of simCode: created simulation system equations: time 0.0002254/0.648, allocations: 72.14 kB / 1.059 GB, free: 1.688 MB / 0.8106 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003748/0.6484, allocations: 24.14 kB / 1.059 GB, free: 1.664 MB / 0.8106 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002881/0.6513, allocations: 1.489 MB / 1.06 GB, free: 88 kB / 0.8106 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004267/0.6518, allocations: 0.6961 MB / 1.061 GB, free: 15.36 MB / 0.8262 GB Notification: Performance of simCode: alias equations: time 0.0001026/0.6519, allocations: 12.61 kB / 1.061 GB, free: 15.35 MB / 0.8262 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 9.279e-05/0.652, allocations: 23.42 kB / 1.061 GB, free: 15.33 MB / 0.8262 GB Notification: Performance of SimCode: time 1.312e-06/0.652, allocations: 3.938 kB / 1.061 GB, free: 15.32 MB / 0.8262 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.9412/1.593, allocations: 2.077 MB / 1.063 GB, free: 13.41 MB / 0.8262 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.00045/1.594, allocations: 221.6 kB / 1.063 GB, free: 13.16 MB / 0.8262 GB Notification: Performance of buildModelFMU: Generate platform static: time 4.667/6.261, allocations: 3.125 kB / 1.063 GB, free: 13.16 MB / 0.8262 GB (rm -f Buildings_latest_Buildings.Fluid.Storage.Ice.BaseClasses.Examples.StateOfCharge.pipe ; mkfifo Buildings_latest_Buildings.Fluid.Storage.Ice.BaseClasses.Examples.StateOfCharge.pipe ; head -c 1048576 < Buildings_latest_Buildings.Fluid.Storage.Ice.BaseClasses.Examples.StateOfCharge.pipe >> ../files/Buildings_latest_Buildings.Fluid.Storage.Ice.BaseClasses.Examples.StateOfCharge.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Buildings_latest_Buildings.Fluid.Storage.Ice.BaseClasses.Examples.StateOfCharge_res.mat --tempDir=temp_Buildings_latest_Buildings_Fluid_Storage_Ice_BaseClasses_Examples_StateOfCharge_fmu --startTime=0 --stopTime=3600 --timeout=50 --tolerance=1e-06 Buildings_latest_Buildings_Fluid_Storage_Ice_BaseClasses_Examples_StateOfCharge.fmu > Buildings_latest_Buildings.Fluid.Storage.Ice.BaseClasses.Examples.StateOfCharge.pipe 2>&1)