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: translateModel(BuildingSystems.Fluid.HeatExchangers.Validation.HeaterCooler_u,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="BuildingSystems_BuildingSystems.Fluid.HeatExchangers.Validation.HeaterCooler_u") translateModel(BuildingSystems.Fluid.HeatExchangers.Validation.HeaterCooler_u,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="BuildingSystems_BuildingSystems.Fluid.HeatExchangers.Validation.HeaterCooler_u") [: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.7471/0.7471, allocations: 141.8 MB / 149.1 MB, free: 4.441 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.00162/0.00162, allocations: 177 kB / 181.9 MB, free: 108 kB / 138.9 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.409/1.409, allocations: 221.3 MB / 436 MB, free: 9.254 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.0009563/0.0009563, allocations: 93.59 kB / 0.507 GB, free: 24.21 MB / 394.9 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/NcDataReader2 2.5.1-master/package.mo): time 0.00189/0.00189, allocations: 277 kB / 0.5884 GB, free: 12.28 MB / 442.9 MB Notification: Performance of FrontEnd - loaded program: time 1.083e-05/1.097e-05, allocations: 4 kB / 0.6759 GB, free: 2.652 MB / 0.5107 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.5325/0.5325, allocations: 82.76 MB / 0.7567 GB, free: 112.9 MB / 0.5263 GB Notification: Performance of FrontEnd - scodeFlatten: time 4.657/5.189, allocations: 1.891 GB / 2.648 GB, free: 187.4 MB / 0.6982 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.000378/5.19, allocations: 87.95 kB / 2.648 GB, free: 187.3 MB / 0.6982 GB Notification: Performance of FrontEnd: time 4.014/9.204, allocations: 1.05 GB / 3.698 GB, free: 104.5 MB / 0.7138 GB Notification: Performance of Transformations before backend: time 0.0002907/9.204, allocations: 47.41 kB / 3.698 GB, free: 104.5 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: 294 * Number of variables: 294 Notification: Performance of Generate backend data structure: time 0.006491/9.211, allocations: 2.077 MB / 3.7 GB, free: 103.6 MB / 0.7138 GB Notification: Performance of prepare preOptimizeDAE: time 5.001e-05/9.211, allocations: 11.22 kB / 3.7 GB, free: 103.6 MB / 0.7138 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.005039/9.216, allocations: 0.6626 MB / 3.701 GB, free: 103.4 MB / 0.7138 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.005096/9.221, allocations: 1.46 MB / 3.702 GB, free: 103.1 MB / 0.7138 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0004291/9.222, allocations: 122 kB / 3.702 GB, free: 103.1 MB / 0.7138 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0005933/9.222, allocations: 77.47 kB / 3.702 GB, free: 103.1 MB / 0.7138 GB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.003/9.225, allocations: 1.027 MB / 3.703 GB, free: 103.1 MB / 0.7138 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.003252/9.229, allocations: 1.226 MB / 3.704 GB, free: 102.9 MB / 0.7138 GB Notification: Performance of preOpt findStateOrder (simulation): time 4.713e-05/9.229, allocations: 0 / 3.704 GB, free: 102.9 MB / 0.7138 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002171/9.229, allocations: 3.375 kB / 3.704 GB, free: 102.9 MB / 0.7138 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.207e-05/9.229, allocations: 42.95 kB / 3.704 GB, free: 102.9 MB / 0.7138 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01013/9.239, allocations: 5.965 MB / 3.71 GB, free: 100.5 MB / 0.7138 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0008759/9.24, allocations: 0.6025 MB / 3.711 GB, free: 100.5 MB / 0.7138 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0005794/9.241, allocations: 489.4 kB / 3.711 GB, free: 100.5 MB / 0.7138 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0006166/9.241, allocations: 489 kB / 3.712 GB, free: 100 MB / 0.7138 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0006956/9.242, allocations: 0.5439 MB / 3.712 GB, free: 99.93 MB / 0.7138 GB Notification: Performance of pre-optimization done (n=87): time 2.945e-06/9.242, allocations: 0 / 3.712 GB, free: 99.93 MB / 0.7138 GB Notification: Performance of matching and sorting (n=95): time 0.008606/9.251, allocations: 3.152 MB / 3.715 GB, free: 99.33 MB / 0.7138 GB Notification: Performance of inlineWhenForInitialization (initialization): time 6.198e-05/9.251, allocations: 196.6 kB / 3.716 GB, free: 99.11 MB / 0.7138 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001414/9.252, allocations: 0.9177 MB / 3.717 GB, free: 98.96 MB / 0.7138 GB Notification: Performance of collectPreVariables (initialization): time 0.0001191/9.252, allocations: 29.61 kB / 3.717 GB, free: 98.93 MB / 0.7138 GB Notification: Performance of collectInitialEqns (initialization): time 0.0003749/9.253, allocations: 494.5 kB / 3.717 GB, free: 98.7 MB / 0.7138 GB Notification: Performance of collectInitialBindings (initialization): time 0.0003032/9.253, allocations: 314.9 kB / 3.717 GB, free: 98.5 MB / 0.7138 GB Notification: Performance of simplifyInitialFunctions (initialization): time 5.254e-05/9.253, allocations: 2.625 kB / 3.717 GB, free: 98.5 MB / 0.7138 GB Notification: Performance of setup shared object (initialization): time 7.4e-05/9.253, allocations: 343.9 kB / 3.718 GB, free: 98.19 MB / 0.7138 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0005214/9.254, allocations: 387.7 kB / 3.718 GB, free: 98.19 MB / 0.7138 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0006393/9.254, allocations: 0.6022 MB / 3.719 GB, free: 97.96 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.004044/9.258, allocations: 1.423 MB / 3.72 GB, free: 97.82 MB / 0.7138 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.146e-06/9.258, allocations: 0 / 3.72 GB, free: 97.82 MB / 0.7138 GB Notification: Performance of matching and sorting (n=114) (initialization): time 0.003959/9.262, allocations: 1.615 MB / 3.722 GB, free: 97.65 MB / 0.7138 GB Notification: Performance of prepare postOptimizeDAE: time 0.0002512/9.263, allocations: 1.255 MB / 3.723 GB, free: 96.38 MB / 0.7138 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.004e-05/9.263, allocations: 3.625 kB / 3.723 GB, free: 96.38 MB / 0.7138 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0009654/9.264, allocations: 414.4 kB / 3.723 GB, free: 96.34 MB / 0.7138 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0007418/9.264, allocations: 178 kB / 3.723 GB, free: 96.34 MB / 0.7138 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.005959/9.27, allocations: 6.339 MB / 3.73 GB, free: 92.14 MB / 0.7138 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001826/9.272, allocations: 125.1 kB / 3.73 GB, free: 92.14 MB / 0.7138 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001246/9.272, allocations: 38.56 kB / 3.73 GB, free: 92.14 MB / 0.7138 GB Notification: Performance of prepare postOptimizeDAE: time 1.009e-05/9.272, allocations: 3.531 kB / 3.73 GB, free: 92.14 MB / 0.7138 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.003963/9.276, allocations: 1.423 MB / 3.731 GB, free: 92.08 MB / 0.7138 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.466e-06/9.276, allocations: 3.906 kB / 3.731 GB, free: 92.08 MB / 0.7138 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0009991/9.277, allocations: 404.6 kB / 3.732 GB, free: 92.05 MB / 0.7138 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0007552/9.278, allocations: 182.6 kB / 3.732 GB, free: 92.05 MB / 0.7138 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.007257/9.285, allocations: 7.198 MB / 3.739 GB, free: 87.09 MB / 0.7138 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001723/9.287, allocations: 131.7 kB / 3.739 GB, free: 87.08 MB / 0.7138 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001459/9.287, allocations: 39.66 kB / 3.739 GB, free: 87.08 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.0004495/9.288, allocations: 171.2 kB / 3.739 GB, free: 86.93 MB / 0.7138 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0004421/9.288, allocations: 151.3 kB / 3.739 GB, free: 86.86 MB / 0.7138 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003783/9.292, allocations: 1.427 MB / 3.741 GB, free: 86.75 MB / 0.7138 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.298e-06/9.292, allocations: 9.656 kB / 3.741 GB, free: 86.75 MB / 0.7138 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.917e-06/9.292, allocations: 0 / 3.741 GB, free: 86.75 MB / 0.7138 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.002925/9.295, allocations: 1.3 MB / 3.742 GB, free: 86.55 MB / 0.7138 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.007347/9.302, allocations: 3.117 MB / 3.745 GB, free: 86.08 MB / 0.7138 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.436e-05/9.302, allocations: 4.125 kB / 3.745 GB, free: 86.08 MB / 0.7138 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001135/9.303, allocations: 204.4 kB / 3.745 GB, free: 86.08 MB / 0.7138 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0004423/9.304, allocations: 185.9 kB / 3.745 GB, free: 86.07 MB / 0.7138 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.524e-05/9.304, allocations: 19.11 kB / 3.745 GB, free: 86.07 MB / 0.7138 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002543/9.306, allocations: 2.407 MB / 3.748 GB, free: 84.35 MB / 0.7138 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.263e-06/9.306, allocations: 18.28 kB / 3.748 GB, free: 84.34 MB / 0.7138 GB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.004234/9.311, allocations: 2.363 MB / 3.75 GB, free: 83.63 MB / 0.7138 GB Notification: Performance of postOpt removeConstants (simulation): time 0.001039/9.312, allocations: 358.7 kB / 3.75 GB, free: 83.46 MB / 0.7138 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0004954/9.312, allocations: 10.94 kB / 3.75 GB, free: 83.46 MB / 0.7138 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001652/9.314, allocations: 138 kB / 3.75 GB, free: 83.45 MB / 0.7138 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001329/9.314, allocations: 58.94 kB / 3.751 GB, free: 83.45 MB / 0.7138 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001053/9.314, allocations: 44.31 kB / 3.751 GB, free: 83.45 MB / 0.7138 GB Notification: Performance of sort global known variables: time 0.001304/9.316, allocations: 0.6989 MB / 3.751 GB, free: 83.34 MB / 0.7138 GB Notification: Performance of remove unused functions: time 0.005086/9.321, allocations: 0.9453 MB / 3.752 GB, free: 83.3 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.004594/9.325, allocations: 2.641 MB / 3.755 GB, free: 82.49 MB / 0.7138 GB Notification: Performance of simCode: created initialization part: time 0.003844/9.329, allocations: 2.397 MB / 3.757 GB, free: 81.7 MB / 0.7138 GB Notification: Performance of simCode: created event and clocks part: time 1.066e-05/9.329, allocations: 3.562 kB / 3.757 GB, free: 81.7 MB / 0.7138 GB Notification: Performance of simCode: created simulation system equations: time 0.0009784/9.33, allocations: 0.6647 MB / 3.758 GB, free: 81.56 MB / 0.7138 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.004046/9.334, allocations: 0.6979 MB / 3.758 GB, free: 81.54 MB / 0.7138 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.007787/9.342, allocations: 2.612 MB / 3.761 GB, free: 80.86 MB / 0.7138 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001775/9.344, allocations: 1.489 MB / 3.762 GB, free: 80.14 MB / 0.7138 GB Notification: Performance of SimCode: time 1.823e-06/9.344, allocations: 3.75 kB / 3.762 GB, free: 80.14 MB / 0.7138 GB Notification: Performance of Templates: time 0.08754/9.431, allocations: 50.32 MB / 3.812 GB, free: 72.28 MB / 0.7138 GB make -j1 -f BuildingSystems_BuildingSystems.Fluid.HeatExchangers.Validation.HeaterCooler_u.makefile (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 & ./BuildingSystems_BuildingSystems.Fluid.HeatExchangers.Validation.HeaterCooler_u -abortSlowSimulation -alarm=480 -lv LOG_STATS > BuildingSystems_BuildingSystems.Fluid.HeatExchangers.Validation.HeaterCooler_u.pipe 2>&1)