Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr BuildingSystems_BuildingSystems.Fluid.HeatExchangers.Validation.PrescribedOutlet_dynamic.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_dynamic,fileNamePrefix="BuildingSystems_BuildingSystems_Fluid_HeatExchangers_Validation_PrescribedOutlet_dynamic",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(BuildingSystems.Fluid.HeatExchangers.Validation.PrescribedOutlet_dynamic,fileNamePrefix="BuildingSystems_BuildingSystems_Fluid_HeatExchangers_Validation_PrescribedOutlet_dynamic",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.7213/0.7213, allocations: 141.8 MB / 149.1 MB, free: 3.941 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.001061/0.001061, allocations: 183 kB / 181.9 MB, free: 15.66 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.287/1.287, allocations: 221.3 MB / 436 MB, free: 8.762 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.0009339/0.000934, allocations: 99.45 kB / 0.507 GB, free: 24.23 MB / 394.9 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/NcDataReader2 2.5.1-master/package.mo): time 0.001732/0.001732, allocations: 285.4 kB / 0.5884 GB, free: 11.81 MB / 442.9 MB Notification: Performance of FrontEnd - loaded program: time 0.1838/0.1855, allocations: 89.64 MB / 0.676 GB, free: 2.086 MB / 0.5107 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3879/0.5734, allocations: 82.76 MB / 0.7568 GB, free: 112.4 MB / 0.5263 GB Notification: Performance of FrontEnd - scodeFlatten: time 0.6034/1.177, allocations: 360.6 MB / 1.109 GB, free: 4.473 MB / 0.6357 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003563/1.177, allocations: 95.55 kB / 1.109 GB, free: 4.426 MB / 0.6357 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 5.105/6.282, allocations: 1.54 GB / 2.649 GB, free: 81.92 MB / 0.745 GB Notification: Performance of prepare preOptimizeDAE: time 4.629e-05/6.282, allocations: 8.281 kB / 2.649 GB, free: 81.92 MB / 0.745 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.003746/6.286, allocations: 0.6718 MB / 2.65 GB, free: 81.82 MB / 0.745 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.004164/6.29, allocations: 1.509 MB / 2.652 GB, free: 81.43 MB / 0.745 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.361e-05/6.29, allocations: 33.91 kB / 2.652 GB, free: 81.43 MB / 0.745 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.000316/6.291, allocations: 70.56 kB / 2.652 GB, free: 81.43 MB / 0.745 GB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.001686/6.292, allocations: 0.8279 MB / 2.652 GB, free: 81.43 MB / 0.745 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001728/6.294, allocations: 1.06 MB / 2.653 GB, free: 81.21 MB / 0.745 GB Notification: Performance of preOpt findStateOrder (simulation): time 2.7e-05/6.294, allocations: 4.719 kB / 2.653 GB, free: 81.21 MB / 0.745 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.457e-05/6.294, allocations: 7.875 kB / 2.653 GB, free: 81.21 MB / 0.745 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.094e-05/6.294, allocations: 24.19 kB / 2.654 GB, free: 81.21 MB / 0.745 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.008046/6.302, allocations: 6.693 MB / 2.66 GB, free: 77.25 MB / 0.745 GB Notification: Performance of preOpt comSubExp (simulation): time 0.001363/6.304, allocations: 0.8546 MB / 2.661 GB, free: 77.22 MB / 0.745 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0006419/6.304, allocations: 0.49 MB / 2.661 GB, free: 77.21 MB / 0.745 GB Notification: Performance of preOpt evalFunc (simulation): time 0.001416/6.306, allocations: 2.262 MB / 2.664 GB, free: 74.68 MB / 0.745 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0007971/6.307, allocations: 0.6384 MB / 2.664 GB, free: 74.52 MB / 0.745 GB Notification: Performance of pre-optimization done (n=97): time 3.867e-06/6.307, allocations: 2.281 kB / 2.664 GB, free: 74.52 MB / 0.745 GB Notification: Performance of matching and sorting (n=97): time 0.003273/6.31, allocations: 1.305 MB / 2.665 GB, free: 74.4 MB / 0.745 GB Notification: Performance of inlineWhenForInitialization (initialization): time 6.371e-05/6.31, allocations: 146.4 kB / 2.666 GB, free: 74.24 MB / 0.745 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001504/6.311, allocations: 0.9109 MB / 2.666 GB, free: 74.09 MB / 0.745 GB Notification: Performance of collectPreVariables (initialization): time 0.0001085/6.312, allocations: 31.08 kB / 2.667 GB, free: 74.05 MB / 0.745 GB Notification: Performance of collectInitialEqns (initialization): time 0.0004172/6.312, allocations: 462 kB / 2.667 GB, free: 73.81 MB / 0.745 GB Notification: Performance of collectInitialBindings (initialization): time 0.0003199/6.312, allocations: 311.5 kB / 2.667 GB, free: 73.6 MB / 0.745 GB Notification: Performance of simplifyInitialFunctions (initialization): time 6.225e-05/6.312, allocations: 1.562 kB / 2.667 GB, free: 73.6 MB / 0.745 GB Notification: Performance of setup shared object (initialization): time 9.158e-05/6.313, allocations: 353.1 kB / 2.668 GB, free: 73.3 MB / 0.745 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0006023/6.313, allocations: 409 kB / 2.668 GB, free: 73.3 MB / 0.745 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000818/6.314, allocations: 0.6947 MB / 2.669 GB, free: 72.97 MB / 0.745 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.002067/6.316, allocations: 0.7072 MB / 2.669 GB, free: 72.95 MB / 0.745 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.959e-06/6.316, allocations: 2.734 kB / 2.669 GB, free: 72.95 MB / 0.745 GB Notification: Performance of matching and sorting (n=132) (initialization): time 0.003351/6.319, allocations: 1.461 MB / 2.671 GB, free: 72.83 MB / 0.745 GB Notification: Performance of prepare postOptimizeDAE: time 0.0005612/6.32, allocations: 2.137 MB / 2.673 GB, free: 70.55 MB / 0.745 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.663e-05/6.32, allocations: 6.25 kB / 2.673 GB, free: 70.55 MB / 0.745 GB Notification: Performance of postOpt tearingSystem (initialization): time 3.673e-05/6.32, allocations: 14.34 kB / 2.673 GB, free: 70.55 MB / 0.745 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001374/6.321, allocations: 311.2 kB / 2.673 GB, free: 70.55 MB / 0.745 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.989e-05/6.321, allocations: 10.81 kB / 2.673 GB, free: 70.55 MB / 0.745 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001891/6.323, allocations: 234.1 kB / 2.673 GB, free: 70.51 MB / 0.745 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001628/6.324, allocations: 59.06 kB / 2.673 GB, free: 70.51 MB / 0.745 GB Notification: Performance of prepare postOptimizeDAE: time 1.06e-05/6.324, allocations: 3.938 kB / 2.673 GB, free: 70.51 MB / 0.745 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.002852/6.326, allocations: 1.266 MB / 2.675 GB, free: 70.49 MB / 0.745 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.024e-06/6.326, allocations: 11.72 kB / 2.675 GB, free: 70.49 MB / 0.745 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.229e-05/6.326, allocations: 10.25 kB / 2.675 GB, free: 70.49 MB / 0.745 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001287/6.328, allocations: 306.1 kB / 2.675 GB, free: 70.49 MB / 0.745 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.741e-05/6.328, allocations: 14.16 kB / 2.675 GB, free: 70.49 MB / 0.745 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001747/6.33, allocations: 224.3 kB / 2.675 GB, free: 70.45 MB / 0.745 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001459/6.33, allocations: 63.39 kB / 2.675 GB, free: 70.45 MB / 0.745 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 24 * 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 (117): * Single equations (assignments): 114 * 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.0003197/6.33, allocations: 237.1 kB / 2.676 GB, free: 70.24 MB / 0.745 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003341/6.33, allocations: 158.3 kB / 2.676 GB, free: 70.16 MB / 0.745 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.004424/6.335, allocations: 2.058 MB / 2.678 GB, free: 70.06 MB / 0.745 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.746e-05/6.335, allocations: 13.02 kB / 2.678 GB, free: 70.06 MB / 0.745 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.636e-06/6.335, allocations: 3.375 kB / 2.678 GB, free: 70.06 MB / 0.745 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.362e-05/6.335, allocations: 7.516 kB / 2.678 GB, free: 70.06 MB / 0.745 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.006357/6.341, allocations: 3.119 MB / 2.681 GB, free: 69.67 MB / 0.745 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.536e-06/6.341, allocations: 1.594 kB / 2.681 GB, free: 69.67 MB / 0.745 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001208/6.342, allocations: 240.3 kB / 2.681 GB, free: 69.67 MB / 0.745 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.611e-05/6.342, allocations: 3.969 kB / 2.681 GB, free: 69.67 MB / 0.745 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001068/6.343, allocations: 36.19 kB / 2.681 GB, free: 69.67 MB / 0.745 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.175e-05/6.343, allocations: 9.156 kB / 2.681 GB, free: 69.67 MB / 0.745 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.448e-06/6.343, allocations: 7.562 kB / 2.681 GB, free: 69.67 MB / 0.745 GB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.005023/6.348, allocations: 2.593 MB / 2.684 GB, free: 69.27 MB / 0.745 GB Notification: Performance of postOpt generateSymbolicLinearization (simulation): time 0.006748/6.354, allocations: 3.843 MB / 2.687 GB, free: 68.48 MB / 0.745 GB Notification: Performance of postOpt removeConstants (simulation): time 0.001272/6.356, allocations: 402.1 kB / 2.688 GB, free: 68.29 MB / 0.745 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0005678/6.356, allocations: 13.5 kB / 2.688 GB, free: 68.29 MB / 0.745 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001736/6.358, allocations: 162.1 kB / 2.688 GB, free: 68.29 MB / 0.745 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001474/6.358, allocations: 69.34 kB / 2.688 GB, free: 68.28 MB / 0.745 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001256/6.358, allocations: 59.08 kB / 2.688 GB, free: 68.28 MB / 0.745 GB Notification: Performance of sort global known variables: time 0.001287/6.36, allocations: 0.6866 MB / 2.689 GB, free: 68.17 MB / 0.745 GB Notification: Performance of remove unused functions: time 0.005401/6.365, allocations: 1.145 MB / 2.69 GB, free: 68.05 MB / 0.745 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 6 * Number of states: 9 (heaHigPow.outCon.T,heaHigPowOut.T,cooLimPowOut.T,cooLimPow.outCon.T,heaCooUnl.outCon.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 (101): * Single equations (assignments): 79 * 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.002335/6.367, allocations: 0.9934 MB / 2.691 GB, free: 67.81 MB / 0.745 GB Notification: Performance of simCode: created initialization part: time 0.002999/6.37, allocations: 1.936 MB / 2.693 GB, free: 67.59 MB / 0.745 GB Notification: Performance of simCode: created event and clocks part: time 4.429e-06/6.37, allocations: 0 / 2.693 GB, free: 67.59 MB / 0.745 GB Notification: Performance of simCode: created simulation system equations: time 0.001284/6.372, allocations: 0.8068 MB / 2.693 GB, free: 67.5 MB / 0.745 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003265/6.375, allocations: 0.5151 MB / 2.694 GB, free: 67.49 MB / 0.745 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.006565/6.382, allocations: 2.722 MB / 2.697 GB, free: 66.87 MB / 0.745 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001788/6.383, allocations: 1.508 MB / 2.698 GB, free: 66.14 MB / 0.745 GB Notification: Performance of SimCode: time 6.52e-07/6.383, allocations: 0 / 2.698 GB, free: 66.14 MB / 0.745 GB (rm -f BuildingSystems_BuildingSystems.Fluid.HeatExchangers.Validation.PrescribedOutlet_dynamic.pipe ; mkfifo BuildingSystems_BuildingSystems.Fluid.HeatExchangers.Validation.PrescribedOutlet_dynamic.pipe ; head -c 1048576 < BuildingSystems_BuildingSystems.Fluid.HeatExchangers.Validation.PrescribedOutlet_dynamic.pipe >> ../files/BuildingSystems_BuildingSystems.Fluid.HeatExchangers.Validation.PrescribedOutlet_dynamic.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator --tempDir=temp_BuildingSystems_BuildingSystems_Fluid_HeatExchangers_Validation_PrescribedOutlet_dynamic_fmu --startTime=0 --stopTime=1200 --timeout=50 --tolerance=1e-06 BuildingSystems_BuildingSystems_Fluid_HeatExchangers_Validation_PrescribedOutlet_dynamic.fmu > BuildingSystems_BuildingSystems.Fluid.HeatExchangers.Validation.PrescribedOutlet_dynamic.pipe 2>&1)