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: "" <> buildModelFMU(BuildingSystems.Fluid.Interfaces.Examples.PrescribedOutlet,fileNamePrefix="BuildingSystems_BuildingSystems_Fluid_Interfaces_Examples_PrescribedOutlet",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(BuildingSystems.Fluid.Interfaces.Examples.PrescribedOutlet,fileNamePrefix="BuildingSystems_BuildingSystems_Fluid_Interfaces_Examples_PrescribedOutlet",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.7176/0.7176, allocations: 141.8 MB / 149.1 MB, free: 3.766 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.001068/0.001068, allocations: 181.3 kB / 181.9 MB, free: 15.51 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.323/1.323, allocations: 221.4 MB / 436 MB, free: 8.645 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.001051/0.001051, allocations: 102.4 kB / 0.507 GB, free: 24.29 MB / 394.9 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/NcDataReader2 2.5.1-master/package.mo): time 0.001818/0.001818, allocations: 274 kB / 0.5884 GB, free: 11.73 MB / 442.9 MB Notification: Performance of FrontEnd - loaded program: time 0.1992/0.2011, allocations: 89.64 MB / 0.676 GB, free: 2.004 MB / 0.5107 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.344/0.5451, allocations: 82.77 MB / 0.7568 GB, free: 112.3 MB / 0.5263 GB Notification: Performance of FrontEnd - scodeFlatten: time 3.15/3.695, allocations: 1.834 GB / 2.59 GB, free: 256.9 MB / 0.6982 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002015/3.695, allocations: 99 kB / 2.591 GB, free: 256.8 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: 226 * Number of variables: 226 Notification: Performance of Generate backend data structure: time 1.882/5.577, allocations: 0.6883 GB / 3.279 GB, free: 85.31 MB / 0.6982 GB Notification: Performance of prepare preOptimizeDAE: time 4.299e-05/5.577, allocations: 12 kB / 3.279 GB, free: 85.3 MB / 0.6982 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.005458/5.582, allocations: 0.9851 MB / 3.28 GB, free: 84.32 MB / 0.6982 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.00412/5.586, allocations: 1.19 MB / 3.281 GB, free: 83.1 MB / 0.6982 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.584e-05/5.586, allocations: 28 kB / 3.281 GB, free: 83.07 MB / 0.6982 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0003511/5.587, allocations: 56 kB / 3.281 GB, free: 83.02 MB / 0.6982 GB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.001929/5.589, allocations: 1.015 MB / 3.282 GB, free: 82 MB / 0.6982 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.00181/5.59, allocations: 1.181 MB / 3.283 GB, free: 80.79 MB / 0.6982 GB Notification: Performance of preOpt findStateOrder (simulation): time 2.248e-05/5.591, allocations: 0 / 3.283 GB, free: 80.79 MB / 0.6982 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001068/5.591, allocations: 4 kB / 3.283 GB, free: 80.79 MB / 0.6982 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.943e-05/5.591, allocations: 41.97 kB / 3.283 GB, free: 80.74 MB / 0.6982 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.008235/5.599, allocations: 4.905 MB / 3.288 GB, free: 75.71 MB / 0.6982 GB Notification: Performance of preOpt comSubExp (simulation): time 0.001391/5.6, allocations: 1.037 MB / 3.289 GB, free: 74.66 MB / 0.6982 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0007041/5.601, allocations: 0.5851 MB / 3.29 GB, free: 74.07 MB / 0.6982 GB Notification: Performance of preOpt evalFunc (simulation): time 0.001118/5.602, allocations: 0.9476 MB / 3.291 GB, free: 72.95 MB / 0.6982 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0008929/5.603, allocations: 0.6876 MB / 3.291 GB, free: 72.25 MB / 0.6982 GB Notification: Performance of pre-optimization done (n=95): time 3.306e-06/5.603, allocations: 0 / 3.291 GB, free: 72.25 MB / 0.6982 GB Notification: Performance of matching and sorting (n=95): time 0.002997/5.606, allocations: 1.329 MB / 3.292 GB, free: 70.91 MB / 0.6982 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.072e-05/5.606, allocations: 60.19 kB / 3.293 GB, free: 70.84 MB / 0.6982 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001022/5.607, allocations: 0.8262 MB / 3.293 GB, free: 70 MB / 0.6982 GB Notification: Performance of collectPreVariables (initialization): time 0.0001292/5.607, allocations: 37.7 kB / 3.293 GB, free: 69.95 MB / 0.6982 GB Notification: Performance of collectInitialEqns (initialization): time 0.0002081/5.608, allocations: 375.5 kB / 3.294 GB, free: 69.58 MB / 0.6982 GB Notification: Performance of collectInitialBindings (initialization): time 0.0002339/5.608, allocations: 315.4 kB / 3.294 GB, free: 69.27 MB / 0.6982 GB Notification: Performance of simplifyInitialFunctions (initialization): time 7.758e-05/5.608, allocations: 0 / 3.294 GB, free: 69.27 MB / 0.6982 GB Notification: Performance of setup shared object (initialization): time 7.666e-05/5.608, allocations: 345.8 kB / 3.294 GB, free: 68.93 MB / 0.6982 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0006536/5.609, allocations: 497.8 kB / 3.295 GB, free: 68.44 MB / 0.6982 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0008041/5.609, allocations: 0.7384 MB / 3.296 GB, free: 67.6 MB / 0.6982 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0007882/5.61, allocations: 0.5223 MB / 3.296 GB, free: 67.08 MB / 0.6982 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.288e-06/5.61, allocations: 0 / 3.296 GB, free: 67.08 MB / 0.6982 GB Notification: Performance of matching and sorting (n=121) (initialization): time 0.002048/5.612, allocations: 1.302 MB / 3.297 GB, free: 65.77 MB / 0.6982 GB Notification: Performance of prepare postOptimizeDAE: time 1.577e-05/5.612, allocations: 8.547 kB / 3.297 GB, free: 65.76 MB / 0.6982 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.528e-06/5.612, allocations: 7.938 kB / 3.297 GB, free: 65.75 MB / 0.6982 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.482e-05/5.612, allocations: 16 kB / 3.297 GB, free: 65.74 MB / 0.6982 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0019/5.614, allocations: 363.5 kB / 3.298 GB, free: 65.38 MB / 0.6982 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.041e-05/5.614, allocations: 12 kB / 3.298 GB, free: 65.37 MB / 0.6982 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001805/5.616, allocations: 249.8 kB / 3.298 GB, free: 65.13 MB / 0.6982 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001584/5.616, allocations: 55.95 kB / 3.298 GB, free: 65.07 MB / 0.6982 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.0002386/5.617, allocations: 142.6 kB / 3.298 GB, free: 64.93 MB / 0.6982 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.000217/5.617, allocations: 118.5 kB / 3.298 GB, free: 64.81 MB / 0.6982 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002415/5.619, allocations: 1.394 MB / 3.3 GB, free: 63.41 MB / 0.6982 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.083e-05/5.619, allocations: 12 kB / 3.3 GB, free: 63.4 MB / 0.6982 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.324e-06/5.619, allocations: 0 / 3.3 GB, free: 63.4 MB / 0.6982 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.133e-05/5.619, allocations: 3.984 kB / 3.3 GB, free: 63.39 MB / 0.6982 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.004413/5.624, allocations: 2.918 MB / 3.302 GB, free: 60.41 MB / 0.6982 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.113e-06/5.624, allocations: 4 kB / 3.302 GB, free: 60.4 MB / 0.6982 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001827/5.625, allocations: 331.7 kB / 3.303 GB, free: 60.08 MB / 0.6982 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.463e-05/5.626, allocations: 8 kB / 3.303 GB, free: 60.07 MB / 0.6982 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001136/5.626, allocations: 31.95 kB / 3.303 GB, free: 60.04 MB / 0.6982 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 7.624e-06/5.626, allocations: 4 kB / 3.303 GB, free: 60.04 MB / 0.6982 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.501e-06/5.626, allocations: 15.88 kB / 3.303 GB, free: 60.02 MB / 0.6982 GB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.002814/5.628, allocations: 2.444 MB / 3.305 GB, free: 57.43 MB / 0.6982 GB Notification: Performance of postOpt generateSymbolicLinearization (simulation): time 0.00405/5.633, allocations: 3.702 MB / 3.309 GB, free: 53.57 MB / 0.6982 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0005818/5.633, allocations: 351.2 kB / 3.309 GB, free: 53.21 MB / 0.6982 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002685/5.633, allocations: 15.89 kB / 3.309 GB, free: 53.19 MB / 0.6982 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001588/5.635, allocations: 183.8 kB / 3.309 GB, free: 53.01 MB / 0.6982 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001188/5.635, allocations: 68.55 kB / 3.309 GB, free: 52.95 MB / 0.6982 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001126/5.635, allocations: 48.2 kB / 3.31 GB, free: 52.9 MB / 0.6982 GB Notification: Performance of sort global known variables: time 0.0006316/5.636, allocations: 0.6318 MB / 3.31 GB, free: 52.26 MB / 0.6982 GB Notification: Performance of remove unused functions: time 0.002385/5.638, allocations: 0.6829 MB / 3.311 GB, free: 51.57 MB / 0.6982 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.002512/5.641, allocations: 2.147 MB / 3.313 GB, free: 49.67 MB / 0.6982 GB Notification: Performance of simCode: created initialization part: time 0.001658/5.642, allocations: 1.187 MB / 3.314 GB, free: 48.48 MB / 0.6982 GB Notification: Performance of simCode: created event and clocks part: time 3.086e-06/5.643, allocations: 4.125 kB / 3.314 GB, free: 48.48 MB / 0.6982 GB Notification: Performance of simCode: created simulation system equations: time 0.000848/5.643, allocations: 0.6391 MB / 3.315 GB, free: 47.84 MB / 0.6982 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001952/5.645, allocations: 429.7 kB / 3.315 GB, free: 47.42 MB / 0.6982 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01566/5.661, allocations: 3.152 MB / 3.318 GB, free: 44.19 MB / 0.6982 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001489/5.663, allocations: 1.412 MB / 3.32 GB, free: 42.76 MB / 0.6982 GB Notification: Performance of SimCode: time 1.112e-06/5.663, allocations: 0 / 3.32 GB, free: 42.76 MB / 0.6982 GB (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 & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator --tempDir=temp_BuildingSystems_BuildingSystems_Fluid_Interfaces_Examples_PrescribedOutlet_fmu --startTime=0 --stopTime=1200 --timeout=50 --tolerance=1e-06 BuildingSystems_BuildingSystems_Fluid_Interfaces_Examples_PrescribedOutlet.fmu > BuildingSystems_BuildingSystems.Fluid.Interfaces.Examples.PrescribedOutlet.pipe 2>&1)