Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr BuildingSystems_BuildingSystems.Fluid.HeatPumps.Calibration.ScrollWaterToWater.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.HeatPumps.Calibration.ScrollWaterToWater,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="BuildingSystems_BuildingSystems.Fluid.HeatPumps.Calibration.ScrollWaterToWater") translateModel(BuildingSystems.Fluid.HeatPumps.Calibration.ScrollWaterToWater,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="BuildingSystems_BuildingSystems.Fluid.HeatPumps.Calibration.ScrollWaterToWater") [: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.7551/0.7551, allocations: 141.8 MB / 149.1 MB, free: 13.3 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.001205/0.001205, allocations: 185.6 kB / 181.9 MB, free: 9.977 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.461/1.461, allocations: 221.3 MB / 436 MB, free: 2.426 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.0009759/0.000976, allocations: 100.2 kB / 0.507 GB, free: 17.65 MB / 378.9 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/NcDataReader2 2.5.1-master/package.mo): time 0.001871/0.001871, allocations: 281.4 kB / 0.5884 GB, free: 3.973 MB / 442.9 MB Notification: Performance of FrontEnd - loaded program: time 8.065e-06/8.095e-06, allocations: 1.375 kB / 0.6759 GB, free: 136.7 MB / 0.5107 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1932/0.1932, allocations: 82.78 MB / 0.7567 GB, free: 83.55 MB / 0.5107 GB Notification: Performance of FrontEnd - scodeFlatten: time 1.102/1.295, allocations: 398.3 MB / 1.146 GB, free: 254.8 MB / 0.6982 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002298/1.295, allocations: 86.2 kB / 1.146 GB, free: 254.8 MB / 0.6982 GB Notification: Performance of FrontEnd: time 2.152/3.447, allocations: 0.5663 GB / 1.712 GB, free: 101 MB / 0.6982 GB Notification: Performance of Transformations before backend: time 0.0003779/3.447, allocations: 44.45 kB / 1.712 GB, free: 101 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: 312 * Number of variables: 312 Notification: Performance of Generate backend data structure: time 0.007858/3.455, allocations: 2.005 MB / 1.714 GB, free: 100.3 MB / 0.6982 GB Notification: Performance of prepare preOptimizeDAE: time 5.16e-05/3.455, allocations: 13.38 kB / 1.714 GB, free: 100.3 MB / 0.6982 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.006089/3.461, allocations: 0.7284 MB / 1.715 GB, free: 100.2 MB / 0.6982 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.006484/3.468, allocations: 1.865 MB / 1.717 GB, free: 99.85 MB / 0.6982 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002877/3.468, allocations: 89 kB / 1.717 GB, free: 99.82 MB / 0.6982 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0007703/3.469, allocations: 76.06 kB / 1.717 GB, free: 99.82 MB / 0.6982 GB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.004205/3.473, allocations: 1.121 MB / 1.718 GB, free: 99.81 MB / 0.6982 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.004537/3.478, allocations: 1.389 MB / 1.719 GB, free: 99.53 MB / 0.6982 GB Notification: Performance of preOpt findStateOrder (simulation): time 4.411e-05/3.478, allocations: 3.469 kB / 1.719 GB, free: 99.53 MB / 0.6982 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0003554/3.478, allocations: 6.531 kB / 1.719 GB, free: 99.53 MB / 0.6982 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.278e-05/3.478, allocations: 55.89 kB / 1.719 GB, free: 99.53 MB / 0.6982 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0153/3.494, allocations: 7.674 MB / 1.727 GB, free: 96 MB / 0.6982 GB Notification: Performance of preOpt comSubExp (simulation): time 0.00166/3.496, allocations: 0.8642 MB / 1.728 GB, free: 95.96 MB / 0.6982 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.000774/3.496, allocations: 462.5 kB / 1.728 GB, free: 95.95 MB / 0.6982 GB Notification: Performance of preOpt evalFunc (simulation): time 0.00137/3.498, allocations: 1.272 MB / 1.729 GB, free: 94.54 MB / 0.6982 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001053/3.499, allocations: 0.5461 MB / 1.73 GB, free: 94.48 MB / 0.6982 GB Notification: Performance of pre-optimization done (n=79): time 5.149e-06/3.499, allocations: 0 / 1.73 GB, free: 94.48 MB / 0.6982 GB Notification: Performance of matching and sorting (n=79): time 0.005695/3.505, allocations: 1.208 MB / 1.731 GB, free: 94.36 MB / 0.6982 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001133/3.505, allocations: 166.6 kB / 1.731 GB, free: 94.17 MB / 0.6982 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.003844/3.509, allocations: 1.003 MB / 1.732 GB, free: 94.02 MB / 0.6982 GB Notification: Performance of collectPreVariables (initialization): time 0.0004156/3.509, allocations: 29.61 kB / 1.732 GB, free: 93.99 MB / 0.6982 GB Notification: Performance of collectInitialEqns (initialization): time 0.001215/3.51, allocations: 0.527 MB / 1.733 GB, free: 93.75 MB / 0.6982 GB Notification: Performance of collectInitialBindings (initialization): time 0.0006296/3.511, allocations: 266.3 kB / 1.733 GB, free: 93.58 MB / 0.6982 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001087/3.511, allocations: 0 / 1.733 GB, free: 93.58 MB / 0.6982 GB Notification: Performance of setup shared object (initialization): time 0.0001977/3.511, allocations: 338.7 kB / 1.733 GB, free: 93.28 MB / 0.6982 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0009571/3.512, allocations: 380.8 kB / 1.734 GB, free: 93.27 MB / 0.6982 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001373/3.514, allocations: 0.6637 MB / 1.734 GB, free: 92.95 MB / 0.6982 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.002055/3.516, allocations: 491.4 kB / 1.735 GB, free: 92.93 MB / 0.6982 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.059e-05/3.516, allocations: 2.656 kB / 1.735 GB, free: 92.93 MB / 0.6982 GB Notification: Performance of matching and sorting (n=111) (initialization): time 0.004169/3.52, allocations: 1.301 MB / 1.736 GB, free: 92.8 MB / 0.6982 GB Notification: Performance of prepare postOptimizeDAE: time 0.001169/3.521, allocations: 2.383 MB / 1.738 GB, free: 90.36 MB / 0.6982 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.759e-05/3.521, allocations: 7.719 kB / 1.738 GB, free: 90.36 MB / 0.6982 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.001384/3.522, allocations: 440.2 kB / 1.739 GB, free: 90.34 MB / 0.6982 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001557/3.524, allocations: 250 kB / 1.739 GB, free: 90.34 MB / 0.6982 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002002/3.526, allocations: 1.176 MB / 1.74 GB, free: 89.8 MB / 0.6982 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002792/3.529, allocations: 228.7 kB / 1.74 GB, free: 89.76 MB / 0.6982 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002031/3.529, allocations: 59.42 kB / 1.74 GB, free: 89.76 MB / 0.6982 GB Notification: Performance of prepare postOptimizeDAE: time 1.278e-05/3.529, allocations: 3.906 kB / 1.74 GB, free: 89.76 MB / 0.6982 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.002807/3.532, allocations: 1.121 MB / 1.742 GB, free: 89.73 MB / 0.6982 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.782e-05/3.532, allocations: 7.031 kB / 1.742 GB, free: 89.73 MB / 0.6982 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.001025/3.533, allocations: 437.7 kB / 1.742 GB, free: 89.72 MB / 0.6982 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001408/3.534, allocations: 242.4 kB / 1.742 GB, free: 89.72 MB / 0.6982 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001731/3.536, allocations: 1.171 MB / 1.743 GB, free: 89.19 MB / 0.6982 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002564/3.539, allocations: 198.8 kB / 1.744 GB, free: 89.16 MB / 0.6982 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001959/3.539, allocations: 60.22 kB / 1.744 GB, free: 89.16 MB / 0.6982 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 27 * Number of states: 0 () * Number of discrete variables: 7 ($whenCondition1,$PRE.calDat.nextTimeEvent,calDat.nextTimeEvent,$PRE.calDat.nextTimeEventScaled,calDat.nextTimeEventScaled,$PRE.heaPum.com.isOn,heaPum.com.isOn) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (83): * Single equations (assignments): 82 * 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: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 0 * Non-linear torn systems: 1 {4 25} Notification: Performance of prepare postOptimizeDAE: time 0.0005085/3.539, allocations: 136.1 kB / 1.744 GB, free: 89.05 MB / 0.6982 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.000678/3.54, allocations: 139.1 kB / 1.744 GB, free: 88.98 MB / 0.6982 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003826/3.544, allocations: 1.327 MB / 1.745 GB, free: 88.88 MB / 0.6982 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.972e-05/3.544, allocations: 7.469 kB / 1.745 GB, free: 88.88 MB / 0.6982 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.141e-05/3.544, allocations: 0 / 1.745 GB, free: 88.88 MB / 0.6982 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.002301/3.546, allocations: 1.113 MB / 1.746 GB, free: 88.69 MB / 0.6982 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0071/3.553, allocations: 2.821 MB / 1.749 GB, free: 88.33 MB / 0.6982 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.019e-05/3.554, allocations: 3.938 kB / 1.749 GB, free: 88.33 MB / 0.6982 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001292/3.555, allocations: 187.8 kB / 1.749 GB, free: 88.33 MB / 0.6982 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.001017/3.556, allocations: 428.5 kB / 1.75 GB, free: 88.32 MB / 0.6982 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001074/3.556, allocations: 32.12 kB / 1.75 GB, free: 88.31 MB / 0.6982 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001716/3.558, allocations: 1.162 MB / 1.751 GB, free: 87.78 MB / 0.6982 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.272e-06/3.558, allocations: 3.938 kB / 1.751 GB, free: 87.78 MB / 0.6982 GB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.00338/3.561, allocations: 1.342 MB / 1.752 GB, free: 87.45 MB / 0.6982 GB Notification: Performance of postOpt removeConstants (simulation): time 0.001508/3.563, allocations: 406.5 kB / 1.752 GB, free: 87.27 MB / 0.6982 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0007329/3.563, allocations: 6.438 kB / 1.752 GB, free: 87.27 MB / 0.6982 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.002626/3.566, allocations: 157.4 kB / 1.753 GB, free: 87.27 MB / 0.6982 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001498/3.566, allocations: 51.92 kB / 1.753 GB, free: 87.27 MB / 0.6982 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002071/3.566, allocations: 58.94 kB / 1.753 GB, free: 87.27 MB / 0.6982 GB Notification: Performance of sort global known variables: time 0.001851/3.568, allocations: 0.7566 MB / 1.753 GB, free: 87.16 MB / 0.6982 GB Notification: Performance of remove unused functions: time 0.005398/3.574, allocations: 1.052 MB / 1.754 GB, free: 86.96 MB / 0.6982 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 5 * Number of states: 0 () * Number of discrete variables: 4 ($whenCondition1,calDat.nextTimeEvent,calDat.nextTimeEventScaled,heaPum.com.isOn) * Number of discrete states: 3 (calDat.nextTimeEvent,heaPum.com.isOn,calDat.nextTimeEventScaled) * Top-level inputs: 0 Notification: Strong component statistics for simulation (56): * Single equations (assignments): 51 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 2 * When equations: 2 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 0 * Non-linear torn systems: 1 {4 25} Notification: Performance of Backend phase and start with SimCode phase: time 0.003616/3.577, allocations: 1.133 MB / 1.756 GB, free: 86.73 MB / 0.6982 GB Notification: Performance of simCode: created initialization part: time 0.00368/3.581, allocations: 1.581 MB / 1.757 GB, free: 86.7 MB / 0.6982 GB Notification: Performance of simCode: created event and clocks part: time 1.071e-05/3.581, allocations: 2.875 kB / 1.757 GB, free: 86.7 MB / 0.6982 GB Notification: Performance of simCode: created simulation system equations: time 0.001068/3.582, allocations: 0.4915 MB / 1.758 GB, free: 86.7 MB / 0.6982 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.004444/3.587, allocations: 0.6523 MB / 1.758 GB, free: 86.68 MB / 0.6982 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.007119/3.594, allocations: 2.007 MB / 1.76 GB, free: 86.14 MB / 0.6982 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0021/3.596, allocations: 1.464 MB / 1.762 GB, free: 85.41 MB / 0.6982 GB Notification: Performance of SimCode: time 1.763e-06/3.596, allocations: 0 / 1.762 GB, free: 85.41 MB / 0.6982 GB Notification: Performance of Templates: time 0.09198/3.688, allocations: 44.82 MB / 1.805 GB, free: 83.54 MB / 0.6982 GB make -j1 -f BuildingSystems_BuildingSystems.Fluid.HeatPumps.Calibration.ScrollWaterToWater.makefile (rm -f BuildingSystems_BuildingSystems.Fluid.HeatPumps.Calibration.ScrollWaterToWater.pipe ; mkfifo BuildingSystems_BuildingSystems.Fluid.HeatPumps.Calibration.ScrollWaterToWater.pipe ; head -c 1048576 < BuildingSystems_BuildingSystems.Fluid.HeatPumps.Calibration.ScrollWaterToWater.pipe >> ../files/BuildingSystems_BuildingSystems.Fluid.HeatPumps.Calibration.ScrollWaterToWater.sim & ./BuildingSystems_BuildingSystems.Fluid.HeatPumps.Calibration.ScrollWaterToWater -abortSlowSimulation -alarm=480 -lv LOG_STATS > BuildingSystems_BuildingSystems.Fluid.HeatPumps.Calibration.ScrollWaterToWater.pipe 2>&1)