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.7073/0.7073, allocations: 141.7 MB / 154.3 MB, free: 15.48 MB / 138.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001014/0.001014, allocations: 189.4 kB / 187.3 MB, free: 11.87 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.225/1.225, allocations: 221.3 MB / 441.4 MB, free: 4.582 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.0008079/0.0008078, allocations: 94.25 kB / 0.5124 GB, free: 24.23 MB / 394.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/NcDataReader2 2.5.1-master/package.mo): time 0.001849/0.001849, allocations: 273.9 kB / 0.5939 GB, free: 7.945 MB / 442.7 MB Notification: Performance of FrontEnd - loaded program: time 4.667e-05/4.676e-05, allocations: 7.984 kB / 0.6835 GB, free: 12.12 MB / 0.5261 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.366/0.3661, allocations: 82.76 MB / 0.7644 GB, free: 108.7 MB / 0.5261 GB Notification: Performance of FrontEnd - scodeFlatten: time 0.6481/1.014, allocations: 398.9 MB / 1.154 GB, free: 8.289 MB / 0.6823 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002045/1.014, allocations: 89.64 kB / 1.154 GB, free: 8.246 MB / 0.6823 GB Notification: Performance of FrontEnd - DAE generated: time 1.644/2.659, allocations: 0.5643 GB / 1.718 GB, free: 6.918 MB / 0.698 GB Notification: Performance of FrontEnd: time 1.102e-06/2.659, allocations: 0 / 1.718 GB, free: 6.918 MB / 0.698 GB Notification: Performance of Transformations before backend: time 0.0001373/2.659, allocations: 47.88 kB / 1.718 GB, free: 6.871 MB / 0.698 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.003421/2.662, allocations: 1.961 MB / 1.72 GB, free: 4.848 MB / 0.698 GB Notification: Performance of prepare preOptimizeDAE: time 3.941e-05/2.662, allocations: 8.031 kB / 1.72 GB, free: 4.84 MB / 0.698 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001861/2.663, allocations: 189.8 kB / 1.72 GB, free: 4.645 MB / 0.698 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.004325/2.667, allocations: 0.6767 MB / 1.721 GB, free: 3.965 MB / 0.698 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.003031/2.67, allocations: 1.858 MB / 1.723 GB, free: 2.051 MB / 0.698 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 9.961e-05/2.67, allocations: 132.1 kB / 1.723 GB, free: 1.914 MB / 0.698 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001629/2.67, allocations: 128 kB / 1.723 GB, free: 1.789 MB / 0.698 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002111/2.672, allocations: 1.564 MB / 1.725 GB, free: 124 kB / 0.698 GB Notification: Performance of preOpt findStateOrder (simulation): time 2.416e-05/2.672, allocations: 4 kB / 1.725 GB, free: 120 kB / 0.698 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001275/2.673, allocations: 59.94 kB / 1.725 GB, free: 60 kB / 0.698 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.359e-05/2.673, allocations: 50.23 kB / 1.725 GB, free: 8 kB / 0.698 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.4043/3.077, allocations: 1.192 MB / 1.726 GB, free: 98.4 MB / 0.698 GB Warning: The model contains alias variables with conflicting start and/or 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.01024/3.087, allocations: 7.513 MB / 1.733 GB, free: 95.12 MB / 0.698 GB Notification: Performance of preOpt comSubExp (simulation): time 0.00167/3.089, allocations: 0.9213 MB / 1.734 GB, free: 95.09 MB / 0.698 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0006174/3.089, allocations: 472.6 kB / 1.735 GB, free: 95.07 MB / 0.698 GB Notification: Performance of preOpt evalFunc (simulation): time 0.001029/3.091, allocations: 1.28 MB / 1.736 GB, free: 93.66 MB / 0.698 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0007882/3.091, allocations: 0.5714 MB / 1.736 GB, free: 93.61 MB / 0.698 GB Notification: Performance of pre-optimization done (n=79): time 3.546e-06/3.091, allocations: 0 / 1.736 GB, free: 93.61 MB / 0.698 GB Notification: Performance of matching and sorting (n=79): time 0.003625/3.095, allocations: 1.213 MB / 1.738 GB, free: 93.47 MB / 0.698 GB Notification: Performance of inlineWhenForInitialization (initialization): time 6.603e-05/3.095, allocations: 162.8 kB / 1.738 GB, free: 93.28 MB / 0.698 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001616/3.097, allocations: 1.153 MB / 1.739 GB, free: 93.12 MB / 0.698 GB Notification: Performance of collectPreVariables (initialization): time 0.0001149/3.097, allocations: 48.67 kB / 1.739 GB, free: 93.09 MB / 0.698 GB Notification: Performance of collectInitialEqns (initialization): time 0.0005866/3.097, allocations: 0.735 MB / 1.74 GB, free: 92.87 MB / 0.698 GB Notification: Performance of collectInitialBindings (initialization): time 0.0002286/3.098, allocations: 277.4 kB / 1.74 GB, free: 92.73 MB / 0.698 GB Notification: Performance of simplifyInitialFunctions (initialization): time 5.906e-05/3.098, allocations: 16.81 kB / 1.74 GB, free: 92.73 MB / 0.698 GB Notification: Performance of setup shared object (initialization): time 8.36e-05/3.098, allocations: 342.3 kB / 1.74 GB, free: 92.43 MB / 0.698 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0005656/3.098, allocations: 386.2 kB / 1.741 GB, free: 92.43 MB / 0.698 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0007622/3.099, allocations: 0.6831 MB / 1.741 GB, free: 92.09 MB / 0.698 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.000628/3.1, allocations: 441.6 kB / 1.742 GB, free: 92.09 MB / 0.698 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.298e-06/3.1, allocations: 0 / 1.742 GB, free: 92.09 MB / 0.698 GB Notification: Performance of matching and sorting (n=111) (initialization): time 0.001921/3.102, allocations: 1.321 MB / 1.743 GB, free: 91.96 MB / 0.698 GB Notification: Performance of prepare postOptimizeDAE: time 0.0004174/3.102, allocations: 2.41 MB / 1.745 GB, free: 89.51 MB / 0.698 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.045e-05/3.102, allocations: 3.875 kB / 1.745 GB, free: 89.51 MB / 0.698 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.001405/3.104, allocations: 0.5226 MB / 1.746 GB, free: 89.5 MB / 0.698 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.00119/3.105, allocations: 244.9 kB / 1.746 GB, free: 89.5 MB / 0.698 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001009/3.106, allocations: 1.095 MB / 1.747 GB, free: 88.96 MB / 0.698 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001875/3.108, allocations: 248.8 kB / 1.747 GB, free: 88.93 MB / 0.698 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001052/3.108, allocations: 60.3 kB / 1.748 GB, free: 88.93 MB / 0.698 GB Notification: Performance of prepare postOptimizeDAE: time 8.927e-06/3.108, allocations: 5.281 kB / 1.748 GB, free: 88.93 MB / 0.698 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.001645/3.109, allocations: 1.163 MB / 1.749 GB, free: 88.9 MB / 0.698 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.474e-06/3.109, allocations: 6.594 kB / 1.749 GB, free: 88.9 MB / 0.698 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.00122/3.111, allocations: 0.5045 MB / 1.749 GB, free: 88.89 MB / 0.698 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.00113/3.112, allocations: 233.6 kB / 1.749 GB, free: 88.89 MB / 0.698 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0009717/3.113, allocations: 1.095 MB / 1.75 GB, free: 88.36 MB / 0.698 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001736/3.115, allocations: 223.5 kB / 1.751 GB, free: 88.33 MB / 0.698 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.469e-05/3.115, allocations: 57.03 kB / 1.751 GB, free: 88.33 MB / 0.698 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.0002666/3.115, allocations: 168.1 kB / 1.751 GB, free: 88.22 MB / 0.698 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002087/3.115, allocations: 145.7 kB / 1.751 GB, free: 88.15 MB / 0.698 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002162/3.117, allocations: 1.354 MB / 1.752 GB, free: 88.05 MB / 0.698 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.025e-05/3.117, allocations: 7.844 kB / 1.752 GB, free: 88.05 MB / 0.698 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.238e-06/3.117, allocations: 0 / 1.752 GB, free: 88.05 MB / 0.698 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.001472/3.119, allocations: 1.126 MB / 1.753 GB, free: 87.86 MB / 0.698 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003871/3.123, allocations: 3.005 MB / 1.756 GB, free: 87.45 MB / 0.698 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.33e-06/3.123, allocations: 2.812 kB / 1.756 GB, free: 87.45 MB / 0.698 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001024/3.124, allocations: 185.2 kB / 1.757 GB, free: 87.45 MB / 0.698 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.001242/3.125, allocations: 499.4 kB / 1.757 GB, free: 87.44 MB / 0.698 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.231e-05/3.125, allocations: 40.02 kB / 1.757 GB, free: 87.44 MB / 0.698 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0009464/3.126, allocations: 1.07 MB / 1.758 GB, free: 86.91 MB / 0.698 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.593e-06/3.126, allocations: 3.781 kB / 1.758 GB, free: 86.91 MB / 0.698 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001665/3.128, allocations: 1.38 MB / 1.759 GB, free: 86.55 MB / 0.698 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0006214/3.128, allocations: 424.6 kB / 1.76 GB, free: 86.38 MB / 0.698 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001807/3.129, allocations: 16.16 kB / 1.76 GB, free: 86.38 MB / 0.698 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001585/3.13, allocations: 170.9 kB / 1.76 GB, free: 86.38 MB / 0.698 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.635e-05/3.13, allocations: 50.45 kB / 1.76 GB, free: 86.38 MB / 0.698 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.838e-05/3.13, allocations: 55.02 kB / 1.76 GB, free: 86.38 MB / 0.698 GB Notification: Performance of sorting global known variables: time 0.0009881/3.131, allocations: 0.9023 MB / 1.761 GB, free: 86.26 MB / 0.698 GB Notification: Performance of sort global known variables: time 1.6e-07/3.131, allocations: 2.625 kB / 1.761 GB, free: 86.26 MB / 0.698 GB Notification: Performance of remove unused functions: time 0.00249/3.134, allocations: 1.081 MB / 1.762 GB, free: 86.21 MB / 0.698 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.003864/3.138, allocations: 3.271 MB / 1.765 GB, free: 85.04 MB / 0.698 GB Notification: Performance of simCode: created initialization part: time 0.00247/3.14, allocations: 1.649 MB / 1.767 GB, free: 84.98 MB / 0.698 GB Notification: Performance of simCode: created event and clocks part: time 4.679e-06/3.14, allocations: 2.25 kB / 1.767 GB, free: 84.98 MB / 0.698 GB Notification: Performance of simCode: created simulation system equations: time 0.0007558/3.141, allocations: 0.5065 MB / 1.767 GB, free: 84.98 MB / 0.698 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002998/3.144, allocations: 0.7735 MB / 1.768 GB, free: 84.97 MB / 0.698 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003842/3.148, allocations: 2.37 MB / 1.77 GB, free: 84.36 MB / 0.698 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005739/3.148, allocations: 1.302 MB / 1.772 GB, free: 83.64 MB / 0.698 GB Notification: Performance of simCode: alias equations: time 0.00186/3.15, allocations: 488 kB / 1.772 GB, free: 83.63 MB / 0.698 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0006385/3.151, allocations: 0.5927 MB / 1.773 GB, free: 83.62 MB / 0.698 GB Notification: Performance of SimCode: time 8.21e-07/3.151, allocations: 2 kB / 1.773 GB, free: 83.62 MB / 0.698 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.07865/3.23, allocations: 59.79 MB / 1.831 GB, free: 81.18 MB / 0.698 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001467/3.23, allocations: 238.6 kB / 1.831 GB, free: 80.88 MB / 0.698 GB Notification: Performance of buildModelFMU: Generate platform static: time 3.79/7.02, allocations: 2.531 kB / 1.831 GB, free: 80.88 MB / 0.698 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)