Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Buildings_latest_Buildings.Fluid.Interfaces.Examples.PrescribedOutlet_Water.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.Interfaces.Examples.PrescribedOutlet_Water,fileNamePrefix="Buildings_latest_Buildings_Fluid_Interfaces_Examples_PrescribedOutlet_Water",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Fluid.Interfaces.Examples.PrescribedOutlet_Water,fileNamePrefix="Buildings_latest_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 10.0.0-master/package.mo): time 2.343/2.343, allocations: 390.4 MB / 397.7 MB, free: 11.22 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.001773/0.001773, allocations: 189.2 kB / 490.8 MB, free: 1.914 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.711/1.711, allocations: 221.3 MB / 0.7863 GB, free: 13.65 MB / 0.5573 GB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0011/0.0011, allocations: 88.67 kB / 0.9264 GB, free: 14.16 MB / 0.698 GB Notification: Performance of FrontEnd - loaded program: time 0.7329/0.7341, allocations: 149.1 MB / 1.072 GB, free: 182.5 MB / 0.7605 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3315/1.066, allocations: 143 MB / 1.212 GB, free: 40.01 MB / 0.7605 GB Notification: Performance of FrontEnd - scodeFlatten: time 5.433/6.499, allocations: 2.158 GB / 3.37 GB, free: 147.6 MB / 1.151 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.000295/6.499, allocations: 79.95 kB / 3.37 GB, free: 147.6 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.664/9.163, allocations: 0.6013 GB / 3.971 GB, free: 291.3 MB / 1.151 GB Notification: Performance of prepare preOptimizeDAE: time 4.381e-05/9.163, allocations: 11.06 kB / 3.971 GB, free: 291.3 MB / 1.151 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.003277/9.166, allocations: 0.6407 MB / 3.972 GB, free: 291.2 MB / 1.151 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002452/9.169, allocations: 0.9224 MB / 3.973 GB, free: 291 MB / 1.151 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.57e-05/9.169, allocations: 25.97 kB / 3.973 GB, free: 291 MB / 1.151 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001231/9.169, allocations: 47.88 kB / 3.973 GB, free: 291 MB / 1.151 GB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.001054/9.17, allocations: 0.5666 MB / 3.973 GB, free: 291 MB / 1.151 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001079/9.171, allocations: 0.8218 MB / 3.974 GB, free: 290.7 MB / 1.151 GB Notification: Performance of preOpt findStateOrder (simulation): time 2.184e-05/9.171, allocations: 4.125 kB / 3.974 GB, free: 290.7 MB / 1.151 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.982e-05/9.171, allocations: 13.45 kB / 3.974 GB, free: 290.7 MB / 1.151 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.645e-05/9.171, allocations: 31.3 kB / 3.974 GB, free: 290.7 MB / 1.151 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.005172/9.176, allocations: 4.842 MB / 3.979 GB, free: 287.7 MB / 1.151 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0009713/9.177, allocations: 0.544 MB / 3.98 GB, free: 287.7 MB / 1.151 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004033/9.178, allocations: 295 kB / 3.98 GB, free: 287.7 MB / 1.151 GB Notification: Performance of preOpt evalFunc (simulation): time 0.001009/9.179, allocations: 1.598 MB / 3.981 GB, free: 285.9 MB / 1.151 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0005316/9.179, allocations: 380.7 kB / 3.982 GB, free: 285.8 MB / 1.151 GB Notification: Performance of pre-optimization done (n=61): time 3.116e-06/9.179, allocations: 0 / 3.982 GB, free: 285.8 MB / 1.151 GB Notification: Performance of matching and sorting (n=61): time 0.001762/9.181, allocations: 0.7022 MB / 3.982 GB, free: 285.7 MB / 1.151 GB Notification: Performance of inlineWhenForInitialization (initialization): time 2.968e-05/9.181, allocations: 57.09 kB / 3.982 GB, free: 285.7 MB / 1.151 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001032/9.182, allocations: 0.8386 MB / 3.983 GB, free: 285.5 MB / 1.151 GB Notification: Performance of collectPreVariables (initialization): time 8.514e-05/9.182, allocations: 31.23 kB / 3.983 GB, free: 285.5 MB / 1.151 GB Notification: Performance of collectInitialEqns (initialization): time 0.0002738/9.183, allocations: 379.5 kB / 3.984 GB, free: 285.3 MB / 1.151 GB Notification: Performance of collectInitialBindings (initialization): time 0.0001788/9.183, allocations: 205.9 kB / 3.984 GB, free: 285.2 MB / 1.151 GB Notification: Performance of simplifyInitialFunctions (initialization): time 4.416e-05/9.183, allocations: 0 / 3.984 GB, free: 285.2 MB / 1.151 GB Notification: Performance of setup shared object (initialization): time 8.558e-05/9.183, allocations: 332 kB / 3.984 GB, free: 284.9 MB / 1.151 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000399/9.183, allocations: 254.6 kB / 3.984 GB, free: 284.9 MB / 1.151 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005836/9.184, allocations: 0.5404 MB / 3.985 GB, free: 284.5 MB / 1.151 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0009317/9.185, allocations: 349.1 kB / 3.985 GB, free: 284.5 MB / 1.151 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.603e-06/9.185, allocations: 3.75 kB / 3.985 GB, free: 284.5 MB / 1.151 GB Notification: Performance of matching and sorting (n=100) (initialization): time 0.001764/9.187, allocations: 0.8866 MB / 3.986 GB, free: 284.4 MB / 1.151 GB Notification: Performance of prepare postOptimizeDAE: time 2.022e-05/9.187, allocations: 3.781 kB / 3.986 GB, free: 284.4 MB / 1.151 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.309e-05/9.187, allocations: 7.688 kB / 3.986 GB, free: 284.4 MB / 1.151 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.797e-05/9.187, allocations: 13.81 kB / 3.986 GB, free: 284.4 MB / 1.151 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001317/9.188, allocations: 297 kB / 3.986 GB, free: 284.4 MB / 1.151 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.713e-05/9.188, allocations: 17.42 kB / 3.986 GB, free: 284.4 MB / 1.151 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001337/9.189, allocations: 185.3 kB / 3.987 GB, free: 284.4 MB / 1.151 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001223/9.19, allocations: 47.7 kB / 3.987 GB, free: 284.4 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.0002004/9.19, allocations: 152.6 kB / 3.987 GB, free: 284.3 MB / 1.151 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001576/9.19, allocations: 108.5 kB / 3.987 GB, free: 284.2 MB / 1.151 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002418/9.192, allocations: 1.072 MB / 3.988 GB, free: 284.2 MB / 1.151 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.564e-05/9.192, allocations: 11.58 kB / 3.988 GB, free: 284.2 MB / 1.151 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.051e-06/9.192, allocations: 0 / 3.988 GB, free: 284.2 MB / 1.151 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.469e-05/9.192, allocations: 3.797 kB / 3.988 GB, free: 284.2 MB / 1.151 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003651/9.196, allocations: 1.975 MB / 3.99 GB, free: 283.8 MB / 1.151 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.493e-06/9.196, allocations: 0 / 3.99 GB, free: 283.8 MB / 1.151 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001165/9.197, allocations: 220.5 kB / 3.99 GB, free: 283.8 MB / 1.151 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.173e-05/9.197, allocations: 10.47 kB / 3.99 GB, free: 283.8 MB / 1.151 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.379e-05/9.197, allocations: 22.53 kB / 3.99 GB, free: 283.8 MB / 1.151 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 7.234e-06/9.197, allocations: 3.781 kB / 3.99 GB, free: 283.8 MB / 1.151 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.727e-06/9.197, allocations: 1.781 kB / 3.99 GB, free: 283.8 MB / 1.151 GB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.002465/9.2, allocations: 1.524 MB / 3.992 GB, free: 283.5 MB / 1.151 GB Notification: Performance of postOpt generateSymbolicLinearization (simulation): time 0.003032/9.203, allocations: 2.4 MB / 3.994 GB, free: 282.7 MB / 1.151 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0005487/9.203, allocations: 296.5 kB / 3.994 GB, free: 282.6 MB / 1.151 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001914/9.204, allocations: 10.83 kB / 3.994 GB, free: 282.6 MB / 1.151 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001077/9.205, allocations: 129.6 kB / 3.994 GB, free: 282.6 MB / 1.151 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.377e-05/9.205, allocations: 49.12 kB / 3.994 GB, free: 282.6 MB / 1.151 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.374e-05/9.205, allocations: 30.27 kB / 3.995 GB, free: 282.6 MB / 1.151 GB Notification: Performance of sort global known variables: time 0.0007838/9.206, allocations: 0.6305 MB / 3.995 GB, free: 282.4 MB / 1.151 GB Notification: Performance of remove unused functions: time 0.002028/9.208, allocations: 442.1 kB / 3.996 GB, free: 282.4 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.00159/9.209, allocations: 0.7163 MB / 3.996 GB, free: 282.3 MB / 1.151 GB Notification: Performance of simCode: created initialization part: time 0.00138/9.211, allocations: 0.7406 MB / 3.997 GB, free: 282.3 MB / 1.151 GB Notification: Performance of simCode: created event and clocks part: time 3.737e-06/9.211, allocations: 0 / 3.997 GB, free: 282.3 MB / 1.151 GB Notification: Performance of simCode: created simulation system equations: time 0.0005971/9.211, allocations: 411.9 kB / 3.997 GB, free: 282.3 MB / 1.151 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001868/9.213, allocations: 318.1 kB / 3.998 GB, free: 282.2 MB / 1.151 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004474/9.218, allocations: 1.817 MB / 3.999 GB, free: 281.8 MB / 1.151 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001346/9.219, allocations: 1.282 MB / 4.001 GB, free: 281.1 MB / 1.151 GB Notification: Performance of SimCode: time 2.054e-06/9.219, allocations: 0 / 4.001 GB, free: 281.1 MB / 1.151 GB (rm -f Buildings_latest_Buildings.Fluid.Interfaces.Examples.PrescribedOutlet_Water.pipe ; mkfifo Buildings_latest_Buildings.Fluid.Interfaces.Examples.PrescribedOutlet_Water.pipe ; head -c 1048576 < Buildings_latest_Buildings.Fluid.Interfaces.Examples.PrescribedOutlet_Water.pipe >> ../files/Buildings_latest_Buildings.Fluid.Interfaces.Examples.PrescribedOutlet_Water.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Buildings_latest_Buildings.Fluid.Interfaces.Examples.PrescribedOutlet_Water_res.mat --tempDir=temp_Buildings_latest_Buildings_Fluid_Interfaces_Examples_PrescribedOutlet_Water_fmu --startTime=0 --stopTime=1200 --timeout=50 --tolerance=1e-06 Buildings_latest_Buildings_Fluid_Interfaces_Examples_PrescribedOutlet_Water.fmu > Buildings_latest_Buildings.Fluid.Interfaces.Examples.PrescribedOutlet_Water.pipe 2>&1)