Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Buildings_9_Buildings.Fluid.Interfaces.Examples.PrescribedOutlet_Water.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.1.1-maint.9.1.x/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 9.1.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.1.1-maint.9.1.x/package.mo) Running command: "" <> buildModelFMU(Buildings.Fluid.Interfaces.Examples.PrescribedOutlet_Water,fileNamePrefix="Buildings_9_Buildings_Fluid_Interfaces_Examples_PrescribedOutlet_Water",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Fluid.Interfaces.Examples.PrescribedOutlet_Water,fileNamePrefix="Buildings_9_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 9.1.1-maint.9.1.x/package.mo): time 2.142/2.142, allocations: 387.2 MB / 394.5 MB, free: 13.62 MB / 314.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001119/0.001119, allocations: 184.5 kB / 487 MB, free: 5.387 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.374/1.374, allocations: 221.3 MB / 0.7819 GB, free: 1.441 MB / 0.5417 GB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0009437/0.0009439, allocations: 100.8 kB / 0.9213 GB, free: 2.691 MB / 0.6823 GB Notification: Performance of FrontEnd - loaded program: time 0.646/0.647, allocations: 148.4 MB / 1.066 GB, free: 168.2 MB / 0.7448 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3042/0.9512, allocations: 142.3 MB / 1.205 GB, free: 26.15 MB / 0.7448 GB Notification: Performance of FrontEnd - scodeFlatten: time 4.674/5.625, allocations: 2.157 GB / 3.363 GB, free: 145.8 MB / 1.151 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002201/5.625, allocations: 83.95 kB / 3.363 GB, free: 145.7 MB / 1.151 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.376/8.001, allocations: 0.6013 GB / 3.964 GB, free: 295.2 MB / 1.151 GB Notification: Performance of prepare preOptimizeDAE: time 4.052e-05/8.001, allocations: 15.89 kB / 3.964 GB, free: 295.2 MB / 1.151 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.003134/8.004, allocations: 0.6413 MB / 3.965 GB, free: 295.1 MB / 1.151 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002327/8.007, allocations: 0.9354 MB / 3.966 GB, free: 294.8 MB / 1.151 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.596e-05/8.007, allocations: 23.31 kB / 3.966 GB, free: 294.8 MB / 1.151 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001086/8.007, allocations: 44.5 kB / 3.966 GB, free: 294.8 MB / 1.151 GB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0009967/8.008, allocations: 0.5618 MB / 3.966 GB, free: 294.8 MB / 1.151 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001086/8.009, allocations: 0.8289 MB / 3.967 GB, free: 294.6 MB / 1.151 GB Notification: Performance of preOpt findStateOrder (simulation): time 2.175e-05/8.009, allocations: 1.688 kB / 3.967 GB, free: 294.6 MB / 1.151 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.732e-05/8.009, allocations: 3.812 kB / 3.967 GB, free: 294.6 MB / 1.151 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.733e-05/8.009, allocations: 33.02 kB / 3.967 GB, free: 294.6 MB / 1.151 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.004962/8.014, allocations: 4.842 MB / 3.972 GB, free: 291.5 MB / 1.151 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0009341/8.015, allocations: 0.5387 MB / 3.972 GB, free: 291.5 MB / 1.151 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003918/8.015, allocations: 299.1 kB / 3.973 GB, free: 291.5 MB / 1.151 GB Notification: Performance of preOpt evalFunc (simulation): time 0.001056/8.016, allocations: 1.596 MB / 3.974 GB, free: 289.7 MB / 1.151 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0005305/8.017, allocations: 375.3 kB / 3.975 GB, free: 289.7 MB / 1.151 GB Notification: Performance of pre-optimization done (n=61): time 4.118e-06/8.017, allocations: 6.125 kB / 3.975 GB, free: 289.7 MB / 1.151 GB Notification: Performance of matching and sorting (n=61): time 0.001613/8.019, allocations: 0.698 MB / 3.975 GB, free: 289.6 MB / 1.151 GB Notification: Performance of inlineWhenForInitialization (initialization): time 2.767e-05/8.019, allocations: 69.11 kB / 3.975 GB, free: 289.5 MB / 1.151 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0008991/8.019, allocations: 0.8326 MB / 3.976 GB, free: 289.4 MB / 1.151 GB Notification: Performance of collectPreVariables (initialization): time 6.661e-05/8.02, allocations: 33.33 kB / 3.976 GB, free: 289.3 MB / 1.151 GB Notification: Performance of collectInitialEqns (initialization): time 0.0002045/8.02, allocations: 376.3 kB / 3.977 GB, free: 289.1 MB / 1.151 GB Notification: Performance of collectInitialBindings (initialization): time 0.0001488/8.02, allocations: 203.7 kB / 3.977 GB, free: 289 MB / 1.151 GB Notification: Performance of simplifyInitialFunctions (initialization): time 4.351e-05/8.02, allocations: 0 / 3.977 GB, free: 289 MB / 1.151 GB Notification: Performance of setup shared object (initialization): time 6.805e-05/8.02, allocations: 337.7 kB / 3.977 GB, free: 288.7 MB / 1.151 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003839/8.02, allocations: 253.2 kB / 3.977 GB, free: 288.7 MB / 1.151 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005211/8.021, allocations: 0.5449 MB / 3.978 GB, free: 288.4 MB / 1.151 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0007836/8.022, allocations: 351.3 kB / 3.978 GB, free: 288.4 MB / 1.151 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.11e-06/8.022, allocations: 3.906 kB / 3.978 GB, free: 288.4 MB / 1.151 GB Notification: Performance of matching and sorting (n=100) (initialization): time 0.001581/8.023, allocations: 0.8749 MB / 3.979 GB, free: 288.3 MB / 1.151 GB Notification: Performance of prepare postOptimizeDAE: time 1.439e-05/8.023, allocations: 11.28 kB / 3.979 GB, free: 288.3 MB / 1.151 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.191e-05/8.023, allocations: 7.531 kB / 3.979 GB, free: 288.3 MB / 1.151 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.647e-05/8.023, allocations: 14.84 kB / 3.979 GB, free: 288.3 MB / 1.151 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001242/8.025, allocations: 290.5 kB / 3.979 GB, free: 288.3 MB / 1.151 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.216e-05/8.025, allocations: 15.41 kB / 3.979 GB, free: 288.3 MB / 1.151 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001279/8.026, allocations: 187.1 kB / 3.98 GB, free: 288.2 MB / 1.151 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001138/8.026, allocations: 52.5 kB / 3.98 GB, free: 288.2 MB / 1.151 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.0002143/8.026, allocations: 143.2 kB / 3.98 GB, free: 288.1 MB / 1.151 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001746/8.027, allocations: 109.4 kB / 3.98 GB, free: 288.1 MB / 1.151 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.00264/8.029, allocations: 1.066 MB / 3.981 GB, free: 288 MB / 1.151 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.846e-05/8.029, allocations: 6.156 kB / 3.981 GB, free: 288 MB / 1.151 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.095e-06/8.029, allocations: 0 / 3.981 GB, free: 288 MB / 1.151 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.117e-05/8.029, allocations: 7.188 kB / 3.981 GB, free: 288 MB / 1.151 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003455/8.033, allocations: 1.999 MB / 3.983 GB, free: 287.7 MB / 1.151 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.802e-06/8.033, allocations: 0 / 3.983 GB, free: 287.7 MB / 1.151 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001104/8.034, allocations: 216.8 kB / 3.983 GB, free: 287.7 MB / 1.151 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.279e-05/8.034, allocations: 11.12 kB / 3.983 GB, free: 287.7 MB / 1.151 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.807e-05/8.034, allocations: 19.17 kB / 3.983 GB, free: 287.7 MB / 1.151 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.819e-06/8.034, allocations: 3.688 kB / 3.983 GB, free: 287.7 MB / 1.151 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.659e-06/8.034, allocations: 7.812 kB / 3.983 GB, free: 287.7 MB / 1.151 GB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.002179/8.036, allocations: 1.519 MB / 3.985 GB, free: 287.3 MB / 1.151 GB Notification: Performance of postOpt generateSymbolicLinearization (simulation): time 0.002807/8.039, allocations: 2.399 MB / 3.987 GB, free: 286.6 MB / 1.151 GB Notification: Performance of postOpt removeConstants (simulation): time 0.000505/8.039, allocations: 304.2 kB / 3.987 GB, free: 286.4 MB / 1.151 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002371/8.04, allocations: 6.406 kB / 3.987 GB, free: 286.4 MB / 1.151 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0011/8.041, allocations: 124.9 kB / 3.987 GB, free: 286.4 MB / 1.151 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001086/8.041, allocations: 50.91 kB / 3.987 GB, free: 286.4 MB / 1.151 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.65e-05/8.041, allocations: 37.17 kB / 3.987 GB, free: 286.4 MB / 1.151 GB Notification: Performance of sort global known variables: time 0.0008491/8.042, allocations: 0.6296 MB / 3.988 GB, free: 286.3 MB / 1.151 GB Notification: Performance of remove unused functions: time 0.002058/8.044, allocations: 439.3 kB / 3.988 GB, free: 286.3 MB / 1.151 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.001541/8.045, allocations: 0.7121 MB / 3.989 GB, free: 286.1 MB / 1.151 GB Notification: Performance of simCode: created initialization part: time 0.001246/8.047, allocations: 0.7415 MB / 3.99 GB, free: 286.1 MB / 1.151 GB Notification: Performance of simCode: created event and clocks part: time 3.106e-06/8.047, allocations: 0 / 3.99 GB, free: 286.1 MB / 1.151 GB Notification: Performance of simCode: created simulation system equations: time 0.0006081/8.047, allocations: 412.2 kB / 3.99 GB, free: 286.1 MB / 1.151 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001599/8.049, allocations: 320 kB / 3.991 GB, free: 286.1 MB / 1.151 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004064/8.053, allocations: 1.823 MB / 3.992 GB, free: 285.6 MB / 1.151 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001109/8.054, allocations: 1.281 MB / 3.994 GB, free: 284.9 MB / 1.151 GB Notification: Performance of SimCode: time 7.61e-07/8.054, allocations: 0 / 3.994 GB, free: 284.9 MB / 1.151 GB (rm -f Buildings_9_Buildings.Fluid.Interfaces.Examples.PrescribedOutlet_Water.pipe ; mkfifo Buildings_9_Buildings.Fluid.Interfaces.Examples.PrescribedOutlet_Water.pipe ; head -c 1048576 < Buildings_9_Buildings.Fluid.Interfaces.Examples.PrescribedOutlet_Water.pipe >> ../files/Buildings_9_Buildings.Fluid.Interfaces.Examples.PrescribedOutlet_Water.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Buildings_9_Buildings.Fluid.Interfaces.Examples.PrescribedOutlet_Water_res.mat --tempDir=temp_Buildings_9_Buildings_Fluid_Interfaces_Examples_PrescribedOutlet_Water_fmu --startTime=0 --stopTime=1200 --timeout=50 --tolerance=1e-06 Buildings_9_Buildings_Fluid_Interfaces_Examples_PrescribedOutlet_Water.fmu > Buildings_9_Buildings.Fluid.Interfaces.Examples.PrescribedOutlet_Water.pipe 2>&1)