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: "" <> buildModelFMU(BuildingSystems.Fluid.HeatExchangers.Validation.HeaterCooler_u,fileNamePrefix="BuildingSystems_BuildingSystems_Fluid_HeatExchangers_Validation_HeaterCooler_u",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(BuildingSystems.Fluid.HeatExchangers.Validation.HeaterCooler_u,fileNamePrefix="BuildingSystems_BuildingSystems_Fluid_HeatExchangers_Validation_HeaterCooler_u",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.9317/0.9317, allocations: 143.4 MB / 158.3 MB, free: 5.773 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.001464/0.001464, allocations: 177.1 kB / 191.5 MB, free: 5.758 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.503/1.503, allocations: 223.2 MB / 447.7 MB, free: 6.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.001023/0.001023, allocations: 88.33 kB / 0.5187 GB, free: 2.941 MB / 410.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/NcDataReader2 2.5.1-master/package.mo): time 0.001973/0.001973, allocations: 265.9 kB / 0.6005 GB, free: 48.98 MB / 410.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0004456/0.0004458, allocations: 12 kB / 0.6929 GB, free: 2.219 MB / 458.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.4306/0.4311, allocations: 82.77 MB / 0.7738 GB, free: 26.2 MB / 458.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 4.774/5.205, allocations: 1.892 GB / 2.666 GB, free: 91.66 MB / 0.698 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002649/5.206, allocations: 96.81 kB / 2.666 GB, free: 91.61 MB / 0.698 GB Notification: Performance of FrontEnd - DAE generated: time 3.897/9.103, allocations: 1.051 GB / 3.716 GB, free: 94.38 MB / 0.7136 GB Notification: Performance of FrontEnd: time 2.264e-06/9.103, allocations: 2.953 kB / 3.716 GB, free: 94.38 MB / 0.7136 GB Notification: Performance of Transformations before backend: time 0.0001512/9.103, allocations: 53.08 kB / 3.716 GB, free: 94.37 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: 294 * Number of variables: 294 Notification: Performance of Generate backend data structure: time 0.005027/9.108, allocations: 2.375 MB / 3.719 GB, free: 93.07 MB / 0.7136 GB Notification: Performance of prepare preOptimizeDAE: time 4.531e-05/9.108, allocations: 9.812 kB / 3.719 GB, free: 93.07 MB / 0.7136 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0002875/9.108, allocations: 177.4 kB / 3.719 GB, free: 93.03 MB / 0.7136 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.00372/9.112, allocations: 0.6281 MB / 3.719 GB, free: 92.92 MB / 0.7136 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.003007/9.115, allocations: 1.441 MB / 3.721 GB, free: 92.48 MB / 0.7136 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0003316/9.115, allocations: 155 kB / 3.721 GB, free: 92.48 MB / 0.7136 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001865/9.115, allocations: 132.4 kB / 3.721 GB, free: 92.48 MB / 0.7136 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002369/9.118, allocations: 1.458 MB / 3.723 GB, free: 92.27 MB / 0.7136 GB Notification: Performance of preOpt findStateOrder (simulation): time 2.91e-05/9.118, allocations: 3.938 kB / 3.723 GB, free: 92.26 MB / 0.7136 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001108/9.118, allocations: 58.36 kB / 3.723 GB, free: 92.26 MB / 0.7136 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.214e-05/9.118, allocations: 38.94 kB / 3.723 GB, free: 92.25 MB / 0.7136 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002359/9.12, allocations: 1.249 MB / 3.724 GB, free: 92.23 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.007903/9.128, allocations: 5.877 MB / 3.73 GB, free: 88.84 MB / 0.7136 GB Notification: Performance of preOpt comSubExp (simulation): time 0.001757/9.13, allocations: 1.159 MB / 3.731 GB, free: 88.29 MB / 0.7136 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0004965/9.131, allocations: 318.5 kB / 3.731 GB, free: 88 MB / 0.7136 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001043/9.132, allocations: 0.635 MB / 3.732 GB, free: 87.75 MB / 0.7136 GB Notification: Performance of pre-optimization done (n=87): time 3.456e-06/9.132, allocations: 0 / 3.732 GB, free: 87.75 MB / 0.7136 GB Notification: Performance of matching and sorting (n=95): time 0.01076/9.142, allocations: 4.42 MB / 3.736 GB, free: 84.82 MB / 0.7136 GB Notification: Performance of inlineWhenForInitialization (initialization): time 6.029e-05/9.143, allocations: 195.7 kB / 3.736 GB, free: 84.59 MB / 0.7136 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001589/9.144, allocations: 1.159 MB / 3.737 GB, free: 83.43 MB / 0.7136 GB Notification: Performance of collectPreVariables (initialization): time 0.000112/9.144, allocations: 49.7 kB / 3.737 GB, free: 83.37 MB / 0.7136 GB Notification: Performance of collectInitialEqns (initialization): time 0.0005298/9.145, allocations: 0.7273 MB / 3.738 GB, free: 82.64 MB / 0.7136 GB Notification: Performance of collectInitialBindings (initialization): time 0.0002382/9.145, allocations: 324.9 kB / 3.738 GB, free: 82.32 MB / 0.7136 GB Notification: Performance of simplifyInitialFunctions (initialization): time 5.075e-05/9.145, allocations: 16 kB / 3.738 GB, free: 82.31 MB / 0.7136 GB Notification: Performance of setup shared object (initialization): time 7.41e-05/9.145, allocations: 345.9 kB / 3.739 GB, free: 81.96 MB / 0.7136 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0008751/9.146, allocations: 487.2 kB / 3.739 GB, free: 81.5 MB / 0.7136 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001026/9.147, allocations: 0.7103 MB / 3.74 GB, free: 80.7 MB / 0.7136 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.01112/9.158, allocations: 2.537 MB / 3.742 GB, free: 78.14 MB / 0.7136 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.688e-06/9.158, allocations: 0 / 3.742 GB, free: 78.14 MB / 0.7136 GB Notification: Performance of matching and sorting (n=114) (initialization): time 0.004642/9.163, allocations: 1.831 MB / 3.744 GB, free: 76.29 MB / 0.7136 GB Notification: Performance of prepare postOptimizeDAE: time 0.0002985/9.163, allocations: 1.3 MB / 3.745 GB, free: 74.87 MB / 0.7136 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.206e-05/9.163, allocations: 4 kB / 3.745 GB, free: 74.87 MB / 0.7136 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.00115/9.164, allocations: 448.5 kB / 3.746 GB, free: 74.43 MB / 0.7136 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0007704/9.165, allocations: 179.7 kB / 3.746 GB, free: 74.25 MB / 0.7136 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.007666/9.173, allocations: 7.208 MB / 3.753 GB, free: 66.63 MB / 0.7136 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002056/9.175, allocations: 147.8 kB / 3.753 GB, free: 66.49 MB / 0.7136 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001122/9.175, allocations: 39.98 kB / 3.753 GB, free: 66.45 MB / 0.7136 GB Notification: Performance of prepare postOptimizeDAE: time 1.079e-05/9.175, allocations: 5.406 kB / 3.753 GB, free: 66.45 MB / 0.7136 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.003788/9.179, allocations: 1.672 MB / 3.755 GB, free: 64.75 MB / 0.7136 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.563e-06/9.179, allocations: 3.984 kB / 3.755 GB, free: 64.75 MB / 0.7136 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.00105/9.18, allocations: 462.5 kB / 3.755 GB, free: 64.3 MB / 0.7136 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0006817/9.181, allocations: 171.8 kB / 3.755 GB, free: 64.13 MB / 0.7136 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.007757/9.188, allocations: 8.213 MB / 3.763 GB, free: 55.39 MB / 0.7136 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002053/9.191, allocations: 151.7 kB / 3.764 GB, free: 55.24 MB / 0.7136 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001285/9.191, allocations: 40.36 kB / 3.764 GB, free: 55.2 MB / 0.7136 GB Warning: The initial conditions are over specified. The following 1 initial equations are redundant, so they are removed from the initialization sytem: $DER.heaDyn.vol.dynBal.medium.p = 0.0. 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 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (86): * Single equations (assignments): 81 * 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 11,1 4,1 4} Notification: Performance of prepare postOptimizeDAE: time 0.001081/9.192, allocations: 0.5062 MB / 3.764 GB, free: 54.68 MB / 0.7136 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003064/9.192, allocations: 166 kB / 3.764 GB, free: 54.51 MB / 0.7136 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.00388/9.196, allocations: 1.683 MB / 3.766 GB, free: 52.8 MB / 0.7136 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.594e-06/9.196, allocations: 8 kB / 3.766 GB, free: 52.79 MB / 0.7136 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.136e-06/9.196, allocations: 0 / 3.766 GB, free: 52.79 MB / 0.7136 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.00323/9.199, allocations: 1.528 MB / 3.767 GB, free: 51.22 MB / 0.7136 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.00674/9.206, allocations: 3.548 MB / 3.771 GB, free: 47.56 MB / 0.7136 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.504e-06/9.206, allocations: 4.5 kB / 3.771 GB, free: 47.56 MB / 0.7136 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0008929/9.207, allocations: 195.8 kB / 3.771 GB, free: 47.37 MB / 0.7136 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0005962/9.208, allocations: 240.8 kB / 3.771 GB, free: 47.14 MB / 0.7136 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.293e-05/9.208, allocations: 35.98 kB / 3.771 GB, free: 47.1 MB / 0.7136 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.003322/9.211, allocations: 2.707 MB / 3.774 GB, free: 44.23 MB / 0.7136 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.312e-06/9.211, allocations: 7.938 kB / 3.774 GB, free: 44.22 MB / 0.7136 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.004996/9.216, allocations: 2.707 MB / 3.777 GB, free: 41.33 MB / 0.7136 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0008837/9.217, allocations: 367 kB / 3.777 GB, free: 40.95 MB / 0.7136 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002271/9.217, allocations: 28 kB / 3.777 GB, free: 40.92 MB / 0.7136 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001239/9.218, allocations: 139.8 kB / 3.777 GB, free: 40.79 MB / 0.7136 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.000145/9.219, allocations: 76.47 kB / 3.777 GB, free: 40.71 MB / 0.7136 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.792e-05/9.219, allocations: 47.48 kB / 3.777 GB, free: 40.67 MB / 0.7136 GB Notification: Performance of sorting global known variables: time 0.001277/9.22, allocations: 0.906 MB / 3.778 GB, free: 39.77 MB / 0.7136 GB Notification: Performance of sort global known variables: time 1.51e-07/9.22, allocations: 0 / 3.778 GB, free: 39.77 MB / 0.7136 GB Notification: Performance of remove unused functions: time 0.00349/9.223, allocations: 1.025 MB / 3.779 GB, free: 38.74 MB / 0.7136 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.Xi[1],heaDyn.vol.dynBal.medium.T,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) * Number of clocked states: 0 () * 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.007901/9.231, allocations: 6.523 MB / 3.786 GB, free: 32.3 MB / 0.7136 GB Notification: Performance of simCode: created initialization part: time 0.004361/9.236, allocations: 2.951 MB / 3.788 GB, free: 29.25 MB / 0.7136 GB Notification: Performance of simCode: created event and clocks part: time 6.532e-06/9.236, allocations: 4.062 kB / 3.788 GB, free: 29.24 MB / 0.7136 GB Notification: Performance of simCode: created simulation system equations: time 0.001163/9.237, allocations: 0.7953 MB / 3.789 GB, free: 28.43 MB / 0.7136 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.00373/9.241, allocations: 0.8773 MB / 3.79 GB, free: 27.57 MB / 0.7136 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01701/9.258, allocations: 12.82 MB / 3.803 GB, free: 14.24 MB / 0.7136 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0007286/9.258, allocations: 1.387 MB / 3.804 GB, free: 12.82 MB / 0.7136 GB Notification: Performance of simCode: alias equations: time 0.001503/9.26, allocations: 347.5 kB / 3.804 GB, free: 12.5 MB / 0.7136 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000667/9.261, allocations: 0.6282 MB / 3.805 GB, free: 11.87 MB / 0.7136 GB Notification: Performance of SimCode: time 1.031e-06/9.261, allocations: 0 / 3.805 GB, free: 11.87 MB / 0.7136 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.5642/9.825, allocations: 84.22 MB / 3.887 GB, free: 107.6 MB / 0.7292 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001639/9.825, allocations: 274 kB / 3.887 GB, free: 107.2 MB / 0.7292 GB Notification: Performance of buildModelFMU: Generate platform static: time 4.817/14.64, allocations: 0 / 3.887 GB, free: 107.2 MB / 0.7292 GB (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 & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator --tempDir=temp_BuildingSystems_BuildingSystems_Fluid_HeatExchangers_Validation_HeaterCooler_u_fmu --startTime=0 --stopTime=1200 --timeout=50 --tolerance=1e-06 BuildingSystems_BuildingSystems_Fluid_HeatExchangers_Validation_HeaterCooler_u.fmu > BuildingSystems_BuildingSystems.Fluid.HeatExchangers.Validation.HeaterCooler_u.pipe 2>&1)