Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr BuildingSystems_BuildingSystems.Fluid.Interfaces.Examples.PrescribedOutlet_Water.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.Fluid.Interfaces.Examples.PrescribedOutlet_Water,fileNamePrefix="BuildingSystems_BuildingSystems_Fluid_Interfaces_Examples_PrescribedOutlet_Water",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(BuildingSystems.Fluid.Interfaces.Examples.PrescribedOutlet_Water,fileNamePrefix="BuildingSystems_BuildingSystems_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/BuildingSystems 2.0.0-master/package.mo): time 0.7419/0.7419, allocations: 141.8 MB / 149.1 MB, free: 11.61 MB / 138.9 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001136/0.001136, allocations: 177.2 kB / 182 MB, free: 8.41 MB / 154.9 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.341/1.341, allocations: 221.3 MB / 436.1 MB, free: 0.6836 MB / 330.9 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001088/0.001088, allocations: 98.83 kB / 0.507 GB, free: 9.668 MB / 394.9 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/NcDataReader2 2.5.1-master/package.mo): time 0.001898/0.001898, allocations: 283.2 kB / 0.5885 GB, free: 6.488 MB / 474.9 MB Notification: Performance of FrontEnd - loaded program: time 0.1938/0.1957, allocations: 89.64 MB / 0.676 GB, free: 12.77 MB / 0.5575 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3934/0.5891, allocations: 82.77 MB / 0.7568 GB, free: 137.7 MB / 0.5575 GB Notification: Performance of FrontEnd - scodeFlatten: time 3.758/4.347, allocations: 2.118 GB / 2.875 GB, free: 186.5 MB / 0.6982 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002762/4.347, allocations: 88.66 kB / 2.875 GB, free: 186.4 MB / 0.6982 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 1.736/6.083, allocations: 0.6025 GB / 3.477 GB, free: 109.4 MB / 0.6982 GB Notification: Performance of prepare preOptimizeDAE: time 3.575e-05/6.083, allocations: 9 kB / 3.477 GB, free: 109.4 MB / 0.6982 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.003337/6.086, allocations: 0.634 MB / 3.478 GB, free: 108.8 MB / 0.6982 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002635/6.089, allocations: 0.968 MB / 3.479 GB, free: 107.8 MB / 0.6982 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.178e-05/6.089, allocations: 20 kB / 3.479 GB, free: 107.8 MB / 0.6982 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002131/6.089, allocations: 44 kB / 3.479 GB, free: 107.8 MB / 0.6982 GB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.00107/6.09, allocations: 0.5692 MB / 3.48 GB, free: 107.2 MB / 0.6982 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.00116/6.092, allocations: 0.82 MB / 3.48 GB, free: 106.3 MB / 0.6982 GB Notification: Performance of preOpt findStateOrder (simulation): time 2.254e-05/6.092, allocations: 3.938 kB / 3.48 GB, free: 106.3 MB / 0.6982 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.42e-05/6.092, allocations: 4 kB / 3.48 GB, free: 106.3 MB / 0.6982 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.353e-05/6.092, allocations: 36.48 kB / 3.48 GB, free: 106.3 MB / 0.6982 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.005334/6.097, allocations: 4.855 MB / 3.485 GB, free: 101.2 MB / 0.6982 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0009784/6.098, allocations: 0.5385 MB / 3.486 GB, free: 100.7 MB / 0.6982 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004013/6.099, allocations: 293.6 kB / 3.486 GB, free: 100.4 MB / 0.6982 GB Notification: Performance of preOpt evalFunc (simulation): time 0.001041/6.1, allocations: 1.598 MB / 3.488 GB, free: 98.45 MB / 0.6982 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0005075/6.1, allocations: 377 kB / 3.488 GB, free: 98.07 MB / 0.6982 GB Notification: Performance of pre-optimization done (n=61): time 3.596e-06/6.1, allocations: 3.438 kB / 3.488 GB, free: 98.07 MB / 0.6982 GB Notification: Performance of matching and sorting (n=61): time 0.001649/6.102, allocations: 0.7047 MB / 3.489 GB, free: 97.36 MB / 0.6982 GB Notification: Performance of inlineWhenForInitialization (initialization): time 2.648e-05/6.102, allocations: 59.84 kB / 3.489 GB, free: 97.29 MB / 0.6982 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001023/6.103, allocations: 0.8467 MB / 3.49 GB, free: 96.42 MB / 0.6982 GB Notification: Performance of collectPreVariables (initialization): time 7.964e-05/6.103, allocations: 33.7 kB / 3.49 GB, free: 96.38 MB / 0.6982 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001959/6.103, allocations: 379.4 kB / 3.49 GB, free: 96 MB / 0.6982 GB Notification: Performance of collectInitialBindings (initialization): time 0.0001352/6.103, allocations: 197.2 kB / 3.49 GB, free: 95.81 MB / 0.6982 GB Notification: Performance of simplifyInitialFunctions (initialization): time 4.525e-05/6.103, allocations: 0 / 3.49 GB, free: 95.81 MB / 0.6982 GB Notification: Performance of setup shared object (initialization): time 6.593e-05/6.103, allocations: 341.1 kB / 3.49 GB, free: 95.47 MB / 0.6982 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003655/6.104, allocations: 246 kB / 3.491 GB, free: 95.23 MB / 0.6982 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005046/6.104, allocations: 0.5727 MB / 3.491 GB, free: 94.52 MB / 0.6982 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.000832/6.105, allocations: 357.7 kB / 3.492 GB, free: 94.19 MB / 0.6982 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.648e-06/6.105, allocations: 4 kB / 3.492 GB, free: 94.18 MB / 0.6982 GB Notification: Performance of matching and sorting (n=100) (initialization): time 0.001663/6.107, allocations: 0.8836 MB / 3.492 GB, free: 93.3 MB / 0.6982 GB Notification: Performance of prepare postOptimizeDAE: time 1.5e-05/6.107, allocations: 4 kB / 3.492 GB, free: 93.29 MB / 0.6982 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.979e-06/6.107, allocations: 8 kB / 3.492 GB, free: 93.29 MB / 0.6982 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.371e-05/6.107, allocations: 19.91 kB / 3.492 GB, free: 93.27 MB / 0.6982 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001223/6.108, allocations: 288.8 kB / 3.493 GB, free: 93 MB / 0.6982 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.44e-05/6.108, allocations: 19.92 kB / 3.493 GB, free: 92.98 MB / 0.6982 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001292/6.109, allocations: 195.1 kB / 3.493 GB, free: 92.8 MB / 0.6982 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001073/6.11, allocations: 51.97 kB / 3.493 GB, free: 92.75 MB / 0.6982 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.0001666/6.11, allocations: 141.5 kB / 3.493 GB, free: 92.6 MB / 0.6982 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001615/6.11, allocations: 114.2 kB / 3.493 GB, free: 92.49 MB / 0.6982 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002117/6.112, allocations: 1.059 MB / 3.494 GB, free: 91.46 MB / 0.6982 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.828e-05/6.112, allocations: 19.92 kB / 3.494 GB, free: 91.45 MB / 0.6982 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.67e-06/6.112, allocations: 3.344 kB / 3.494 GB, free: 91.45 MB / 0.6982 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.052e-05/6.112, allocations: 7.891 kB / 3.494 GB, free: 91.44 MB / 0.6982 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0031/6.115, allocations: 1.976 MB / 3.496 GB, free: 89.43 MB / 0.6982 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.312e-06/6.115, allocations: 4 kB / 3.496 GB, free: 89.42 MB / 0.6982 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001095/6.116, allocations: 214.1 kB / 3.496 GB, free: 89.22 MB / 0.6982 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.173e-05/6.116, allocations: 4 kB / 3.496 GB, free: 89.22 MB / 0.6982 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.741e-05/6.116, allocations: 19.98 kB / 3.496 GB, free: 89.2 MB / 0.6982 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.9e-06/6.116, allocations: 7.984 kB / 3.496 GB, free: 89.19 MB / 0.6982 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.566e-06/6.116, allocations: 3.984 kB / 3.496 GB, free: 89.19 MB / 0.6982 GB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.002156/6.119, allocations: 1.522 MB / 3.498 GB, free: 87.6 MB / 0.6982 GB Notification: Performance of postOpt generateSymbolicLinearization (simulation): time 0.002773/6.121, allocations: 2.41 MB / 3.5 GB, free: 85.13 MB / 0.6982 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0004454/6.122, allocations: 291.4 kB / 3.501 GB, free: 84.82 MB / 0.6982 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002192/6.122, allocations: 7.984 kB / 3.501 GB, free: 84.82 MB / 0.6982 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001074/6.123, allocations: 137.9 kB / 3.501 GB, free: 84.7 MB / 0.6982 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.705e-05/6.123, allocations: 48.58 kB / 3.501 GB, free: 84.65 MB / 0.6982 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.377e-05/6.123, allocations: 35.97 kB / 3.501 GB, free: 84.62 MB / 0.6982 GB Notification: Performance of sort global known variables: time 0.0006528/6.124, allocations: 0.6349 MB / 3.501 GB, free: 83.98 MB / 0.6982 GB Notification: Performance of remove unused functions: time 0.00194/6.126, allocations: 447.3 kB / 3.502 GB, free: 83.54 MB / 0.6982 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.00138/6.127, allocations: 0.7146 MB / 3.503 GB, free: 83.05 MB / 0.6982 GB Notification: Performance of simCode: created initialization part: time 0.001139/6.128, allocations: 0.7367 MB / 3.503 GB, free: 82.32 MB / 0.6982 GB Notification: Performance of simCode: created event and clocks part: time 2.525e-06/6.128, allocations: 0 / 3.503 GB, free: 82.32 MB / 0.6982 GB Notification: Performance of simCode: created simulation system equations: time 0.0005491/6.129, allocations: 413.2 kB / 3.504 GB, free: 81.92 MB / 0.6982 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.00154/6.131, allocations: 336.3 kB / 3.504 GB, free: 81.61 MB / 0.6982 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00369/6.134, allocations: 1.822 MB / 3.506 GB, free: 79.79 MB / 0.6982 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001/6.135, allocations: 1.275 MB / 3.507 GB, free: 78.49 MB / 0.6982 GB Notification: Performance of SimCode: time 2.9e-07/6.135, allocations: 4 kB / 3.507 GB, free: 78.49 MB / 0.6982 GB (rm -f BuildingSystems_BuildingSystems.Fluid.Interfaces.Examples.PrescribedOutlet_Water.pipe ; mkfifo BuildingSystems_BuildingSystems.Fluid.Interfaces.Examples.PrescribedOutlet_Water.pipe ; head -c 1048576 < BuildingSystems_BuildingSystems.Fluid.Interfaces.Examples.PrescribedOutlet_Water.pipe >> ../files/BuildingSystems_BuildingSystems.Fluid.Interfaces.Examples.PrescribedOutlet_Water.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator --tempDir=temp_BuildingSystems_BuildingSystems_Fluid_Interfaces_Examples_PrescribedOutlet_Water_fmu --startTime=0 --stopTime=1200 --timeout=50 --tolerance=1e-06 BuildingSystems_BuildingSystems_Fluid_Interfaces_Examples_PrescribedOutlet_Water.fmu > BuildingSystems_BuildingSystems.Fluid.Interfaces.Examples.PrescribedOutlet_Water.pipe 2>&1)