Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr BuildingSystems_BuildingSystems.Fluid.HeatExchangers.Validation.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.HeatExchangers.Validation.PrescribedOutlet,fileNamePrefix="BuildingSystems_BuildingSystems_Fluid_HeatExchangers_Validation_PrescribedOutlet",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(BuildingSystems.Fluid.HeatExchangers.Validation.PrescribedOutlet,fileNamePrefix="BuildingSystems_BuildingSystems_Fluid_HeatExchangers_Validation_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.7131/0.7131, allocations: 141.8 MB / 149.1 MB, free: 2.453 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.001134/0.001134, allocations: 178.9 kB / 181.9 MB, free: 1.988 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.291/1.291, allocations: 221.3 MB / 436 MB, free: 6.602 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.000897/0.0008971, allocations: 100 kB / 0.507 GB, free: 3.277 MB / 410.9 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/NcDataReader2 2.5.1-master/package.mo): time 0.001751/0.001751, allocations: 278.5 kB / 0.5884 GB, free: 48.31 MB / 410.9 MB Notification: Performance of FrontEnd - loaded program: time 0.1743/0.1761, allocations: 89.63 MB / 0.676 GB, free: 6.598 MB / 458.9 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3613/0.5374, allocations: 82.77 MB / 0.7568 GB, free: 25.74 MB / 458.9 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.6301/1.168, allocations: 360.4 MB / 1.109 GB, free: 10.11 MB / 0.6669 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.00025/1.168, allocations: 86.75 kB / 1.109 GB, free: 10.07 MB / 0.6669 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 260 * Number of variables: 260 Notification: Performance of Generate backend data structure: time 3.058/4.226, allocations: 0.9561 GB / 2.065 GB, free: 106.7 MB / 0.7138 GB Notification: Performance of prepare preOptimizeDAE: time 4.223e-05/4.226, allocations: 11.75 kB / 2.065 GB, free: 106.7 MB / 0.7138 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.003608/4.229, allocations: 0.6642 MB / 2.066 GB, free: 106.6 MB / 0.7138 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.004304/4.234, allocations: 1.497 MB / 2.067 GB, free: 106.2 MB / 0.7138 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.272e-05/4.234, allocations: 31.66 kB / 2.067 GB, free: 106.2 MB / 0.7138 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0003086/4.234, allocations: 72.5 kB / 2.067 GB, free: 106.2 MB / 0.7138 GB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.001864/4.236, allocations: 0.8589 MB / 2.068 GB, free: 106.2 MB / 0.7138 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001884/4.238, allocations: 1.051 MB / 2.069 GB, free: 106 MB / 0.7138 GB Notification: Performance of preOpt findStateOrder (simulation): time 2.805e-05/4.238, allocations: 3.375 kB / 2.069 GB, free: 106 MB / 0.7138 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001044/4.238, allocations: 7.062 kB / 2.069 GB, free: 106 MB / 0.7138 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.928e-05/4.238, allocations: 22.12 kB / 2.069 GB, free: 106 MB / 0.7138 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.008441/4.247, allocations: 6.467 MB / 2.075 GB, free: 102.3 MB / 0.7138 GB Notification: Performance of preOpt comSubExp (simulation): time 0.001319/4.248, allocations: 0.8589 MB / 2.076 GB, free: 102.3 MB / 0.7138 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0006039/4.249, allocations: 0.516 MB / 2.077 GB, free: 102.3 MB / 0.7138 GB Notification: Performance of preOpt evalFunc (simulation): time 0.001331/4.25, allocations: 2.261 MB / 2.079 GB, free: 99.73 MB / 0.7138 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0007847/4.251, allocations: 0.647 MB / 2.08 GB, free: 99.59 MB / 0.7138 GB Notification: Performance of pre-optimization done (n=100): time 3.677e-06/4.251, allocations: 0 / 2.08 GB, free: 99.59 MB / 0.7138 GB Notification: Performance of matching and sorting (n=100): time 0.003408/4.254, allocations: 1.374 MB / 2.081 GB, free: 99.45 MB / 0.7138 GB Notification: Performance of inlineWhenForInitialization (initialization): time 5.699e-05/4.254, allocations: 145.5 kB / 2.081 GB, free: 99.29 MB / 0.7138 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001243/4.255, allocations: 0.8968 MB / 2.082 GB, free: 99.14 MB / 0.7138 GB Notification: Performance of collectPreVariables (initialization): time 9.986e-05/4.256, allocations: 29.52 kB / 2.082 GB, free: 99.11 MB / 0.7138 GB Notification: Performance of collectInitialEqns (initialization): time 0.0003309/4.256, allocations: 446.3 kB / 2.082 GB, free: 98.88 MB / 0.7138 GB Notification: Performance of collectInitialBindings (initialization): time 0.0002905/4.256, allocations: 312.6 kB / 2.083 GB, free: 98.67 MB / 0.7138 GB Notification: Performance of simplifyInitialFunctions (initialization): time 6.019e-05/4.256, allocations: 3.875 kB / 2.083 GB, free: 98.67 MB / 0.7138 GB Notification: Performance of setup shared object (initialization): time 8.503e-05/4.256, allocations: 341.8 kB / 2.083 GB, free: 98.36 MB / 0.7138 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0005989/4.257, allocations: 415.7 kB / 2.083 GB, free: 98.36 MB / 0.7138 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0007475/4.258, allocations: 0.6534 MB / 2.084 GB, free: 98.08 MB / 0.7138 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.002058/4.26, allocations: 0.7397 MB / 2.085 GB, free: 98.07 MB / 0.7138 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.767e-06/4.26, allocations: 0 / 2.085 GB, free: 98.07 MB / 0.7138 GB Notification: Performance of matching and sorting (n=126) (initialization): time 0.003195/4.263, allocations: 1.478 MB / 2.086 GB, free: 97.94 MB / 0.7138 GB Notification: Performance of prepare postOptimizeDAE: time 0.000336/4.263, allocations: 1.616 MB / 2.088 GB, free: 96.22 MB / 0.7138 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.188e-05/4.263, allocations: 3.438 kB / 2.088 GB, free: 96.22 MB / 0.7138 GB Notification: Performance of postOpt tearingSystem (initialization): time 3.246e-05/4.263, allocations: 12.44 kB / 2.088 GB, free: 96.22 MB / 0.7138 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.00134/4.265, allocations: 296.8 kB / 2.088 GB, free: 96.22 MB / 0.7138 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.938e-05/4.265, allocations: 13.66 kB / 2.088 GB, free: 96.22 MB / 0.7138 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001646/4.266, allocations: 218.2 kB / 2.088 GB, free: 96.18 MB / 0.7138 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001562/4.267, allocations: 60.8 kB / 2.088 GB, free: 96.18 MB / 0.7138 GB Notification: Performance of prepare postOptimizeDAE: time 9.658e-06/4.267, allocations: 6 kB / 2.088 GB, free: 96.18 MB / 0.7138 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.002935/4.27, allocations: 1.286 MB / 2.09 GB, free: 96.17 MB / 0.7138 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.961e-06/4.27, allocations: 3.875 kB / 2.09 GB, free: 96.17 MB / 0.7138 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.246e-05/4.27, allocations: 11.34 kB / 2.09 GB, free: 96.17 MB / 0.7138 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001229/4.271, allocations: 294.6 kB / 2.09 GB, free: 96.17 MB / 0.7138 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.293e-05/4.271, allocations: 10.41 kB / 2.09 GB, free: 96.17 MB / 0.7138 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001661/4.272, allocations: 210 kB / 2.09 GB, free: 96.13 MB / 0.7138 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001334/4.273, allocations: 57.02 kB / 2.09 GB, free: 96.13 MB / 0.7138 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 18 * Number of states: 0 () * Number of discrete variables: 21 ($whenCondition1,$whenCondition2,$whenCondition3,TSetHeat.a,TSetHeat.b,TSetHeat.last,$PRE.TSetHeat.nextEvent,TSetHeat.nextEvent,TSetHeat.nextEventScaled,TSetCool.a,TSetCool.b,TSetCool.last,$PRE.TSetCool.nextEvent,TSetCool.nextEvent,TSetCool.nextEventScaled,TSetCoolHeat.a,TSetCoolHeat.b,TSetCoolHeat.last,$PRE.TSetCoolHeat.nextEvent,TSetCoolHeat.nextEvent,TSetCoolHeat.nextEventScaled) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (111): * Single equations (assignments): 108 * Array equations: 0 * Algorithm blocks: 3 * 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.0003203/4.273, allocations: 239.7 kB / 2.09 GB, free: 95.93 MB / 0.7138 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003105/4.273, allocations: 154.1 kB / 2.091 GB, free: 95.85 MB / 0.7138 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.004505/4.278, allocations: 2.123 MB / 2.093 GB, free: 95.75 MB / 0.7138 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.698e-05/4.278, allocations: 18.89 kB / 2.093 GB, free: 95.75 MB / 0.7138 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.705e-06/4.278, allocations: 2.844 kB / 2.093 GB, free: 95.75 MB / 0.7138 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.322e-05/4.278, allocations: 6.891 kB / 2.093 GB, free: 95.75 MB / 0.7138 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.006543/4.284, allocations: 3.216 MB / 2.096 GB, free: 95.35 MB / 0.7138 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.237e-06/4.284, allocations: 9.469 kB / 2.096 GB, free: 95.34 MB / 0.7138 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001203/4.286, allocations: 245.3 kB / 2.096 GB, free: 95.34 MB / 0.7138 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.024e-05/4.286, allocations: 7.031 kB / 2.096 GB, free: 95.34 MB / 0.7138 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001151/4.286, allocations: 33.97 kB / 2.096 GB, free: 95.34 MB / 0.7138 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.035e-05/4.286, allocations: 6.625 kB / 2.096 GB, free: 95.34 MB / 0.7138 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.951e-06/4.286, allocations: 3.406 kB / 2.096 GB, free: 95.34 MB / 0.7138 GB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.004463/4.29, allocations: 2.669 MB / 2.099 GB, free: 94.94 MB / 0.7138 GB Notification: Performance of postOpt generateSymbolicLinearization (simulation): time 0.006176/4.296, allocations: 3.937 MB / 2.103 GB, free: 94.16 MB / 0.7138 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0009971/4.297, allocations: 401.9 kB / 2.103 GB, free: 93.96 MB / 0.7138 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0003739/4.298, allocations: 17.16 kB / 2.103 GB, free: 93.96 MB / 0.7138 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.00147/4.299, allocations: 167.6 kB / 2.103 GB, free: 93.96 MB / 0.7138 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001359/4.299, allocations: 68.91 kB / 2.103 GB, free: 93.96 MB / 0.7138 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001204/4.3, allocations: 53.47 kB / 2.103 GB, free: 93.96 MB / 0.7138 GB Notification: Performance of sort global known variables: time 0.001067/4.301, allocations: 0.6772 MB / 2.104 GB, free: 93.85 MB / 0.7138 GB Notification: Performance of remove unused functions: time 0.004345/4.305, allocations: 1.15 MB / 2.105 GB, free: 93.72 MB / 0.7138 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 6 * Number of states: 6 (heaHigPowOut.T,cooLimPowOut.T,heaCooUnlOut.T,heaHigPowIn.T,cooLimPowIn.T,heaCooUnlIn.T) * Number of discrete variables: 18 ($whenCondition1,$whenCondition2,$whenCondition3,TSetHeat.a,TSetHeat.b,TSetHeat.last,TSetHeat.nextEvent,TSetHeat.nextEventScaled,TSetCool.a,TSetCool.b,TSetCool.last,TSetCool.nextEvent,TSetCool.nextEventScaled,TSetCoolHeat.a,TSetCoolHeat.b,TSetCoolHeat.last,TSetCoolHeat.nextEvent,TSetCoolHeat.nextEventScaled) * Number of discrete states: 18 (TSetCoolHeat.nextEvent,TSetCoolHeat.last,TSetCoolHeat.nextEventScaled,TSetCoolHeat.b,TSetCoolHeat.a,$whenCondition3,TSetCool.nextEvent,TSetCool.last,TSetCool.nextEventScaled,TSetCool.b,TSetCool.a,$whenCondition2,TSetHeat.nextEvent,TSetHeat.last,TSetHeat.nextEventScaled,TSetHeat.b,TSetHeat.a,$whenCondition1) * Top-level inputs: 0 Notification: Strong component statistics for simulation (104): * Single equations (assignments): 82 * Array equations: 0 * Algorithm blocks: 3 * Record equations: 19 * 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 Backend phase and start with SimCode phase: time 0.001776/4.307, allocations: 0.9847 MB / 2.106 GB, free: 93.48 MB / 0.7138 GB Notification: Performance of simCode: created initialization part: time 0.00265/4.31, allocations: 1.927 MB / 2.108 GB, free: 93.26 MB / 0.7138 GB Notification: Performance of simCode: created event and clocks part: time 3.817e-06/4.31, allocations: 0 / 2.108 GB, free: 93.26 MB / 0.7138 GB Notification: Performance of simCode: created simulation system equations: time 0.000925/4.31, allocations: 0.8182 MB / 2.109 GB, free: 93.16 MB / 0.7138 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.00261/4.313, allocations: 0.5228 MB / 2.109 GB, free: 93.16 MB / 0.7138 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004769/4.318, allocations: 2.514 MB / 2.112 GB, free: 92.55 MB / 0.7138 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001217/4.319, allocations: 1.503 MB / 2.113 GB, free: 91.82 MB / 0.7138 GB Notification: Performance of SimCode: time 5.11e-07/4.319, allocations: 0 / 2.113 GB, free: 91.82 MB / 0.7138 GB (rm -f BuildingSystems_BuildingSystems.Fluid.HeatExchangers.Validation.PrescribedOutlet.pipe ; mkfifo BuildingSystems_BuildingSystems.Fluid.HeatExchangers.Validation.PrescribedOutlet.pipe ; head -c 1048576 < BuildingSystems_BuildingSystems.Fluid.HeatExchangers.Validation.PrescribedOutlet.pipe >> ../files/BuildingSystems_BuildingSystems.Fluid.HeatExchangers.Validation.PrescribedOutlet.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator --tempDir=temp_BuildingSystems_BuildingSystems_Fluid_HeatExchangers_Validation_PrescribedOutlet_fmu --startTime=0 --stopTime=1200 --timeout=50 --tolerance=1e-06 BuildingSystems_BuildingSystems_Fluid_HeatExchangers_Validation_PrescribedOutlet.fmu > BuildingSystems_BuildingSystems.Fluid.HeatExchangers.Validation.PrescribedOutlet.pipe 2>&1)