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: "" <> buildModelFMU(BuildingSystems.Fluid.HeatPumps.Calibration.ScrollWaterToWater,fileNamePrefix="BuildingSystems_BuildingSystems_Fluid_HeatPumps_Calibration_ScrollWaterToWater",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(BuildingSystems.Fluid.HeatPumps.Calibration.ScrollWaterToWater,fileNamePrefix="BuildingSystems_BuildingSystems_Fluid_HeatPumps_Calibration_ScrollWaterToWater",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildingSystems 2.0.0-master/package.mo): time 0.8232/0.8232, allocations: 143.3 MB / 158.3 MB, free: 5.789 MB / 122.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001128/0.001128, allocations: 181 kB / 191.5 MB, free: 5.754 MB / 154.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.534/1.534, allocations: 223.2 MB / 447.7 MB, free: 4.871 MB / 330.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001018/0.001018, allocations: 96.31 kB / 0.5187 GB, free: 1.227 MB / 410.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/NcDataReader2 2.5.1-master/package.mo): time 0.001953/0.001953, allocations: 272.4 kB / 0.6005 GB, free: 48.77 MB / 410.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0005103/0.0005105, allocations: 23.14 kB / 0.6929 GB, free: 59.7 MB / 442.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1782/0.1787, allocations: 82.79 MB / 0.7738 GB, free: 13.76 MB / 458.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 1.269/1.448, allocations: 399 MB / 1.163 GB, free: 193.2 MB / 0.7136 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003459/1.448, allocations: 96.53 kB / 1.164 GB, free: 193.2 MB / 0.7136 GB Notification: Performance of FrontEnd - DAE generated: time 1.956/3.405, allocations: 0.5662 GB / 1.73 GB, free: 107.2 MB / 0.7136 GB Notification: Performance of FrontEnd: time 2.465e-06/3.405, allocations: 0 / 1.73 GB, free: 107.2 MB / 0.7136 GB Notification: Performance of Transformations before backend: time 0.0002118/3.405, allocations: 44.59 kB / 1.73 GB, free: 107.2 MB / 0.7136 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.006815/3.412, allocations: 2.248 MB / 1.732 GB, free: 106.4 MB / 0.7136 GB Notification: Performance of prepare preOptimizeDAE: time 5.28e-05/3.412, allocations: 8.688 kB / 1.732 GB, free: 106.4 MB / 0.7136 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0004946/3.412, allocations: 193.5 kB / 1.732 GB, free: 106.4 MB / 0.7136 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.005606/3.418, allocations: 0.6787 MB / 1.733 GB, free: 106.3 MB / 0.7136 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.005455/3.423, allocations: 1.882 MB / 1.735 GB, free: 106 MB / 0.7136 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.000186/3.424, allocations: 132.1 kB / 1.735 GB, free: 105.9 MB / 0.7136 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002936/3.424, allocations: 123.1 kB / 1.735 GB, free: 105.9 MB / 0.7136 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.004611/3.429, allocations: 1.737 MB / 1.737 GB, free: 105.7 MB / 0.7136 GB Notification: Performance of preOpt findStateOrder (simulation): time 3.352e-05/3.429, allocations: 4.594 kB / 1.737 GB, free: 105.7 MB / 0.7136 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001858/3.429, allocations: 55.62 kB / 1.737 GB, free: 105.7 MB / 0.7136 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.193e-05/3.429, allocations: 54.44 kB / 1.737 GB, free: 105.6 MB / 0.7136 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.005428/3.434, allocations: 1.54 MB / 1.738 GB, free: 105.6 MB / 0.7136 GB Warning: The model contains alias variables with redundant start and/or conflicting nominal values. It is recommended to resolve the conflicts, because otherwise the system could be hard to solve. To print the conflicting alias sets and the chosen candidates please use -d=aliasConflicts. Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01094/3.445, allocations: 7.518 MB / 1.746 GB, free: 102.3 MB / 0.7136 GB Notification: Performance of preOpt comSubExp (simulation): time 0.003941/3.449, allocations: 1.233 MB / 1.747 GB, free: 102.2 MB / 0.7136 GB Notification: Performance of preOpt evalFunc (simulation): time 0.001107/3.45, allocations: 1.268 MB / 1.748 GB, free: 100.8 MB / 0.7136 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.002121/3.453, allocations: 0.7274 MB / 1.749 GB, free: 100.8 MB / 0.7136 GB Notification: Performance of pre-optimization done (n=79): time 2.985e-06/3.453, allocations: 0 / 1.749 GB, free: 100.8 MB / 0.7136 GB Notification: Performance of matching and sorting (n=79): time 0.02172/3.474, allocations: 3.578 MB / 1.752 GB, free: 100.5 MB / 0.7136 GB Notification: Performance of inlineWhenForInitialization (initialization): time 6.236e-05/3.474, allocations: 165 kB / 1.752 GB, free: 100.4 MB / 0.7136 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.00205/3.476, allocations: 1.183 MB / 1.753 GB, free: 100.2 MB / 0.7136 GB Notification: Performance of collectPreVariables (initialization): time 0.0002614/3.477, allocations: 45.3 kB / 1.754 GB, free: 100.2 MB / 0.7136 GB Notification: Performance of collectInitialEqns (initialization): time 0.0006206/3.477, allocations: 0.7294 MB / 1.754 GB, free: 99.95 MB / 0.7136 GB Notification: Performance of collectInitialBindings (initialization): time 0.0002786/3.478, allocations: 269.7 kB / 1.754 GB, free: 99.8 MB / 0.7136 GB Notification: Performance of simplifyInitialFunctions (initialization): time 6.538e-05/3.478, allocations: 18.06 kB / 1.755 GB, free: 99.8 MB / 0.7136 GB Notification: Performance of setup shared object (initialization): time 9.462e-05/3.478, allocations: 339.8 kB / 1.755 GB, free: 99.49 MB / 0.7136 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0019/3.48, allocations: 0.5466 MB / 1.755 GB, free: 99.49 MB / 0.7136 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.002038/3.482, allocations: 0.8563 MB / 1.756 GB, free: 99.16 MB / 0.7136 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.001981/3.484, allocations: 0.5861 MB / 1.757 GB, free: 99.15 MB / 0.7136 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.664e-06/3.484, allocations: 3.188 kB / 1.757 GB, free: 99.15 MB / 0.7136 GB Notification: Performance of matching and sorting (n=111) (initialization): time 0.005292/3.489, allocations: 1.698 MB / 1.758 GB, free: 99.02 MB / 0.7136 GB Notification: Performance of prepare postOptimizeDAE: time 0.0005491/3.49, allocations: 2.403 MB / 1.761 GB, free: 96.56 MB / 0.7136 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.906e-05/3.49, allocations: 13.14 kB / 1.761 GB, free: 96.56 MB / 0.7136 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.001937/3.492, allocations: 0.5737 MB / 1.761 GB, free: 96.55 MB / 0.7136 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001369/3.493, allocations: 241.7 kB / 1.762 GB, free: 96.55 MB / 0.7136 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001798/3.495, allocations: 1.195 MB / 1.763 GB, free: 96.01 MB / 0.7136 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002663/3.497, allocations: 253.6 kB / 1.763 GB, free: 95.95 MB / 0.7136 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001865/3.498, allocations: 59.02 kB / 1.763 GB, free: 95.95 MB / 0.7136 GB Notification: Performance of prepare postOptimizeDAE: time 1.387e-05/3.498, allocations: 3.938 kB / 1.763 GB, free: 95.95 MB / 0.7136 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.004673/3.502, allocations: 1.501 MB / 1.765 GB, free: 95.93 MB / 0.7136 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.651e-05/3.502, allocations: 7.844 kB / 1.765 GB, free: 95.93 MB / 0.7136 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.001767/3.504, allocations: 0.572 MB / 1.765 GB, free: 95.91 MB / 0.7136 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001332/3.506, allocations: 235.2 kB / 1.765 GB, free: 95.91 MB / 0.7136 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.00179/3.507, allocations: 1.196 MB / 1.766 GB, free: 95.37 MB / 0.7136 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0025/3.51, allocations: 224.8 kB / 1.767 GB, free: 95.32 MB / 0.7136 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001866/3.51, allocations: 54.81 kB / 1.767 GB, free: 95.32 MB / 0.7136 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 () * Number of clocked 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.001393/3.511, allocations: 470.8 kB / 1.767 GB, free: 95.13 MB / 0.7136 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0006529/3.512, allocations: 154.9 kB / 1.767 GB, free: 95.05 MB / 0.7136 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.00532/3.517, allocations: 1.672 MB / 1.769 GB, free: 94.95 MB / 0.7136 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.127e-05/3.518, allocations: 10.31 kB / 1.769 GB, free: 94.95 MB / 0.7136 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.256e-05/3.518, allocations: 0 / 1.769 GB, free: 94.95 MB / 0.7136 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.004301/3.522, allocations: 1.453 MB / 1.77 GB, free: 94.76 MB / 0.7136 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.008907/3.531, allocations: 3.334 MB / 1.774 GB, free: 94.35 MB / 0.7136 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.218e-06/3.531, allocations: 0 / 1.774 GB, free: 94.35 MB / 0.7136 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001123/3.532, allocations: 187.5 kB / 1.774 GB, free: 94.35 MB / 0.7136 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.001725/3.534, allocations: 0.5458 MB / 1.774 GB, free: 94.34 MB / 0.7136 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001002/3.534, allocations: 37.05 kB / 1.774 GB, free: 94.34 MB / 0.7136 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001667/3.536, allocations: 1.173 MB / 1.776 GB, free: 93.8 MB / 0.7136 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.046e-06/3.536, allocations: 0 / 1.776 GB, free: 93.8 MB / 0.7136 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.004918/3.54, allocations: 1.712 MB / 1.777 GB, free: 93.44 MB / 0.7136 GB Notification: Performance of postOpt removeConstants (simulation): time 0.001353/3.542, allocations: 414 kB / 1.778 GB, free: 93.26 MB / 0.7136 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0005967/3.542, allocations: 21.47 kB / 1.778 GB, free: 93.26 MB / 0.7136 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.002219/3.545, allocations: 172.7 kB / 1.778 GB, free: 93.25 MB / 0.7136 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001301/3.545, allocations: 58.64 kB / 1.778 GB, free: 93.25 MB / 0.7136 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001551/3.545, allocations: 52.11 kB / 1.778 GB, free: 93.25 MB / 0.7136 GB Notification: Performance of sorting global known variables: time 0.001822/3.547, allocations: 0.9294 MB / 1.779 GB, free: 93.14 MB / 0.7136 GB Notification: Performance of sort global known variables: time 2.81e-07/3.547, allocations: 0 / 1.779 GB, free: 93.14 MB / 0.7136 GB Notification: Performance of remove unused functions: time 0.004488/3.551, allocations: 1.076 MB / 1.78 GB, free: 92.96 MB / 0.7136 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) * Number of clocked states: 0 () * 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.008445/3.56, allocations: 3.649 MB / 1.783 GB, free: 91.7 MB / 0.7136 GB Notification: Performance of simCode: created initialization part: time 0.007279/3.567, allocations: 2.076 MB / 1.785 GB, free: 91.67 MB / 0.7136 GB Notification: Performance of simCode: created event and clocks part: time 1.163e-05/3.567, allocations: 1.781 kB / 1.785 GB, free: 91.67 MB / 0.7136 GB Notification: Performance of simCode: created simulation system equations: time 0.002202/3.569, allocations: 0.6664 MB / 1.786 GB, free: 91.66 MB / 0.7136 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.004154/3.574, allocations: 0.7655 MB / 1.787 GB, free: 91.65 MB / 0.7136 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.02743/3.601, allocations: 13.71 MB / 1.8 GB, free: 84.53 MB / 0.7136 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001264/3.602, allocations: 1.298 MB / 1.802 GB, free: 83.81 MB / 0.7136 GB Notification: Performance of simCode: alias equations: time 0.002714/3.605, allocations: 383.9 kB / 1.802 GB, free: 83.8 MB / 0.7136 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001214/3.606, allocations: 0.6268 MB / 1.802 GB, free: 83.79 MB / 0.7136 GB Notification: Performance of SimCode: time 9.238e-06/3.606, allocations: 5.922 kB / 1.802 GB, free: 83.79 MB / 0.7136 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.09773/3.704, allocations: 57.25 MB / 1.858 GB, free: 80.82 MB / 0.7136 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001804/3.704, allocations: 263.2 kB / 1.859 GB, free: 80.47 MB / 0.7136 GB Notification: Performance of buildModelFMU: Generate platform static: time 4.134/7.838, allocations: 0 / 1.859 GB, free: 80.47 MB / 0.7136 GB (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 & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator --tempDir=temp_BuildingSystems_BuildingSystems_Fluid_HeatPumps_Calibration_ScrollWaterToWater_fmu --startTime=0 --stopTime=142 --timeout=50 --tolerance=1e-06 BuildingSystems_BuildingSystems_Fluid_HeatPumps_Calibration_ScrollWaterToWater.fmu > BuildingSystems_BuildingSystems.Fluid.HeatPumps.Calibration.ScrollWaterToWater.pipe 2>&1)