Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr BuildSysPro_BuildSysPro.IBPSA.Fluid.Interfaces.Examples.PrescribedOutlet_Water.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildSysPro 3.5.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 BuildSysPro with version 3.4.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildSysPro 3.5.0/package.mo) Running command: "" <> buildModelFMU(BuildSysPro.IBPSA.Fluid.Interfaces.Examples.PrescribedOutlet_Water,fileNamePrefix="BuildSysPro_BuildSysPro_IBPSA_Fluid_Interfaces_Examples_PrescribedOutlet_Water",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(BuildSysPro.IBPSA.Fluid.Interfaces.Examples.PrescribedOutlet_Water,fileNamePrefix="BuildSysPro_BuildSysPro_IBPSA_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/BuildSysPro 3.5.0/package.mo): time 0.7999/0.7999, allocations: 127.4 MB / 134.6 MB, free: 4.07 MB / 106.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.001466/0.001466, allocations: 185.3 kB / 164.4 MB, free: 6.871 MB / 138.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.883/1.883, allocations: 205.1 MB / 399.1 MB, free: 6.094 MB / 298.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.001106/0.001106, allocations: 88.47 kB / 476.3 MB, free: 8.836 MB / 378.7 MB Notification: Performance of FrontEnd - loaded program: time 0.3579/0.3591, allocations: 82.88 MB / 0.5461 GB, free: 42.66 MB / 378.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2117/0.5708, allocations: 76.75 MB / 0.621 GB, free: 13.83 MB / 426.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 5.966/6.537, allocations: 2.387 GB / 3.008 GB, free: 67.12 MB / 0.6355 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003189/6.537, allocations: 91.94 kB / 3.008 GB, free: 67.03 MB / 0.6355 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.626/9.163, allocations: 0.5841 GB / 3.592 GB, free: 113.3 MB / 0.6355 GB Notification: Performance of prepare preOptimizeDAE: time 4.285e-05/9.163, allocations: 10.78 kB / 3.592 GB, free: 113.3 MB / 0.6355 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.003597/9.167, allocations: 0.6378 MB / 3.593 GB, free: 113.3 MB / 0.6355 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.003371/9.17, allocations: 0.9474 MB / 3.594 GB, free: 113 MB / 0.6355 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 6.057e-05/9.17, allocations: 29.41 kB / 3.594 GB, free: 113 MB / 0.6355 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.00027/9.17, allocations: 47.12 kB / 3.594 GB, free: 113 MB / 0.6355 GB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.00141/9.172, allocations: 0.5646 MB / 3.594 GB, free: 113 MB / 0.6355 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.00137/9.173, allocations: 0.7988 MB / 3.595 GB, free: 112.7 MB / 0.6355 GB Notification: Performance of preOpt findStateOrder (simulation): time 2.39e-05/9.173, allocations: 0 / 3.595 GB, free: 112.7 MB / 0.6355 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.738e-05/9.173, allocations: 11.31 kB / 3.595 GB, free: 112.7 MB / 0.6355 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.097e-05/9.173, allocations: 22.31 kB / 3.595 GB, free: 112.7 MB / 0.6355 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.009375/9.183, allocations: 5.65 MB / 3.601 GB, free: 108.7 MB / 0.6355 GB Notification: Performance of preOpt comSubExp (simulation): time 0.001716/9.185, allocations: 0.5668 MB / 3.601 GB, free: 108.7 MB / 0.6355 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0006345/9.185, allocations: 227.5 kB / 3.602 GB, free: 108.7 MB / 0.6355 GB Notification: Performance of preOpt evalFunc (simulation): time 0.001015/9.186, allocations: 0.7784 MB / 3.602 GB, free: 107.9 MB / 0.6355 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.000718/9.187, allocations: 337.4 kB / 3.603 GB, free: 107.8 MB / 0.6355 GB Notification: Performance of pre-optimization done (n=50): time 5.14e-06/9.187, allocations: 3.484 kB / 3.603 GB, free: 107.8 MB / 0.6355 GB Notification: Performance of matching and sorting (n=50): time 0.002345/9.189, allocations: 0.5949 MB / 3.603 GB, free: 107.7 MB / 0.6355 GB Notification: Performance of inlineWhenForInitialization (initialization): time 5.554e-05/9.19, allocations: 55.69 kB / 3.603 GB, free: 107.6 MB / 0.6355 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002112/9.192, allocations: 0.8898 MB / 3.604 GB, free: 107.5 MB / 0.6355 GB Notification: Performance of collectPreVariables (initialization): time 0.0001186/9.192, allocations: 32.92 kB / 3.604 GB, free: 107.5 MB / 0.6355 GB Notification: Performance of collectInitialEqns (initialization): time 0.0003897/9.192, allocations: 412 kB / 3.605 GB, free: 107.3 MB / 0.6355 GB Notification: Performance of collectInitialBindings (initialization): time 0.0001975/9.192, allocations: 173.1 kB / 3.605 GB, free: 107.2 MB / 0.6355 GB Notification: Performance of simplifyInitialFunctions (initialization): time 5.441e-05/9.192, allocations: 0 / 3.605 GB, free: 107.2 MB / 0.6355 GB Notification: Performance of setup shared object (initialization): time 0.0001057/9.193, allocations: 339.1 kB / 3.605 GB, free: 106.9 MB / 0.6355 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004591/9.193, allocations: 239.6 kB / 3.605 GB, free: 106.9 MB / 0.6355 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0008011/9.194, allocations: 0.5584 MB / 3.606 GB, free: 106.5 MB / 0.6355 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.001281/9.195, allocations: 344.1 kB / 3.606 GB, free: 106.5 MB / 0.6355 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.7e-05/9.195, allocations: 7.219 kB / 3.606 GB, free: 106.5 MB / 0.6355 GB Notification: Performance of matching and sorting (n=99) (initialization): time 0.00269/9.198, allocations: 0.862 MB / 3.607 GB, free: 106.4 MB / 0.6355 GB Notification: Performance of prepare postOptimizeDAE: time 2.906e-05/9.198, allocations: 12.94 kB / 3.607 GB, free: 106.4 MB / 0.6355 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.008e-05/9.198, allocations: 7.625 kB / 3.607 GB, free: 106.4 MB / 0.6355 GB Notification: Performance of postOpt tearingSystem (initialization): time 4.064e-05/9.198, allocations: 20.59 kB / 3.607 GB, free: 106.4 MB / 0.6355 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001328/9.199, allocations: 289.2 kB / 3.607 GB, free: 106.4 MB / 0.6355 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.511e-05/9.199, allocations: 17.64 kB / 3.607 GB, free: 106.4 MB / 0.6355 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001747/9.201, allocations: 199.8 kB / 3.608 GB, free: 106.4 MB / 0.6355 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001653/9.201, allocations: 49.59 kB / 3.608 GB, free: 106.4 MB / 0.6355 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 (99): * Single equations (assignments): 99 * 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.0002607/9.202, allocations: 137.3 kB / 3.608 GB, free: 106.3 MB / 0.6355 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003562/9.202, allocations: 110.9 kB / 3.608 GB, free: 106.2 MB / 0.6355 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002226/9.204, allocations: 0.86 MB / 3.609 GB, free: 106.1 MB / 0.6355 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.566e-05/9.204, allocations: 3.906 kB / 3.609 GB, free: 106.1 MB / 0.6355 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.486e-06/9.204, allocations: 0 / 3.609 GB, free: 106.1 MB / 0.6355 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.978e-06/9.204, allocations: 3.562 kB / 3.609 GB, free: 106.1 MB / 0.6355 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001628/9.206, allocations: 0.7889 MB / 3.609 GB, free: 105.9 MB / 0.6355 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.744e-06/9.206, allocations: 0 / 3.609 GB, free: 105.9 MB / 0.6355 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001159/9.207, allocations: 196.8 kB / 3.61 GB, free: 105.9 MB / 0.6355 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.539e-05/9.207, allocations: 0 / 3.61 GB, free: 105.9 MB / 0.6355 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.023e-05/9.207, allocations: 13.39 kB / 3.61 GB, free: 105.9 MB / 0.6355 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 8.235e-06/9.207, allocations: 8.938 kB / 3.61 GB, free: 105.9 MB / 0.6355 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.731e-06/9.207, allocations: 3.906 kB / 3.61 GB, free: 105.9 MB / 0.6355 GB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.002248/9.209, allocations: 1.067 MB / 3.611 GB, free: 105.8 MB / 0.6355 GB Notification: Performance of postOpt generateSymbolicLinearization (simulation): time 0.002729/9.212, allocations: 1.851 MB / 3.612 GB, free: 105.3 MB / 0.6355 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0004821/9.213, allocations: 217.1 kB / 3.613 GB, free: 105.1 MB / 0.6355 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0003006/9.213, allocations: 7.562 kB / 3.613 GB, free: 105.1 MB / 0.6355 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001161/9.214, allocations: 126.2 kB / 3.613 GB, free: 105.1 MB / 0.6355 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001102/9.214, allocations: 36.7 kB / 3.613 GB, free: 105.1 MB / 0.6355 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.668e-05/9.214, allocations: 28.95 kB / 3.613 GB, free: 105.1 MB / 0.6355 GB Notification: Performance of sort global known variables: time 0.001165/9.216, allocations: 0.6597 MB / 3.614 GB, free: 105 MB / 0.6355 GB Notification: Performance of remove unused functions: time 0.002687/9.218, allocations: 440.1 kB / 3.614 GB, free: 104.9 MB / 0.6355 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * 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 (setHeaCooUnl.nextTimeEvent,setCooLimPow.nextTimeEvent,setHeaHigPow.nextTimeEvent,setHeaCooUnl.nextTimeEventScaled,setCooLimPow.nextTimeEventScaled,setHeaHigPow.nextTimeEventScaled) * Top-level inputs: 0 Notification: Strong component statistics for simulation (60): * Single equations (assignments): 50 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 4 * 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.002356/9.221, allocations: 0.7215 MB / 3.615 GB, free: 104.8 MB / 0.6355 GB Notification: Performance of simCode: created initialization part: time 0.001483/9.222, allocations: 0.6505 MB / 3.615 GB, free: 104.8 MB / 0.6355 GB Notification: Performance of simCode: created event and clocks part: time 4.328e-06/9.222, allocations: 0 / 3.615 GB, free: 104.8 MB / 0.6355 GB Notification: Performance of simCode: created simulation system equations: time 0.000571/9.223, allocations: 314.6 kB / 3.616 GB, free: 104.8 MB / 0.6355 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002214/9.225, allocations: 308.8 kB / 3.616 GB, free: 104.8 MB / 0.6355 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004542/9.23, allocations: 1.635 MB / 3.617 GB, free: 104.4 MB / 0.6355 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001446/9.231, allocations: 1.273 MB / 3.619 GB, free: 103.7 MB / 0.6355 GB Notification: Performance of SimCode: time 1.774e-06/9.231, allocations: 0 / 3.619 GB, free: 103.7 MB / 0.6355 GB (rm -f BuildSysPro_BuildSysPro.IBPSA.Fluid.Interfaces.Examples.PrescribedOutlet_Water.pipe ; mkfifo BuildSysPro_BuildSysPro.IBPSA.Fluid.Interfaces.Examples.PrescribedOutlet_Water.pipe ; head -c 1048576 < BuildSysPro_BuildSysPro.IBPSA.Fluid.Interfaces.Examples.PrescribedOutlet_Water.pipe >> ../files/BuildSysPro_BuildSysPro.IBPSA.Fluid.Interfaces.Examples.PrescribedOutlet_Water.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator --tempDir=temp_BuildSysPro_BuildSysPro_IBPSA_Fluid_Interfaces_Examples_PrescribedOutlet_Water_fmu --startTime=0 --stopTime=1200 --timeout=50 --tolerance=1e-06 BuildSysPro_BuildSysPro_IBPSA_Fluid_Interfaces_Examples_PrescribedOutlet_Water.fmu > BuildSysPro_BuildSysPro.IBPSA.Fluid.Interfaces.Examples.PrescribedOutlet_Water.pipe 2>&1)