Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr BuildingSystems_BuildingSystems.Fluid.HeatExchangers.Validation.HeaterCooler_u.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.HeaterCooler_u,fileNamePrefix="BuildingSystems_BuildingSystems_Fluid_HeatExchangers_Validation_HeaterCooler_u",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(BuildingSystems.Fluid.HeatExchangers.Validation.HeaterCooler_u,fileNamePrefix="BuildingSystems_BuildingSystems_Fluid_HeatExchangers_Validation_HeaterCooler_u",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.7067/0.7067, allocations: 141.8 MB / 149.1 MB, free: 12.16 MB / 138.9 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001032/0.001031, allocations: 172.5 kB / 181.9 MB, free: 8.941 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.272/1.272, allocations: 221.4 MB / 436 MB, free: 1.207 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.0009837/0.0009838, allocations: 99.72 kB / 0.507 GB, free: 10.14 MB / 394.9 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/NcDataReader2 2.5.1-master/package.mo): time 0.001859/0.001859, allocations: 268.7 kB / 0.5884 GB, free: 6.957 MB / 474.9 MB Notification: Performance of FrontEnd - loaded program: time 0.1822/0.1841, allocations: 89.66 MB / 0.676 GB, free: 13.21 MB / 0.5575 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3832/0.5673, allocations: 82.75 MB / 0.7568 GB, free: 138.1 MB / 0.5575 GB Notification: Performance of FrontEnd - scodeFlatten: time 3.242/3.809, allocations: 1.891 GB / 2.648 GB, free: 135.7 MB / 0.6982 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0001965/3.809, allocations: 95.86 kB / 2.648 GB, free: 135.6 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: 294 * Number of variables: 294 Notification: Performance of Generate backend data structure: time 3.493/7.302, allocations: 1.052 GB / 3.7 GB, free: 89.8 MB / 0.7138 GB Notification: Performance of prepare preOptimizeDAE: time 4.338e-05/7.302, allocations: 7.812 kB / 3.7 GB, free: 89.8 MB / 0.7138 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.004809/7.307, allocations: 0.6618 MB / 3.701 GB, free: 89.7 MB / 0.7138 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.004718/7.312, allocations: 1.464 MB / 3.702 GB, free: 89.3 MB / 0.7138 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0004413/7.312, allocations: 127.7 kB / 3.702 GB, free: 89.29 MB / 0.7138 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0006142/7.313, allocations: 72.5 kB / 3.702 GB, free: 89.29 MB / 0.7138 GB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.002621/7.315, allocations: 1.024 MB / 3.703 GB, free: 89.28 MB / 0.7138 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002819/7.318, allocations: 1.225 MB / 3.705 GB, free: 89.08 MB / 0.7138 GB Notification: Performance of preOpt findStateOrder (simulation): time 3.7e-05/7.318, allocations: 3.656 kB / 3.705 GB, free: 89.08 MB / 0.7138 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001463/7.319, allocations: 0 / 3.705 GB, free: 89.08 MB / 0.7138 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.035e-05/7.319, allocations: 46.52 kB / 3.705 GB, free: 89.08 MB / 0.7138 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.009583/7.328, allocations: 5.972 MB / 3.71 GB, free: 86.64 MB / 0.7138 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0009454/7.329, allocations: 0.6064 MB / 3.711 GB, free: 86.62 MB / 0.7138 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0006263/7.33, allocations: 490.9 kB / 3.711 GB, free: 86.61 MB / 0.7138 GB Notification: Performance of preOpt evalFunc (simulation): time 0.000632/7.33, allocations: 485.1 kB / 3.712 GB, free: 86.14 MB / 0.7138 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0007901/7.331, allocations: 0.5365 MB / 3.712 GB, free: 86.05 MB / 0.7138 GB Notification: Performance of pre-optimization done (n=87): time 3.336e-06/7.331, allocations: 0 / 3.712 GB, free: 86.05 MB / 0.7138 GB Notification: Performance of matching and sorting (n=95): time 0.009028/7.34, allocations: 3.152 MB / 3.716 GB, free: 85.42 MB / 0.7138 GB Notification: Performance of inlineWhenForInitialization (initialization): time 7.465e-05/7.34, allocations: 193.2 kB / 3.716 GB, free: 85.2 MB / 0.7138 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001739/7.342, allocations: 0.9185 MB / 3.717 GB, free: 85.05 MB / 0.7138 GB Notification: Performance of collectPreVariables (initialization): time 0.0001349/7.342, allocations: 33.02 kB / 3.717 GB, free: 85.02 MB / 0.7138 GB Notification: Performance of collectInitialEqns (initialization): time 0.0004203/7.343, allocations: 486 kB / 3.717 GB, free: 84.76 MB / 0.7138 GB Notification: Performance of collectInitialBindings (initialization): time 0.0003106/7.343, allocations: 314.8 kB / 3.717 GB, free: 84.55 MB / 0.7138 GB Notification: Performance of simplifyInitialFunctions (initialization): time 5.651e-05/7.343, allocations: 3.719 kB / 3.717 GB, free: 84.55 MB / 0.7138 GB Notification: Performance of setup shared object (initialization): time 0.0001428/7.343, allocations: 336.2 kB / 3.718 GB, free: 84.25 MB / 0.7138 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0005969/7.344, allocations: 385.8 kB / 3.718 GB, free: 84.25 MB / 0.7138 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000791/7.345, allocations: 0.6078 MB / 3.719 GB, free: 84.02 MB / 0.7138 GB Notification: The following equation is consistent and got removed from the initialization problem: $DER.heaDyn.vol.dynBal.medium.p = 0.0 Notification: Performance of analyzeInitialSystem (initialization): time 0.004416/7.349, allocations: 1.428 MB / 3.72 GB, free: 83.88 MB / 0.7138 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.417e-06/7.349, allocations: 0 / 3.72 GB, free: 83.88 MB / 0.7138 GB Notification: Performance of matching and sorting (n=114) (initialization): time 0.004513/7.354, allocations: 1.618 MB / 3.722 GB, free: 83.7 MB / 0.7138 GB Notification: Performance of prepare postOptimizeDAE: time 0.0003519/7.354, allocations: 1.259 MB / 3.723 GB, free: 82.43 MB / 0.7138 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.391e-05/7.354, allocations: 0 / 3.723 GB, free: 82.43 MB / 0.7138 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.001055/7.355, allocations: 411.9 kB / 3.723 GB, free: 82.4 MB / 0.7138 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0008477/7.356, allocations: 175.6 kB / 3.723 GB, free: 82.4 MB / 0.7138 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.006798/7.363, allocations: 6.341 MB / 3.73 GB, free: 78.2 MB / 0.7138 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001801/7.365, allocations: 127.1 kB / 3.73 GB, free: 78.19 MB / 0.7138 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001489/7.365, allocations: 36.42 kB / 3.73 GB, free: 78.19 MB / 0.7138 GB Notification: Performance of prepare postOptimizeDAE: time 8.246e-06/7.365, allocations: 4.969 kB / 3.73 GB, free: 78.19 MB / 0.7138 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.003614/7.368, allocations: 1.422 MB / 3.731 GB, free: 78.13 MB / 0.7138 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.246e-06/7.368, allocations: 3.125 kB / 3.731 GB, free: 78.13 MB / 0.7138 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.001008/7.369, allocations: 413 kB / 3.732 GB, free: 78.1 MB / 0.7138 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0007607/7.37, allocations: 182.9 kB / 3.732 GB, free: 78.1 MB / 0.7138 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.006987/7.377, allocations: 7.205 MB / 3.739 GB, free: 73.12 MB / 0.7138 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.00179/7.379, allocations: 127.9 kB / 3.739 GB, free: 73.12 MB / 0.7138 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001643/7.379, allocations: 36.66 kB / 3.739 GB, free: 73.12 MB / 0.7138 GB Warning: Assuming redundant initial conditions for the following 1 initial equations: $DER.heaDyn.vol.dynBal.medium.p = 0.0 Warning: Iteration variables with default zero start attribute in torn nonlinear equation system: heaSte.vol.heatPort.Q_flow:VARIABLE(flow=true unit = "W" final = true ) "Heat flow rate (positive if flowing from outside into the component)" type: Real Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 14 * Number of states: 0 () * Number of discrete variables: 9 ($whenCondition1,TSet.a,TSet.b,TSet.last,$PRE.TSet.nextEvent,TSet.nextEvent,TSet.nextEventScaled,con2.I.trigger_internal,con1.I.trigger_internal) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (87): * Single equations (assignments): 82 * Array equations: 0 * Algorithm blocks: 1 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 4 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 0 * Non-linear torn systems: 4 {1 4,1 10,1 4,1 4} Notification: Performance of prepare postOptimizeDAE: time 0.0004198/7.38, allocations: 168.9 kB / 3.739 GB, free: 72.98 MB / 0.7138 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0004272/7.38, allocations: 156.5 kB / 3.739 GB, free: 72.9 MB / 0.7138 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.00365/7.384, allocations: 1.419 MB / 3.741 GB, free: 72.81 MB / 0.7138 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.276e-06/7.384, allocations: 7.531 kB / 3.741 GB, free: 72.81 MB / 0.7138 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.617e-06/7.384, allocations: 0 / 3.741 GB, free: 72.81 MB / 0.7138 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.002839/7.387, allocations: 1.294 MB / 3.742 GB, free: 72.61 MB / 0.7138 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.007104/7.394, allocations: 3.119 MB / 3.745 GB, free: 72.14 MB / 0.7138 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.134e-05/7.394, allocations: 3.875 kB / 3.745 GB, free: 72.14 MB / 0.7138 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001008/7.395, allocations: 197.5 kB / 3.745 GB, free: 72.14 MB / 0.7138 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0004834/7.395, allocations: 194 kB / 3.745 GB, free: 72.12 MB / 0.7138 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001004/7.395, allocations: 20.25 kB / 3.745 GB, free: 72.12 MB / 0.7138 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002996/7.398, allocations: 2.414 MB / 3.748 GB, free: 70.41 MB / 0.7138 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.052e-05/7.398, allocations: 10.62 kB / 3.748 GB, free: 70.41 MB / 0.7138 GB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.004867/7.403, allocations: 2.364 MB / 3.75 GB, free: 69.39 MB / 0.7138 GB Notification: Performance of postOpt generateSymbolicLinearization (simulation): time 0.005577/7.409, allocations: 3.514 MB / 3.753 GB, free: 67.3 MB / 0.7138 GB Notification: Performance of postOpt removeConstants (simulation): time 0.000964/7.41, allocations: 358.4 kB / 3.754 GB, free: 67.05 MB / 0.7138 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0004126/7.41, allocations: 10.34 kB / 3.754 GB, free: 67.05 MB / 0.7138 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001708/7.412, allocations: 130 kB / 3.754 GB, free: 67.04 MB / 0.7138 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001348/7.412, allocations: 60.5 kB / 3.754 GB, free: 67.03 MB / 0.7138 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.000106/7.412, allocations: 38.22 kB / 3.754 GB, free: 67.02 MB / 0.7138 GB Notification: Performance of sort global known variables: time 0.001387/7.414, allocations: 0.6985 MB / 3.755 GB, free: 66.71 MB / 0.7138 GB Notification: Performance of remove unused functions: time 0.006968/7.421, allocations: 1.553 MB / 3.756 GB, free: 65.95 MB / 0.7138 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 17 * Number of states: 6 (senTem1.T,con1.I.y,heaDyn.vol.dynBal.medium.X[2],heaDyn.vol.dynBal.medium.dT,senTem2.T,con2.I.y) * Number of discrete variables: 6 ($whenCondition1,TSet.a,TSet.b,TSet.last,TSet.nextEvent,TSet.nextEventScaled) * Number of discrete states: 6 (TSet.nextEvent,TSet.last,TSet.nextEventScaled,TSet.b,TSet.a,$whenCondition1) * Top-level inputs: 0 Notification: Strong component statistics for simulation (82): * Single equations (assignments): 79 * Array equations: 0 * Algorithm blocks: 1 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 0 * Non-linear torn systems: 2 {1 4,1 4} Notification: Performance of Backend phase and start with SimCode phase: time 0.003716/7.424, allocations: 2.643 MB / 3.759 GB, free: 65.07 MB / 0.7138 GB Notification: Performance of simCode: created initialization part: time 0.003611/7.428, allocations: 2.4 MB / 3.761 GB, free: 63.69 MB / 0.7138 GB Notification: Performance of simCode: created event and clocks part: time 1.02e-05/7.428, allocations: 3.656 kB / 3.761 GB, free: 63.69 MB / 0.7138 GB Notification: Performance of simCode: created simulation system equations: time 0.0009414/7.429, allocations: 0.6548 MB / 3.762 GB, free: 63.38 MB / 0.7138 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003994/7.433, allocations: 0.6928 MB / 3.763 GB, free: 63.25 MB / 0.7138 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.007937/7.441, allocations: 2.64 MB / 3.765 GB, free: 62.25 MB / 0.7138 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.002464/7.443, allocations: 1.504 MB / 3.767 GB, free: 61.48 MB / 0.7138 GB Notification: Performance of SimCode: time 1.453e-06/7.443, allocations: 0 / 3.767 GB, free: 61.48 MB / 0.7138 GB (rm -f BuildingSystems_BuildingSystems.Fluid.HeatExchangers.Validation.HeaterCooler_u.pipe ; mkfifo BuildingSystems_BuildingSystems.Fluid.HeatExchangers.Validation.HeaterCooler_u.pipe ; head -c 1048576 < BuildingSystems_BuildingSystems.Fluid.HeatExchangers.Validation.HeaterCooler_u.pipe >> ../files/BuildingSystems_BuildingSystems.Fluid.HeatExchangers.Validation.HeaterCooler_u.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator --tempDir=temp_BuildingSystems_BuildingSystems_Fluid_HeatExchangers_Validation_HeaterCooler_u_fmu --startTime=0 --stopTime=1200 --timeout=50 --tolerance=1e-06 BuildingSystems_BuildingSystems_Fluid_HeatExchangers_Validation_HeaterCooler_u.fmu > BuildingSystems_BuildingSystems.Fluid.HeatExchangers.Validation.HeaterCooler_u.pipe 2>&1)