Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Buildings_8.0.0_Buildings.Fluid.Interfaces.Examples.PrescribedOutlet_Water.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 8.0.0/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo", uses=false) Using package ModelicaServices with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo) Using package Modelica with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo) Using package Complex with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo) Using package Buildings with version 8.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 8.0.0/package.mo) Running command: "" <> buildModelFMU(Buildings.Fluid.Interfaces.Examples.PrescribedOutlet_Water,fileNamePrefix="Buildings_8_0_0_Buildings_Fluid_Interfaces_Examples_PrescribedOutlet_Water",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Fluid.Interfaces.Examples.PrescribedOutlet_Water,fileNamePrefix="Buildings_8_0_0_Buildings_Fluid_Interfaces_Examples_PrescribedOutlet_Water",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 8.0.0/package.mo): time 2.526/2.526, allocations: 284.8 MB / 292.1 MB, free: 10.78 MB / 234.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.001645/0.001645, allocations: 185.2 kB / 360.3 MB, free: 7.574 MB / 298.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.991/1.991, allocations: 205.2 MB / 0.6187 GB, free: 13.24 MB / 474.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.001226/0.001225, allocations: 89.12 kB / 0.7317 GB, free: 45.15 MB / 0.5105 GB Notification: Performance of FrontEnd - loaded program: time 0.3043/0.3056, allocations: 121.4 MB / 0.8502 GB, free: 3.949 MB / 0.5886 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.6397/0.9454, allocations: 115.2 MB / 0.9627 GB, free: 78.65 MB / 0.6667 GB Notification: Performance of FrontEnd - scodeFlatten: time 5.605/6.55, allocations: 2.317 GB / 3.279 GB, free: 136.3 MB / 0.948 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003002/6.551, allocations: 85.92 kB / 3.279 GB, free: 136.2 MB / 0.948 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 176 * Number of variables: 176 Notification: Performance of Generate backend data structure: time 2.902/9.452, allocations: 0.6002 GB / 3.88 GB, free: 216 MB / 0.948 GB Notification: Performance of prepare preOptimizeDAE: time 7.504e-05/9.453, allocations: 6.75 kB / 3.88 GB, free: 216 MB / 0.948 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.01074/9.463, allocations: 0.6412 MB / 3.88 GB, free: 216 MB / 0.948 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.007279/9.471, allocations: 0.9469 MB / 3.881 GB, free: 215.7 MB / 0.948 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001963/9.471, allocations: 23.03 kB / 3.881 GB, free: 215.7 MB / 0.948 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0004273/9.471, allocations: 53.38 kB / 3.881 GB, free: 215.7 MB / 0.948 GB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.002894/9.474, allocations: 0.5638 MB / 3.882 GB, free: 215.7 MB / 0.948 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.00282/9.477, allocations: 0.8166 MB / 3.883 GB, free: 215.4 MB / 0.948 GB Notification: Performance of preOpt findStateOrder (simulation): time 4.469e-05/9.477, allocations: 3.844 kB / 3.883 GB, free: 215.4 MB / 0.948 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001724/9.477, allocations: 7.031 kB / 3.883 GB, free: 215.4 MB / 0.948 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.3e-05/9.478, allocations: 18.5 kB / 3.883 GB, free: 215.4 MB / 0.948 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0112/9.489, allocations: 4.864 MB / 3.887 GB, free: 212.4 MB / 0.948 GB Notification: Performance of preOpt comSubExp (simulation): time 0.001744/9.491, allocations: 0.5381 MB / 3.888 GB, free: 212.3 MB / 0.948 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0007428/9.491, allocations: 286.6 kB / 3.888 GB, free: 212.3 MB / 0.948 GB Notification: Performance of preOpt evalFunc (simulation): time 0.001578/9.493, allocations: 1.599 MB / 3.89 GB, free: 210.5 MB / 0.948 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0009697/9.494, allocations: 378.4 kB / 3.89 GB, free: 210.5 MB / 0.948 GB Notification: Performance of pre-optimization done (n=61): time 3.727e-06/9.494, allocations: 0 / 3.89 GB, free: 210.5 MB / 0.948 GB Notification: Performance of matching and sorting (n=61): time 0.002827/9.497, allocations: 0.7058 MB / 3.891 GB, free: 210.4 MB / 0.948 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.948e-05/9.497, allocations: 58.88 kB / 3.891 GB, free: 210.3 MB / 0.948 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001688/9.499, allocations: 0.8397 MB / 3.892 GB, free: 210.2 MB / 0.948 GB Notification: Performance of collectPreVariables (initialization): time 0.0001853/9.499, allocations: 32.7 kB / 3.892 GB, free: 210.1 MB / 0.948 GB Notification: Performance of collectInitialEqns (initialization): time 0.0003064/9.499, allocations: 382.4 kB / 3.892 GB, free: 209.9 MB / 0.948 GB Notification: Performance of collectInitialBindings (initialization): time 0.0002524/9.499, allocations: 206.9 kB / 3.892 GB, free: 209.8 MB / 0.948 GB Notification: Performance of simplifyInitialFunctions (initialization): time 7.399e-05/9.499, allocations: 0 / 3.892 GB, free: 209.8 MB / 0.948 GB Notification: Performance of setup shared object (initialization): time 8.929e-05/9.5, allocations: 337.7 kB / 3.893 GB, free: 209.5 MB / 0.948 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000797/9.5, allocations: 255.1 kB / 3.893 GB, free: 209.5 MB / 0.948 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0009661/9.501, allocations: 0.5708 MB / 3.893 GB, free: 209.1 MB / 0.948 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.001457/9.503, allocations: 350.2 kB / 3.894 GB, free: 209.1 MB / 0.948 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 8.607e-06/9.503, allocations: 3.625 kB / 3.894 GB, free: 209.1 MB / 0.948 GB Notification: Performance of matching and sorting (n=100) (initialization): time 0.003003/9.506, allocations: 0.89 MB / 3.895 GB, free: 209 MB / 0.948 GB Notification: Performance of prepare postOptimizeDAE: time 2.288e-05/9.506, allocations: 3.688 kB / 3.895 GB, free: 209 MB / 0.948 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.862e-05/9.506, allocations: 7.938 kB / 3.895 GB, free: 209 MB / 0.948 GB Notification: Performance of postOpt tearingSystem (initialization): time 3.621e-05/9.506, allocations: 14.75 kB / 3.895 GB, free: 209 MB / 0.948 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002503/9.508, allocations: 284 kB / 3.895 GB, free: 209 MB / 0.948 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.082e-05/9.509, allocations: 21.09 kB / 3.895 GB, free: 209 MB / 0.948 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002486/9.511, allocations: 194.3 kB / 3.895 GB, free: 209 MB / 0.948 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001673/9.511, allocations: 48.22 kB / 3.895 GB, free: 209 MB / 0.948 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 34 * Number of states: 0 () * Number of discrete variables: 15 ($whenCondition3,$PRE.setHeaHigPow.nextTimeEvent,$whenCondition2,$PRE.setCooLimPow.nextTimeEvent,$whenCondition1,$PRE.setHeaCooUnl.nextTimeEvent,setHeaHigPow.nextTimeEvent,$PRE.setHeaHigPow.nextTimeEventScaled,setHeaHigPow.nextTimeEventScaled,setCooLimPow.nextTimeEvent,$PRE.setCooLimPow.nextTimeEventScaled,setCooLimPow.nextTimeEventScaled,setHeaCooUnl.nextTimeEvent,$PRE.setHeaCooUnl.nextTimeEventScaled,setHeaCooUnl.nextTimeEventScaled) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (100): * Single equations (assignments): 100 * 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.000274/9.511, allocations: 139.8 kB / 3.895 GB, free: 208.9 MB / 0.948 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002354/9.512, allocations: 106.9 kB / 3.895 GB, free: 208.8 MB / 0.948 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003892/9.516, allocations: 1.072 MB / 3.897 GB, free: 208.7 MB / 0.948 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.396e-05/9.516, allocations: 10.48 kB / 3.897 GB, free: 208.7 MB / 0.948 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.626e-06/9.516, allocations: 0 / 3.897 GB, free: 208.7 MB / 0.948 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.264e-05/9.516, allocations: 7.047 kB / 3.897 GB, free: 208.7 MB / 0.948 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.005655/9.521, allocations: 1.988 MB / 3.898 GB, free: 208.4 MB / 0.948 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.35e-05/9.521, allocations: 6.656 kB / 3.898 GB, free: 208.4 MB / 0.948 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.002156/9.524, allocations: 215.9 kB / 3.899 GB, free: 208.4 MB / 0.948 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.537e-05/9.524, allocations: 7.594 kB / 3.899 GB, free: 208.4 MB / 0.948 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001135/9.524, allocations: 17.08 kB / 3.899 GB, free: 208.3 MB / 0.948 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 8.566e-06/9.524, allocations: 6.719 kB / 3.899 GB, free: 208.3 MB / 0.948 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.228e-06/9.524, allocations: 3.875 kB / 3.899 GB, free: 208.3 MB / 0.948 GB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.0041/9.528, allocations: 1.527 MB / 3.9 GB, free: 208 MB / 0.948 GB Notification: Performance of postOpt generateSymbolicLinearization (simulation): time 0.005446/9.533, allocations: 2.4 MB / 3.903 GB, free: 207.2 MB / 0.948 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0008597/9.534, allocations: 299 kB / 3.903 GB, free: 207.1 MB / 0.948 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0003029/9.535, allocations: 6.656 kB / 3.903 GB, free: 207.1 MB / 0.948 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.002184/9.537, allocations: 143.2 kB / 3.903 GB, free: 207.1 MB / 0.948 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002055/9.537, allocations: 49.02 kB / 3.903 GB, free: 207.1 MB / 0.948 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001473/9.537, allocations: 32.92 kB / 3.903 GB, free: 207.1 MB / 0.948 GB Notification: Performance of sort global known variables: time 0.002142/9.539, allocations: 0.6334 MB / 3.904 GB, free: 207 MB / 0.948 GB Notification: Performance of remove unused functions: time 0.006595/9.546, allocations: 450.2 kB / 3.904 GB, free: 206.9 MB / 0.948 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 7 * Number of states: 3 (heaHigPow.T,cooLimPow.T,heaCooUnl.T) * Number of discrete variables: 9 ($whenCondition3,$whenCondition2,$whenCondition1,setHeaHigPow.nextTimeEvent,setHeaHigPow.nextTimeEventScaled,setCooLimPow.nextTimeEvent,setCooLimPow.nextTimeEventScaled,setHeaCooUnl.nextTimeEvent,setHeaCooUnl.nextTimeEventScaled) * Number of discrete states: 6 (setHeaHigPow.nextTimeEvent,setCooLimPow.nextTimeEvent,setHeaCooUnl.nextTimeEvent,setHeaCooUnl.nextTimeEventScaled,setCooLimPow.nextTimeEventScaled,setHeaHigPow.nextTimeEventScaled) * Top-level inputs: 0 Notification: Strong component statistics for simulation (76): * Single equations (assignments): 61 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 9 * When equations: 6 * 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.003379/9.55, allocations: 0.6973 MB / 3.905 GB, free: 206.8 MB / 0.948 GB Notification: Performance of simCode: created initialization part: time 0.003263/9.553, allocations: 0.7431 MB / 3.906 GB, free: 206.7 MB / 0.948 GB Notification: Performance of simCode: created event and clocks part: time 9.778e-06/9.553, allocations: 0 / 3.906 GB, free: 206.7 MB / 0.948 GB Notification: Performance of simCode: created simulation system equations: time 0.001121/9.554, allocations: 414.2 kB / 3.906 GB, free: 206.7 MB / 0.948 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003369/9.558, allocations: 335.4 kB / 3.906 GB, free: 206.7 MB / 0.948 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.006877/9.564, allocations: 1.822 MB / 3.908 GB, free: 206.3 MB / 0.948 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001629/9.566, allocations: 1.291 MB / 3.909 GB, free: 205.6 MB / 0.948 GB Notification: Performance of SimCode: time 1.563e-06/9.566, allocations: 0 / 3.909 GB, free: 205.6 MB / 0.948 GB (rm -f Buildings_8.0.0_Buildings.Fluid.Interfaces.Examples.PrescribedOutlet_Water.pipe ; mkfifo Buildings_8.0.0_Buildings.Fluid.Interfaces.Examples.PrescribedOutlet_Water.pipe ; head -c 1048576 < Buildings_8.0.0_Buildings.Fluid.Interfaces.Examples.PrescribedOutlet_Water.pipe >> ../files/Buildings_8.0.0_Buildings.Fluid.Interfaces.Examples.PrescribedOutlet_Water.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator --tempDir=temp_Buildings_8_0_0_Buildings_Fluid_Interfaces_Examples_PrescribedOutlet_Water_fmu --startTime=0 --stopTime=1200 --timeout=50 --tolerance=1e-06 Buildings_8_0_0_Buildings_Fluid_Interfaces_Examples_PrescribedOutlet_Water.fmu > Buildings_8.0.0_Buildings.Fluid.Interfaces.Examples.PrescribedOutlet_Water.pipe 2>&1)