Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr BuildingSystems_BuildingSystems.Fluid.Interfaces.Examples.PrescribedOutlet.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: translateModel(BuildingSystems.Fluid.Interfaces.Examples.PrescribedOutlet,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="BuildingSystems_BuildingSystems.Fluid.Interfaces.Examples.PrescribedOutlet") translateModel(BuildingSystems.Fluid.Interfaces.Examples.PrescribedOutlet,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="BuildingSystems_BuildingSystems.Fluid.Interfaces.Examples.PrescribedOutlet") [: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.8018/0.8018, allocations: 141.8 MB / 149.1 MB, free: 1.57 MB / 122.9 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001297/0.001297, allocations: 173.3 kB / 181.9 MB, free: 1.008 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.568/1.568, allocations: 221.3 MB / 436 MB, free: 5.758 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.001096/0.001096, allocations: 108.5 kB / 0.507 GB, free: 2.406 MB / 410.9 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/NcDataReader2 2.5.1-master/package.mo): time 0.001701/0.001701, allocations: 274.3 kB / 0.5885 GB, free: 47.47 MB / 410.9 MB Notification: Performance of FrontEnd - loaded program: time 1.713e-05/1.717e-05, allocations: 6.656 kB / 0.6759 GB, free: 59.79 MB / 442.9 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1893/0.1893, allocations: 82.77 MB / 0.7567 GB, free: 0.9219 MB / 442.9 MB Notification: Performance of FrontEnd - scodeFlatten: time 4.599/4.788, allocations: 1.834 GB / 2.59 GB, free: 193.2 MB / 0.7138 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002591/4.788, allocations: 82.52 kB / 2.59 GB, free: 193.2 MB / 0.7138 GB Notification: Performance of FrontEnd: time 2.182/6.971, allocations: 0.6864 GB / 3.277 GB, free: 64.74 MB / 0.7138 GB Notification: Performance of Transformations before backend: time 0.0001129/6.971, allocations: 47.27 kB / 3.277 GB, free: 64.7 MB / 0.7138 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 226 * Number of variables: 226 Notification: Performance of Generate backend data structure: time 0.006902/6.978, allocations: 1.904 MB / 3.279 GB, free: 62.74 MB / 0.7138 GB Notification: Performance of prepare preOptimizeDAE: time 4.721e-05/6.978, allocations: 9.281 kB / 3.279 GB, free: 62.73 MB / 0.7138 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.00548/6.983, allocations: 0.986 MB / 3.28 GB, free: 61.75 MB / 0.7138 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.003954/6.987, allocations: 1.195 MB / 3.281 GB, free: 60.5 MB / 0.7138 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.919e-05/6.987, allocations: 28 kB / 3.281 GB, free: 60.47 MB / 0.7138 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001803/6.987, allocations: 55.94 kB / 3.281 GB, free: 60.42 MB / 0.7138 GB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.001635/6.989, allocations: 1.019 MB / 3.282 GB, free: 59.4 MB / 0.7138 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001591/6.991, allocations: 1.177 MB / 3.283 GB, free: 58.19 MB / 0.7138 GB Notification: Performance of preOpt findStateOrder (simulation): time 2.516e-05/6.991, allocations: 11.92 kB / 3.283 GB, free: 58.18 MB / 0.7138 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.000124/6.991, allocations: 3.906 kB / 3.283 GB, free: 58.17 MB / 0.7138 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.726e-05/6.991, allocations: 41.97 kB / 3.283 GB, free: 58.13 MB / 0.7138 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.008029/6.999, allocations: 4.901 MB / 3.288 GB, free: 53.02 MB / 0.7138 GB Notification: Performance of preOpt comSubExp (simulation): time 0.001309/7, allocations: 1.038 MB / 3.289 GB, free: 51.98 MB / 0.7138 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0006981/7.001, allocations: 0.5928 MB / 3.289 GB, free: 51.38 MB / 0.7138 GB Notification: Performance of preOpt evalFunc (simulation): time 0.001137/7.002, allocations: 0.9489 MB / 3.29 GB, free: 50.25 MB / 0.7138 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0008861/7.003, allocations: 0.6915 MB / 3.291 GB, free: 49.54 MB / 0.7138 GB Notification: Performance of pre-optimization done (n=95): time 4.058e-06/7.003, allocations: 3.938 kB / 3.291 GB, free: 49.54 MB / 0.7138 GB Notification: Performance of matching and sorting (n=95): time 0.002867/7.006, allocations: 1.321 MB / 3.292 GB, free: 48.21 MB / 0.7138 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.282e-05/7.006, allocations: 68.19 kB / 3.292 GB, free: 48.13 MB / 0.7138 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0009206/7.007, allocations: 0.83 MB / 3.293 GB, free: 47.28 MB / 0.7138 GB Notification: Performance of collectPreVariables (initialization): time 0.0001094/7.007, allocations: 29.7 kB / 3.293 GB, free: 47.25 MB / 0.7138 GB Notification: Performance of collectInitialEqns (initialization): time 0.0002132/7.007, allocations: 376.5 kB / 3.294 GB, free: 46.87 MB / 0.7138 GB Notification: Performance of collectInitialBindings (initialization): time 0.0002198/7.007, allocations: 307.4 kB / 3.294 GB, free: 46.57 MB / 0.7138 GB Notification: Performance of simplifyInitialFunctions (initialization): time 7.96e-05/7.007, allocations: 3.938 kB / 3.294 GB, free: 46.56 MB / 0.7138 GB Notification: Performance of setup shared object (initialization): time 7.319e-05/7.008, allocations: 349.8 kB / 3.294 GB, free: 46.21 MB / 0.7138 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0006399/7.008, allocations: 489.8 kB / 3.295 GB, free: 45.74 MB / 0.7138 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0007762/7.009, allocations: 0.7346 MB / 3.295 GB, free: 44.9 MB / 0.7138 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0007167/7.01, allocations: 0.5259 MB / 3.296 GB, free: 44.38 MB / 0.7138 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.709e-06/7.01, allocations: 4 kB / 3.296 GB, free: 44.38 MB / 0.7138 GB Notification: Performance of matching and sorting (n=121) (initialization): time 0.001876/7.012, allocations: 1.299 MB / 3.297 GB, free: 43.07 MB / 0.7138 GB Notification: Performance of prepare postOptimizeDAE: time 1.553e-05/7.012, allocations: 8.094 kB / 3.297 GB, free: 43.06 MB / 0.7138 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.095e-05/7.012, allocations: 8 kB / 3.297 GB, free: 43.05 MB / 0.7138 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.33e-05/7.012, allocations: 8 kB / 3.297 GB, free: 43.05 MB / 0.7138 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001963/7.014, allocations: 375.5 kB / 3.298 GB, free: 42.68 MB / 0.7138 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.147e-05/7.014, allocations: 11.94 kB / 3.298 GB, free: 42.67 MB / 0.7138 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001825/7.016, allocations: 239 kB / 3.298 GB, free: 42.43 MB / 0.7138 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001434/7.016, allocations: 59.95 kB / 3.298 GB, free: 42.38 MB / 0.7138 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 19 * 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 (121): * Single equations (assignments): 121 * 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.0002282/7.016, allocations: 138.6 kB / 3.298 GB, free: 42.23 MB / 0.7138 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001779/7.016, allocations: 118.5 kB / 3.298 GB, free: 42.12 MB / 0.7138 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002299/7.018, allocations: 1.394 MB / 3.3 GB, free: 40.71 MB / 0.7138 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.648e-06/7.018, allocations: 12 kB / 3.3 GB, free: 40.7 MB / 0.7138 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.961e-06/7.018, allocations: 0 / 3.3 GB, free: 40.7 MB / 0.7138 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.437e-06/7.018, allocations: 7.969 kB / 3.3 GB, free: 40.7 MB / 0.7138 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.004178/7.023, allocations: 2.921 MB / 3.302 GB, free: 37.68 MB / 0.7138 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.54e-06/7.023, allocations: 4 kB / 3.302 GB, free: 37.68 MB / 0.7138 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001868/7.025, allocations: 328.1 kB / 3.303 GB, free: 37.36 MB / 0.7138 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.301e-05/7.025, allocations: 8 kB / 3.303 GB, free: 37.35 MB / 0.7138 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001084/7.025, allocations: 35.89 kB / 3.303 GB, free: 37.31 MB / 0.7138 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 7.564e-06/7.025, allocations: 15.84 kB / 3.303 GB, free: 37.3 MB / 0.7138 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.717e-06/7.025, allocations: 4 kB / 3.303 GB, free: 37.29 MB / 0.7138 GB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.002792/7.027, allocations: 2.44 MB / 3.305 GB, free: 34.7 MB / 0.7138 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0005641/7.028, allocations: 347.2 kB / 3.305 GB, free: 34.34 MB / 0.7138 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002398/7.028, allocations: 15.92 kB / 3.306 GB, free: 34.33 MB / 0.7138 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001562/7.03, allocations: 183.8 kB / 3.306 GB, free: 34.15 MB / 0.7138 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001281/7.03, allocations: 60.73 kB / 3.306 GB, free: 34.09 MB / 0.7138 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001079/7.03, allocations: 47.95 kB / 3.306 GB, free: 34.04 MB / 0.7138 GB Notification: Performance of sort global known variables: time 0.0006638/7.031, allocations: 0.6357 MB / 3.306 GB, free: 33.4 MB / 0.7138 GB Notification: Performance of remove unused functions: time 0.001494/7.032, allocations: 483.3 kB / 3.307 GB, free: 32.93 MB / 0.7138 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 17 * Number of states: 6 (heaHigPow.T,heaHigPow.Xi,cooLimPow.T,cooLimPow.Xi,heaCooUnl.T,heaCooUnl.Xi) * 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 (101): * Single equations (assignments): 95 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * 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.002727/7.035, allocations: 2.14 MB / 3.309 GB, free: 30.8 MB / 0.7138 GB Notification: Performance of simCode: created initialization part: time 0.001749/7.037, allocations: 1.194 MB / 3.31 GB, free: 29.6 MB / 0.7138 GB Notification: Performance of simCode: created event and clocks part: time 3.607e-06/7.037, allocations: 4 kB / 3.31 GB, free: 29.59 MB / 0.7138 GB Notification: Performance of simCode: created simulation system equations: time 0.0008247/7.038, allocations: 0.6334 MB / 3.311 GB, free: 28.96 MB / 0.7138 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.00214/7.04, allocations: 422.6 kB / 3.311 GB, free: 28.55 MB / 0.7138 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01629/7.056, allocations: 3.156 MB / 3.314 GB, free: 25.3 MB / 0.7138 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001279/7.057, allocations: 1.4 MB / 3.316 GB, free: 23.88 MB / 0.7138 GB Notification: Performance of SimCode: time 7.21e-07/7.057, allocations: 0 / 3.316 GB, free: 23.88 MB / 0.7138 GB Notification: Performance of Templates: time 0.3925/7.45, allocations: 33.14 MB / 3.348 GB, free: 177 MB / 0.7138 GB make -j1 -f BuildingSystems_BuildingSystems.Fluid.Interfaces.Examples.PrescribedOutlet.makefile (rm -f BuildingSystems_BuildingSystems.Fluid.Interfaces.Examples.PrescribedOutlet.pipe ; mkfifo BuildingSystems_BuildingSystems.Fluid.Interfaces.Examples.PrescribedOutlet.pipe ; head -c 1048576 < BuildingSystems_BuildingSystems.Fluid.Interfaces.Examples.PrescribedOutlet.pipe >> ../files/BuildingSystems_BuildingSystems.Fluid.Interfaces.Examples.PrescribedOutlet.sim & ./BuildingSystems_BuildingSystems.Fluid.Interfaces.Examples.PrescribedOutlet -abortSlowSimulation -alarm=480 -lv LOG_STATS > BuildingSystems_BuildingSystems.Fluid.Interfaces.Examples.PrescribedOutlet.pipe 2>&1)