Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Buildings_latest_Buildings.Fluid.Storage.Ice.BaseClasses.Examples.QStar.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 10.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) 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 Buildings with version 10.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 10.0.0-master/package.mo) Running command: "" <> buildModelFMU(Buildings.Fluid.Storage.Ice.BaseClasses.Examples.QStar,fileNamePrefix="Buildings_latest_Buildings_Fluid_Storage_Ice_BaseClasses_Examples_QStar",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Fluid.Storage.Ice.BaseClasses.Examples.QStar,fileNamePrefix="Buildings_latest_Buildings_Fluid_Storage_Ice_BaseClasses_Examples_QStar",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/Buildings 10.0.0-master/package.mo): time 1.94/1.94, allocations: 390.4 MB / 397.7 MB, free: 10.7 MB / 330.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001113/0.001114, allocations: 186.3 kB / 490.8 MB, free: 13.29 MB / 394.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.272/1.272, allocations: 221.4 MB / 0.7863 GB, free: 2.645 MB / 0.573 GB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0009664/0.0009665, allocations: 87.81 kB / 0.9264 GB, free: 39.98 MB / 0.6198 GB Notification: Performance of FrontEnd - loaded program: time 0.2947/0.2957, allocations: 149.2 MB / 1.072 GB, free: 3.082 MB / 0.7292 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.8477/1.143, allocations: 143 MB / 1.212 GB, free: 63.48 MB / 0.7761 GB Notification: Performance of FrontEnd - scodeFlatten: time 0.1953/1.339, allocations: 150.8 MB / 1.359 GB, free: 6.031 MB / 0.8542 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.00031/1.339, allocations: 87.94 kB / 1.359 GB, free: 5.945 MB / 0.8542 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 7 * Number of variables: 7 Notification: Performance of Generate backend data structure: time 0.005934/1.345, allocations: 1.755 MB / 1.361 GB, free: 4.148 MB / 0.8542 GB Notification: Performance of prepare preOptimizeDAE: time 4.729e-05/1.345, allocations: 12 kB / 1.361 GB, free: 4.137 MB / 0.8542 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0007642/1.346, allocations: 99.8 kB / 1.361 GB, free: 4.039 MB / 0.8542 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001858/1.346, allocations: 199 kB / 1.361 GB, free: 3.805 MB / 0.8542 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 6.551e-05/1.346, allocations: 41.59 kB / 1.361 GB, free: 3.758 MB / 0.8542 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.988e-05/1.346, allocations: 4 kB / 1.361 GB, free: 3.754 MB / 0.8542 GB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0002294/1.346, allocations: 143.8 kB / 1.361 GB, free: 3.613 MB / 0.8542 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001914/1.347, allocations: 136.2 kB / 1.361 GB, free: 3.477 MB / 0.8542 GB Notification: Performance of preOpt findStateOrder (simulation): time 7.915e-06/1.347, allocations: 0 / 1.361 GB, free: 3.477 MB / 0.8542 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.677e-05/1.347, allocations: 0 / 1.361 GB, free: 3.477 MB / 0.8542 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.461e-06/1.347, allocations: 0 / 1.361 GB, free: 3.477 MB / 0.8542 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0008693/1.348, allocations: 444.3 kB / 1.362 GB, free: 3.004 MB / 0.8542 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0002076/1.348, allocations: 154.5 kB / 1.362 GB, free: 2.844 MB / 0.8542 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001057/1.348, allocations: 72.88 kB / 1.362 GB, free: 2.77 MB / 0.8542 GB Notification: Performance of preOpt evalFunc (simulation): time 1.735e-05/1.348, allocations: 4 kB / 1.362 GB, free: 2.766 MB / 0.8542 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.902e-05/1.348, allocations: 42.45 kB / 1.362 GB, free: 2.715 MB / 0.8542 GB Notification: Performance of pre-optimization done (n=2): time 1.422e-06/1.348, allocations: 0 / 1.362 GB, free: 2.715 MB / 0.8542 GB Notification: Performance of matching and sorting (n=2): time 0.0005184/1.348, allocations: 173.5 kB / 1.362 GB, free: 2.539 MB / 0.8542 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.636e-05/1.349, allocations: 59.34 kB / 1.362 GB, free: 2.469 MB / 0.8542 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001263/1.349, allocations: 133.5 kB / 1.362 GB, free: 2.332 MB / 0.8542 GB Notification: Performance of collectPreVariables (initialization): time 2.059e-05/1.349, allocations: 25.7 kB / 1.362 GB, free: 2.301 MB / 0.8542 GB Notification: Performance of collectInitialEqns (initialization): time 4.582e-05/1.349, allocations: 96.23 kB / 1.363 GB, free: 2.203 MB / 0.8542 GB Notification: Performance of collectInitialBindings (initialization): time 2.451e-05/1.349, allocations: 7.906 kB / 1.363 GB, free: 2.195 MB / 0.8542 GB Notification: Performance of simplifyInitialFunctions (initialization): time 1.029e-05/1.349, allocations: 0 / 1.363 GB, free: 2.195 MB / 0.8542 GB Notification: Performance of setup shared object (initialization): time 0.0001077/1.349, allocations: 322.7 kB / 1.363 GB, free: 1.871 MB / 0.8542 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001005/1.349, allocations: 71.94 kB / 1.363 GB, free: 1.801 MB / 0.8542 GB Notification: Performance of partitionIndependentBlocks (initialization): time 9.6e-05/1.349, allocations: 67.94 kB / 1.363 GB, free: 1.734 MB / 0.8542 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002373/1.349, allocations: 55.95 kB / 1.363 GB, free: 1.68 MB / 0.8542 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.924e-06/1.349, allocations: 4 kB / 1.363 GB, free: 1.676 MB / 0.8542 GB Notification: Performance of matching and sorting (n=2) (initialization): time 0.0004004/1.35, allocations: 173.5 kB / 1.363 GB, free: 1.5 MB / 0.8542 GB Notification: Performance of prepare postOptimizeDAE: time 1.348e-05/1.35, allocations: 8.094 kB / 1.363 GB, free: 1.492 MB / 0.8542 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.992e-06/1.35, allocations: 0 / 1.363 GB, free: 1.492 MB / 0.8542 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.169e-05/1.35, allocations: 0 / 1.363 GB, free: 1.492 MB / 0.8542 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002245/1.35, allocations: 31.95 kB / 1.363 GB, free: 1.461 MB / 0.8542 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.731e-06/1.35, allocations: 0 / 1.363 GB, free: 1.461 MB / 0.8542 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001511/1.35, allocations: 19.98 kB / 1.363 GB, free: 1.441 MB / 0.8542 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.933e-05/1.35, allocations: 19.92 kB / 1.363 GB, free: 1.422 MB / 0.8542 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 1 * Number of states: 0 () * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (2): * Single equations (assignments): 2 * 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 8.783e-05/1.35, allocations: 101 kB / 1.363 GB, free: 1.316 MB / 0.8542 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.26e-05/1.35, allocations: 11.81 kB / 1.363 GB, free: 1.305 MB / 0.8542 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.32e-05/1.35, allocations: 11.73 kB / 1.363 GB, free: 1.297 MB / 0.8542 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.986e-06/1.35, allocations: 0 / 1.363 GB, free: 1.297 MB / 0.8542 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.839e-06/1.35, allocations: 3.938 kB / 1.363 GB, free: 1.293 MB / 0.8542 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.995e-06/1.35, allocations: 0 / 1.363 GB, free: 1.293 MB / 0.8542 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.000243/1.351, allocations: 210.1 kB / 1.364 GB, free: 1.051 MB / 0.8542 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.042e-06/1.351, allocations: 4 kB / 1.364 GB, free: 1.047 MB / 0.8542 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001882/1.351, allocations: 35.95 kB / 1.364 GB, free: 1.012 MB / 0.8542 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.354e-06/1.351, allocations: 0 / 1.364 GB, free: 1.012 MB / 0.8542 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.272e-05/1.351, allocations: 11.89 kB / 1.364 GB, free: 1 MB / 0.8542 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.513e-06/1.351, allocations: 3.938 kB / 1.364 GB, free: 0.9961 MB / 0.8542 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.056e-06/1.351, allocations: 0 / 1.364 GB, free: 0.9961 MB / 0.8542 GB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.0005659/1.352, allocations: 267.3 kB / 1.364 GB, free: 0.7188 MB / 0.8542 GB Notification: Performance of postOpt generateSymbolicLinearization (simulation): time 0.0005979/1.352, allocations: 0.6442 MB / 1.365 GB, free: 56 kB / 0.8542 GB Notification: Performance of postOpt removeConstants (simulation): time 7.267e-05/1.352, allocations: 84.92 kB / 1.365 GB, free: 15.95 MB / 0.8698 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.309e-05/1.352, allocations: 4 kB / 1.365 GB, free: 15.95 MB / 0.8698 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001901/1.352, allocations: 24.05 kB / 1.365 GB, free: 15.93 MB / 0.8698 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.64e-05/1.353, allocations: 0 / 1.365 GB, free: 15.93 MB / 0.8698 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.713e-05/1.353, allocations: 11.98 kB / 1.365 GB, free: 15.91 MB / 0.8698 GB Notification: Performance of sort global known variables: time 8.846e-05/1.353, allocations: 117.9 kB / 1.365 GB, free: 15.8 MB / 0.8698 GB Notification: Performance of remove unused functions: time 0.0008828/1.354, allocations: 27.94 kB / 1.365 GB, free: 15.77 MB / 0.8698 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 0 () * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (2): * Single equations (assignments): 2 * 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.0002127/1.354, allocations: 95.25 kB / 1.365 GB, free: 15.67 MB / 0.8698 GB Notification: Performance of simCode: created initialization part: time 0.0002785/1.354, allocations: 179.9 kB / 1.365 GB, free: 15.49 MB / 0.8698 GB Notification: Performance of simCode: created event and clocks part: time 2.194e-06/1.354, allocations: 0 / 1.365 GB, free: 15.49 MB / 0.8698 GB Notification: Performance of simCode: created simulation system equations: time 0.0001235/1.354, allocations: 91.88 kB / 1.365 GB, free: 15.4 MB / 0.8698 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001758/1.354, allocations: 3.906 kB / 1.365 GB, free: 15.4 MB / 0.8698 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0004886/1.355, allocations: 183.5 kB / 1.365 GB, free: 15.2 MB / 0.8698 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0004664/1.355, allocations: 0.7231 MB / 1.366 GB, free: 14.45 MB / 0.8698 GB Notification: Performance of SimCode: time 3.71e-07/1.355, allocations: 0 / 1.366 GB, free: 14.45 MB / 0.8698 GB (rm -f Buildings_latest_Buildings.Fluid.Storage.Ice.BaseClasses.Examples.QStar.pipe ; mkfifo Buildings_latest_Buildings.Fluid.Storage.Ice.BaseClasses.Examples.QStar.pipe ; head -c 1048576 < Buildings_latest_Buildings.Fluid.Storage.Ice.BaseClasses.Examples.QStar.pipe >> ../files/Buildings_latest_Buildings.Fluid.Storage.Ice.BaseClasses.Examples.QStar.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Buildings_latest_Buildings.Fluid.Storage.Ice.BaseClasses.Examples.QStar_res.mat --tempDir=temp_Buildings_latest_Buildings_Fluid_Storage_Ice_BaseClasses_Examples_QStar_fmu --startTime=0 --stopTime=86400 --timeout=50 --tolerance=1e-06 Buildings_latest_Buildings_Fluid_Storage_Ice_BaseClasses_Examples_QStar.fmu > Buildings_latest_Buildings.Fluid.Storage.Ice.BaseClasses.Examples.QStar.pipe 2>&1)