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.8496/0.8496, allocations: 141.8 MB / 149.3 MB, free: 9.219 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.001102/0.001101, allocations: 180.9 kB / 182.2 MB, free: 9.453 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.449/1.449, allocations: 221.5 MB / 436.4 MB, free: 13.34 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.0008656/0.0008655, allocations: 93.78 kB / 0.5074 GB, free: 10.18 MB / 410.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/NcDataReader2 2.5.1-master/package.mo): time 0.001792/0.001792, allocations: 276.5 kB / 0.5889 GB, free: 54.66 MB / 410.7 MB Notification: Performance of FrontEnd - loaded program: time 2.364e-05/2.312e-05, allocations: 4 kB / 0.6766 GB, free: 12.73 MB / 458.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.4372/0.4372, allocations: 82.77 MB / 0.7575 GB, free: 31.93 MB / 458.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.9187/1.356, allocations: 398.3 MB / 1.146 GB, free: 15.95 MB / 0.698 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.000285/1.356, allocations: 92.19 kB / 1.146 GB, free: 15.91 MB / 0.698 GB Notification: Performance of FrontEnd - DAE generated: time 2.033/3.389, allocations: 0.5614 GB / 1.708 GB, free: 7.125 MB / 0.698 GB Notification: Performance of FrontEnd: time 2.315e-06/3.389, allocations: 0 / 1.708 GB, free: 7.125 MB / 0.698 GB Notification: Performance of Transformations before backend: time 0.0002011/3.389, allocations: 51.86 kB / 1.708 GB, free: 7.074 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.006058/3.395, allocations: 1.956 MB / 1.71 GB, free: 5.055 MB / 0.698 GB Notification: Performance of prepare preOptimizeDAE: time 6.627e-05/3.395, allocations: 12.03 kB / 1.71 GB, free: 5.043 MB / 0.698 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.005335/3.401, allocations: 0.6767 MB / 1.711 GB, free: 4.363 MB / 0.698 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.004674/3.405, allocations: 1.853 MB / 1.712 GB, free: 2.457 MB / 0.698 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001276/3.406, allocations: 92.11 kB / 1.712 GB, free: 2.359 MB / 0.698 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001839/3.406, allocations: 80 kB / 1.713 GB, free: 2.281 MB / 0.698 GB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.002309/3.408, allocations: 1.11 MB / 1.714 GB, free: 1.168 MB / 0.698 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.6486/4.057, allocations: 1.377 MB / 1.715 GB, free: 100 MB / 0.698 GB Notification: Performance of preOpt findStateOrder (simulation): time 4.503e-05/4.057, allocations: 4.969 kB / 1.715 GB, free: 100 MB / 0.698 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002158/4.057, allocations: 3.875 kB / 1.715 GB, free: 100 MB / 0.698 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001249/4.057, allocations: 57.27 kB / 1.715 GB, free: 100 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.01256/4.07, allocations: 7.271 MB / 1.722 GB, free: 96.8 MB / 0.698 GB Notification: Performance of preOpt comSubExp (simulation): time 0.001695/4.072, allocations: 0.9055 MB / 1.723 GB, free: 96.77 MB / 0.698 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0007175/4.072, allocations: 451.4 kB / 1.723 GB, free: 96.75 MB / 0.698 GB Notification: Performance of preOpt evalFunc (simulation): time 0.001148/4.073, allocations: 1.272 MB / 1.725 GB, free: 95.35 MB / 0.698 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0008383/4.074, allocations: 0.5473 MB / 1.725 GB, free: 95.29 MB / 0.698 GB Notification: Performance of pre-optimization done (n=79): time 3.236e-06/4.074, allocations: 6.75 kB / 1.725 GB, free: 95.29 MB / 0.698 GB Notification: Performance of matching and sorting (n=79): time 0.005216/4.08, allocations: 1.272 MB / 1.726 GB, free: 95.16 MB / 0.698 GB Notification: Performance of inlineWhenForInitialization (initialization): time 6.003e-05/4.08, allocations: 166 kB / 1.727 GB, free: 94.97 MB / 0.698 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001488/4.081, allocations: 0.9974 MB / 1.728 GB, free: 94.82 MB / 0.698 GB Notification: Performance of collectPreVariables (initialization): time 0.0001382/4.081, allocations: 29.67 kB / 1.728 GB, free: 94.79 MB / 0.698 GB Notification: Performance of collectInitialEqns (initialization): time 0.0006104/4.082, allocations: 0.7414 MB / 1.728 GB, free: 94.56 MB / 0.698 GB Notification: Performance of collectInitialBindings (initialization): time 0.0002468/4.082, allocations: 267.3 kB / 1.729 GB, free: 94.43 MB / 0.698 GB Notification: Performance of simplifyInitialFunctions (initialization): time 6.05e-05/4.082, allocations: 0 / 1.729 GB, free: 94.43 MB / 0.698 GB Notification: Performance of setup shared object (initialization): time 9.248e-05/4.082, allocations: 342.8 kB / 1.729 GB, free: 94.12 MB / 0.698 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0005363/4.083, allocations: 370.4 kB / 1.729 GB, free: 94.12 MB / 0.698 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0006802/4.084, allocations: 0.6611 MB / 1.73 GB, free: 93.79 MB / 0.698 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.001869/4.085, allocations: 0.5494 MB / 1.73 GB, free: 93.78 MB / 0.698 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.124e-06/4.085, allocations: 3.062 kB / 1.73 GB, free: 93.78 MB / 0.698 GB Notification: Performance of matching and sorting (n=111) (initialization): time 0.003237/4.089, allocations: 1.369 MB / 1.732 GB, free: 93.65 MB / 0.698 GB Notification: Performance of prepare postOptimizeDAE: time 0.0005722/4.089, allocations: 2.389 MB / 1.734 GB, free: 91.2 MB / 0.698 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.399e-05/4.089, allocations: 8.719 kB / 1.734 GB, free: 91.2 MB / 0.698 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0009774/4.09, allocations: 436.8 kB / 1.735 GB, free: 91.19 MB / 0.698 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001286/4.092, allocations: 244.4 kB / 1.735 GB, free: 91.19 MB / 0.698 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001493/4.093, allocations: 1.159 MB / 1.736 GB, free: 90.65 MB / 0.698 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002283/4.095, allocations: 206.5 kB / 1.736 GB, free: 90.63 MB / 0.698 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001235/4.095, allocations: 62.16 kB / 1.736 GB, free: 90.63 MB / 0.698 GB Notification: Performance of prepare postOptimizeDAE: time 1.459e-05/4.096, allocations: 3.719 kB / 1.736 GB, free: 90.63 MB / 0.698 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.003068/4.099, allocations: 1.184 MB / 1.737 GB, free: 90.61 MB / 0.698 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.069e-05/4.099, allocations: 3.625 kB / 1.737 GB, free: 90.61 MB / 0.698 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0008821/4.1, allocations: 431.5 kB / 1.738 GB, free: 90.6 MB / 0.698 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001258/4.101, allocations: 239.7 kB / 1.738 GB, free: 90.6 MB / 0.698 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001381/4.102, allocations: 1.16 MB / 1.739 GB, free: 90.05 MB / 0.698 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002234/4.104, allocations: 190.3 kB / 1.739 GB, free: 90.04 MB / 0.698 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001122/4.105, allocations: 57 kB / 1.739 GB, free: 90.04 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.0004131/4.105, allocations: 136 kB / 1.739 GB, free: 89.93 MB / 0.698 GB Notification: Performance of postOpt createAliasVarsForOutputStates (simulation): time 0.004971/4.11, allocations: 1.27 MB / 1.741 GB, free: 89.8 MB / 0.698 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0004201/4.11, allocations: 138.2 kB / 1.741 GB, free: 89.73 MB / 0.698 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002929/4.113, allocations: 1.293 MB / 1.742 GB, free: 89.64 MB / 0.698 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.091e-05/4.113, allocations: 6.281 kB / 1.742 GB, free: 89.64 MB / 0.698 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.582e-06/4.113, allocations: 0 / 1.742 GB, free: 89.64 MB / 0.698 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.001884/4.115, allocations: 1.101 MB / 1.743 GB, free: 89.45 MB / 0.698 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.005359/4.121, allocations: 2.818 MB / 1.746 GB, free: 89.09 MB / 0.698 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.72e-06/4.121, allocations: 0 / 1.746 GB, free: 89.09 MB / 0.698 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001089/4.122, allocations: 184.4 kB / 1.746 GB, free: 89.09 MB / 0.698 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0009536/4.123, allocations: 416.4 kB / 1.747 GB, free: 89.08 MB / 0.698 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.63e-05/4.123, allocations: 29.02 kB / 1.747 GB, free: 89.07 MB / 0.698 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001774/4.125, allocations: 1.145 MB / 1.748 GB, free: 88.54 MB / 0.698 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.26e-06/4.125, allocations: 1.219 kB / 1.748 GB, free: 88.54 MB / 0.698 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002689/4.127, allocations: 1.335 MB / 1.749 GB, free: 88.21 MB / 0.698 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0009306/4.128, allocations: 409.3 kB / 1.749 GB, free: 88.04 MB / 0.698 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002156/4.128, allocations: 5.656 kB / 1.749 GB, free: 88.04 MB / 0.698 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001734/4.13, allocations: 155.4 kB / 1.75 GB, free: 88.04 MB / 0.698 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001241/4.13, allocations: 55 kB / 1.75 GB, free: 88.04 MB / 0.698 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001294/4.131, allocations: 54.94 kB / 1.75 GB, free: 88.04 MB / 0.698 GB Notification: Performance of sorting global known variables: time 0.001375/4.132, allocations: 0.7512 MB / 1.75 GB, free: 87.93 MB / 0.698 GB Notification: Performance of sort global known variables: time 2.11e-07/4.132, allocations: 2.406 kB / 1.75 GB, free: 87.93 MB / 0.698 GB Notification: Performance of remove unused functions: time 0.003506/4.135, allocations: 1.043 MB / 1.751 GB, free: 87.88 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.005166/4.141, allocations: 3.232 MB / 1.755 GB, free: 86.69 MB / 0.698 GB Notification: Performance of simCode: created initialization part: time 0.002831/4.143, allocations: 1.551 MB / 1.756 GB, free: 86.65 MB / 0.698 GB Notification: Performance of simCode: created event and clocks part: time 5.982e-06/4.143, allocations: 2.688 kB / 1.756 GB, free: 86.65 MB / 0.698 GB Notification: Performance of simCode: created simulation system equations: time 0.0007769/4.144, allocations: 499.7 kB / 1.757 GB, free: 86.64 MB / 0.698 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.00379/4.148, allocations: 0.6731 MB / 1.757 GB, free: 86.64 MB / 0.698 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.006099/4.154, allocations: 2.265 MB / 1.759 GB, free: 86.04 MB / 0.698 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0008344/4.155, allocations: 1.298 MB / 1.761 GB, free: 85.32 MB / 0.698 GB Notification: Performance of simCode: alias equations: time 0.002433/4.157, allocations: 451.7 kB / 1.761 GB, free: 85.3 MB / 0.698 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0008649/4.158, allocations: 0.605 MB / 1.762 GB, free: 85.3 MB / 0.698 GB Notification: Performance of SimCode: time 1.453e-06/4.158, allocations: 0 / 1.762 GB, free: 85.3 MB / 0.698 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.1078/4.266, allocations: 51.41 MB / 1.812 GB, free: 83.15 MB / 0.698 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002821/4.267, allocations: 186.3 kB / 1.812 GB, free: 82.96 MB / 0.698 GB Notification: Performance of buildModelFMU: Generate platform static: time 4.236/8.503, allocations: 0 / 1.812 GB, free: 82.96 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)