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.6891/0.6891, allocations: 141.7 MB / 154.3 MB, free: 15.49 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.0009397/0.0009396, allocations: 188 kB / 187.3 MB, free: 11.88 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.224/1.224, allocations: 221.3 MB / 441.4 MB, free: 4.59 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.0008672/0.0008673, allocations: 90.91 kB / 0.5124 GB, free: 24.22 MB / 394.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/NcDataReader2 2.5.1-master/package.mo): time 0.00166/0.00166, allocations: 275.4 kB / 0.5939 GB, free: 7.941 MB / 442.7 MB Notification: Performance of FrontEnd - loaded program: time 3.153e-05/3.155e-05, allocations: 11.98 kB / 0.6835 GB, free: 12.12 MB / 0.5261 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3523/0.3523, allocations: 82.76 MB / 0.7644 GB, free: 108.7 MB / 0.5261 GB Notification: Performance of FrontEnd - scodeFlatten: time 3.649/4.002, allocations: 1.892 GB / 2.656 GB, free: 154.8 MB / 0.698 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.000231/4.002, allocations: 87.95 kB / 2.656 GB, free: 154.7 MB / 0.698 GB Notification: Performance of FrontEnd - DAE generated: time 3.22/7.222, allocations: 1.05 GB / 3.706 GB, free: 98.15 MB / 0.7136 GB Notification: Performance of FrontEnd: time 1.193e-06/7.222, allocations: 0 / 3.706 GB, free: 98.15 MB / 0.7136 GB Notification: Performance of Transformations before backend: time 0.0001366/7.223, allocations: 47.12 kB / 3.706 GB, free: 98.14 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.003441/7.226, allocations: 2.064 MB / 3.708 GB, free: 97.18 MB / 0.7136 GB Notification: Performance of prepare preOptimizeDAE: time 3.828e-05/7.226, allocations: 13.72 kB / 3.708 GB, free: 97.18 MB / 0.7136 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001838/7.226, allocations: 174.6 kB / 3.708 GB, free: 97.14 MB / 0.7136 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.003419/7.23, allocations: 0.6271 MB / 3.709 GB, free: 97.04 MB / 0.7136 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002679/7.232, allocations: 1.433 MB / 3.71 GB, free: 96.68 MB / 0.7136 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0003327/7.233, allocations: 152.8 kB / 3.71 GB, free: 96.68 MB / 0.7136 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001921/7.233, allocations: 124.8 kB / 3.71 GB, free: 96.68 MB / 0.7136 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001951/7.235, allocations: 1.349 MB / 3.712 GB, free: 96.47 MB / 0.7136 GB Notification: Performance of preOpt findStateOrder (simulation): time 2.638e-05/7.235, allocations: 2.938 kB / 3.712 GB, free: 96.47 MB / 0.7136 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.000109/7.235, allocations: 53.55 kB / 3.712 GB, free: 96.47 MB / 0.7136 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.716e-05/7.235, allocations: 38.59 kB / 3.712 GB, free: 96.46 MB / 0.7136 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001505/7.237, allocations: 1.05 MB / 3.713 GB, free: 96.45 MB / 0.7136 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.006905/7.243, allocations: 5.874 MB / 3.718 GB, free: 94.08 MB / 0.7136 GB Notification: Performance of preOpt comSubExp (simulation): time 0.001102/7.245, allocations: 0.9758 MB / 3.719 GB, free: 93.86 MB / 0.7136 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0005872/7.245, allocations: 489.6 kB / 3.72 GB, free: 93.84 MB / 0.7136 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0004622/7.246, allocations: 311.6 kB / 3.72 GB, free: 93.56 MB / 0.7136 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0007015/7.246, allocations: 0.5395 MB / 3.721 GB, free: 93.48 MB / 0.7136 GB Notification: Performance of pre-optimization done (n=87): time 2.766e-06/7.246, allocations: 2.844 kB / 3.721 GB, free: 93.48 MB / 0.7136 GB Notification: Performance of matching and sorting (n=95): time 0.006108/7.253, allocations: 3.046 MB / 3.724 GB, free: 92.72 MB / 0.7136 GB Notification: Performance of inlineWhenForInitialization (initialization): time 6.059e-05/7.253, allocations: 197.5 kB / 3.724 GB, free: 92.5 MB / 0.7136 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001394/7.254, allocations: 1.148 MB / 3.725 GB, free: 92.34 MB / 0.7136 GB Notification: Performance of collectPreVariables (initialization): time 8.237e-05/7.254, allocations: 44.11 kB / 3.725 GB, free: 92.31 MB / 0.7136 GB Notification: Performance of collectInitialEqns (initialization): time 0.000484/7.255, allocations: 0.716 MB / 3.726 GB, free: 92.09 MB / 0.7136 GB Notification: Performance of collectInitialBindings (initialization): time 0.000211/7.255, allocations: 323.5 kB / 3.726 GB, free: 91.88 MB / 0.7136 GB Notification: Performance of simplifyInitialFunctions (initialization): time 5.044e-05/7.255, allocations: 17.06 kB / 3.726 GB, free: 91.88 MB / 0.7136 GB Notification: Performance of setup shared object (initialization): time 7.856e-05/7.255, allocations: 343.7 kB / 3.726 GB, free: 91.58 MB / 0.7136 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0005225/7.255, allocations: 389.1 kB / 3.727 GB, free: 91.58 MB / 0.7136 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0006659/7.256, allocations: 0.6172 MB / 3.727 GB, free: 91.34 MB / 0.7136 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.009631/7.266, allocations: 2.368 MB / 3.73 GB, free: 91.16 MB / 0.7136 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.218e-06/7.266, allocations: 0 / 3.73 GB, free: 91.16 MB / 0.7136 GB Notification: Performance of matching and sorting (n=114) (initialization): time 0.003643/7.269, allocations: 1.659 MB / 3.731 GB, free: 90.95 MB / 0.7136 GB Notification: Performance of prepare postOptimizeDAE: time 0.0002426/7.27, allocations: 1.298 MB / 3.732 GB, free: 89.59 MB / 0.7136 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.135e-05/7.27, allocations: 9.875 kB / 3.732 GB, free: 89.59 MB / 0.7136 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0009362/7.271, allocations: 413.6 kB / 3.733 GB, free: 89.56 MB / 0.7136 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0006566/7.271, allocations: 168 kB / 3.733 GB, free: 89.56 MB / 0.7136 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.006164/7.278, allocations: 6.911 MB / 3.74 GB, free: 85.1 MB / 0.7136 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001646/7.279, allocations: 141.3 kB / 3.74 GB, free: 85.09 MB / 0.7136 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.076e-05/7.279, allocations: 39.84 kB / 3.74 GB, free: 85.09 MB / 0.7136 GB Notification: Performance of prepare postOptimizeDAE: time 8.126e-06/7.279, allocations: 3.625 kB / 3.74 GB, free: 85.09 MB / 0.7136 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.003066/7.282, allocations: 1.509 MB / 3.741 GB, free: 85 MB / 0.7136 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.402e-06/7.282, allocations: 3.594 kB / 3.741 GB, free: 85 MB / 0.7136 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0008976/7.283, allocations: 411 kB / 3.742 GB, free: 84.96 MB / 0.7136 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0006416/7.284, allocations: 174.5 kB / 3.742 GB, free: 84.96 MB / 0.7136 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.006508/7.291, allocations: 7.895 MB / 3.75 GB, free: 79.61 MB / 0.7136 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001669/7.292, allocations: 148.1 kB / 3.75 GB, free: 79.6 MB / 0.7136 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001321/7.292, allocations: 43.42 kB / 3.75 GB, free: 79.6 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 () * 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.0003309/7.293, allocations: 196 kB / 3.75 GB, free: 79.46 MB / 0.7136 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.000387/7.293, allocations: 175.4 kB / 3.75 GB, free: 79.37 MB / 0.7136 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003257/7.296, allocations: 1.457 MB / 3.752 GB, free: 79.23 MB / 0.7136 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.833e-06/7.296, allocations: 7.656 kB / 3.752 GB, free: 79.23 MB / 0.7136 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.506e-06/7.296, allocations: 0 / 3.752 GB, free: 79.23 MB / 0.7136 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.002391/7.299, allocations: 1.315 MB / 3.753 GB, free: 79.01 MB / 0.7136 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.005773/7.305, allocations: 3.344 MB / 3.756 GB, free: 78.41 MB / 0.7136 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.504e-06/7.305, allocations: 9.531 kB / 3.756 GB, free: 78.41 MB / 0.7136 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0008424/7.305, allocations: 186.5 kB / 3.756 GB, free: 78.41 MB / 0.7136 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0004098/7.306, allocations: 202 kB / 3.757 GB, free: 78.39 MB / 0.7136 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.059e-05/7.306, allocations: 34.11 kB / 3.757 GB, free: 78.39 MB / 0.7136 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002129/7.308, allocations: 2.5 MB / 3.759 GB, free: 76.61 MB / 0.7136 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.078e-06/7.308, allocations: 5.562 kB / 3.759 GB, free: 76.61 MB / 0.7136 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.003513/7.312, allocations: 2.4 MB / 3.761 GB, free: 75.61 MB / 0.7136 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0007831/7.312, allocations: 364.6 kB / 3.762 GB, free: 75.36 MB / 0.7136 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.000343/7.313, allocations: 34.31 kB / 3.762 GB, free: 75.34 MB / 0.7136 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001377/7.314, allocations: 135.1 kB / 3.762 GB, free: 75.32 MB / 0.7136 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001228/7.314, allocations: 72.31 kB / 3.762 GB, free: 75.31 MB / 0.7136 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.141e-05/7.314, allocations: 41.38 kB / 3.762 GB, free: 75.3 MB / 0.7136 GB Notification: Performance of sorting global known variables: time 0.001277/7.316, allocations: 0.8965 MB / 3.763 GB, free: 74.94 MB / 0.7136 GB Notification: Performance of sort global known variables: time 1.4e-07/7.316, allocations: 0 / 3.763 GB, free: 74.94 MB / 0.7136 GB Notification: Performance of remove unused functions: time 0.003566/7.319, allocations: 1.017 MB / 3.764 GB, free: 74.75 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.X[2],heaDyn.vol.dynBal.medium.dT,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) * 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.006771/7.326, allocations: 6.233 MB / 3.77 GB, free: 71.05 MB / 0.7136 GB Notification: Performance of simCode: created initialization part: time 0.003346/7.329, allocations: 2.705 MB / 3.773 GB, free: 69.42 MB / 0.7136 GB Notification: Performance of simCode: created event and clocks part: time 7.574e-06/7.329, allocations: 4 kB / 3.773 GB, free: 69.42 MB / 0.7136 GB Notification: Performance of simCode: created simulation system equations: time 0.0008362/7.33, allocations: 0.7089 MB / 3.773 GB, free: 69.06 MB / 0.7136 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.004003/7.334, allocations: 0.8666 MB / 3.774 GB, free: 68.89 MB / 0.7136 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00645/7.341, allocations: 2.995 MB / 3.777 GB, free: 67.69 MB / 0.7136 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0008143/7.342, allocations: 1.396 MB / 3.778 GB, free: 66.93 MB / 0.7136 GB Notification: Performance of simCode: alias equations: time 0.002105/7.344, allocations: 492.3 kB / 3.779 GB, free: 66.88 MB / 0.7136 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0006504/7.344, allocations: 0.6099 MB / 3.78 GB, free: 66.39 MB / 0.7136 GB Notification: Performance of SimCode: time 1.623e-06/7.344, allocations: 0 / 3.78 GB, free: 66.39 MB / 0.7136 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.1159/7.46, allocations: 92.05 MB / 3.869 GB, free: 2.059 MB / 0.7292 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001832/7.46, allocations: 235.2 kB / 3.87 GB, free: 1.75 MB / 0.7292 GB Notification: Performance of buildModelFMU: Generate platform static: time 4.689/12.15, allocations: 6.719 kB / 3.87 GB, free: 1.746 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)