Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr BuildingSystems_BuildingSystems.Fluid.Interfaces.Examples.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.Interfaces.Examples.HeaterCooler_u,fileNamePrefix="BuildingSystems_BuildingSystems_Fluid_Interfaces_Examples_HeaterCooler_u",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(BuildingSystems.Fluid.Interfaces.Examples.HeaterCooler_u,fileNamePrefix="BuildingSystems_BuildingSystems_Fluid_Interfaces_Examples_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.8543/0.8543, allocations: 143.4 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.001801/0.001801, allocations: 183.9 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.577/1.577, allocations: 223.2 MB / 447.7 MB, free: 4.828 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.001075/0.001075, allocations: 84.39 kB / 0.5187 GB, free: 1.195 MB / 410.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/NcDataReader2 2.5.1-master/package.mo): time 0.002151/0.002151, allocations: 275.2 kB / 0.6005 GB, free: 48.75 MB / 410.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0004467/0.0004467, allocations: 11.97 kB / 0.6929 GB, free: 59.61 MB / 442.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1917/0.1922, allocations: 82.8 MB / 0.7738 GB, free: 13.75 MB / 458.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.8392/1.031, allocations: 381.4 MB / 1.146 GB, free: 5.434 MB / 0.7136 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003944/1.032, allocations: 101.2 kB / 1.146 GB, free: 5.379 MB / 0.7136 GB Notification: Performance of FrontEnd - DAE generated: time 12.53/13.56, allocations: 2.796 GB / 3.942 GB, free: 38.98 MB / 0.8386 GB Notification: Performance of FrontEnd: time 3.547e-06/13.56, allocations: 0.9844 kB / 3.942 GB, free: 38.98 MB / 0.8386 GB Notification: Performance of Transformations before backend: time 0.001327/13.57, allocations: 165.5 kB / 3.943 GB, free: 38.95 MB / 0.8386 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 1035 * Number of variables: 1035 Notification: Performance of Generate backend data structure: time 0.03202/13.6, allocations: 7.153 MB / 3.95 GB, free: 35.43 MB / 0.8386 GB Notification: Performance of prepare preOptimizeDAE: time 7.165e-05/13.6, allocations: 17.47 kB / 3.95 GB, free: 35.43 MB / 0.8386 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.003427/13.6, allocations: 0.537 MB / 3.95 GB, free: 35.38 MB / 0.8386 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.005868/13.61, allocations: 0.7814 MB / 3.951 GB, free: 35 MB / 0.8386 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.1415/13.75, allocations: 60.91 MB / 4.01 GB, free: 31.16 MB / 0.8386 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0004449/13.75, allocations: 321.5 kB / 4.011 GB, free: 31.14 MB / 0.8386 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001754/13.75, allocations: 427 kB / 4.011 GB, free: 31.14 MB / 0.8386 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01127/13.76, allocations: 4.269 MB / 4.015 GB, free: 30.3 MB / 0.8386 GB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001541/13.76, allocations: 10.25 kB / 4.015 GB, free: 30.3 MB / 0.8386 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0005727/13.76, allocations: 175.1 kB / 4.015 GB, free: 30.3 MB / 0.8386 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.000159/13.76, allocations: 121.1 kB / 4.016 GB, free: 30.3 MB / 0.8386 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.007071/13.77, allocations: 2.903 MB / 4.018 GB, free: 30.2 MB / 0.8386 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.04792/13.82, allocations: 24.06 MB / 4.042 GB, free: 15.48 MB / 0.8386 GB Notification: Performance of preOpt comSubExp (simulation): time 0.004793/13.82, allocations: 2.959 MB / 4.045 GB, free: 14.28 MB / 0.8386 GB Notification: Performance of preOpt evalFunc (simulation): time 0.003146/13.83, allocations: 3.937 MB / 4.049 GB, free: 9.848 MB / 0.8386 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001088/13.83, allocations: 66.38 kB / 4.049 GB, free: 9.809 MB / 0.8386 GB Notification: Performance of pre-optimization done (n=225): time 8.416e-06/13.83, allocations: 0 / 4.049 GB, free: 9.809 MB / 0.8386 GB Notification: Performance of matching and sorting (n=225): time 0.01335/13.84, allocations: 4.107 MB / 4.053 GB, free: 8.93 MB / 0.8386 GB Notification: Performance of inlineWhenForInitialization (initialization): time 5.724e-05/13.84, allocations: 77.03 kB / 4.053 GB, free: 8.859 MB / 0.8386 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.01258/13.85, allocations: 3.664 MB / 4.056 GB, free: 8.297 MB / 0.8386 GB Notification: Performance of collectPreVariables (initialization): time 0.0009778/13.85, allocations: 77.02 kB / 4.056 GB, free: 8.234 MB / 0.8386 GB Notification: Performance of collectInitialEqns (initialization): time 0.003904/13.86, allocations: 2.774 MB / 4.059 GB, free: 6.051 MB / 0.8386 GB Notification: Performance of collectInitialBindings (initialization): time 0.001725/13.86, allocations: 0.7837 MB / 4.06 GB, free: 5.422 MB / 0.8386 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0005301/13.86, allocations: 54.22 kB / 4.06 GB, free: 5.379 MB / 0.8386 GB Notification: Performance of setup shared object (initialization): time 0.0003467/13.86, allocations: 402.9 kB / 4.06 GB, free: 5.035 MB / 0.8386 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002184/13.86, allocations: 0.8026 MB / 4.061 GB, free: 4.734 MB / 0.8386 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.003055/13.87, allocations: 1.806 MB / 4.063 GB, free: 3.168 MB / 0.8386 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.002572/13.87, allocations: 1.101 MB / 4.064 GB, free: 2.637 MB / 0.8386 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.909e-05/13.87, allocations: 6.031 kB / 4.064 GB, free: 2.637 MB / 0.8386 GB Notification: Performance of matching and sorting (n=341) (initialization): time 0.009927/13.88, allocations: 3.367 MB / 4.067 GB, free: 1.195 MB / 0.8386 GB Notification: Performance of prepare postOptimizeDAE: time 0.005653/13.88, allocations: 10.34 MB / 4.077 GB, free: 6.195 MB / 0.8542 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.608e-05/13.88, allocations: 21.22 kB / 4.077 GB, free: 6.195 MB / 0.8542 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.001521/13.89, allocations: 414.1 kB / 4.078 GB, free: 6.055 MB / 0.8542 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002637/13.89, allocations: 0.5246 MB / 4.078 GB, free: 6 MB / 0.8542 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003023/13.89, allocations: 2.696 MB / 4.081 GB, free: 3.633 MB / 0.8542 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.008664/13.9, allocations: 0.5611 MB / 4.081 GB, free: 3.418 MB / 0.8542 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001155/13.9, allocations: 138.3 kB / 4.082 GB, free: 3.391 MB / 0.8542 GB Notification: Performance of prepare postOptimizeDAE: time 2.88e-05/13.9, allocations: 3.719 kB / 4.082 GB, free: 3.391 MB / 0.8542 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.009365/13.91, allocations: 2.798 MB / 4.084 GB, free: 2.258 MB / 0.8542 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001035/13.91, allocations: 23.59 kB / 4.084 GB, free: 2.258 MB / 0.8542 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.00118/13.91, allocations: 382.1 kB / 4.085 GB, free: 2.152 MB / 0.8542 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002384/13.91, allocations: 0.5316 MB / 4.085 GB, free: 2.09 MB / 0.8542 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01189/13.93, allocations: 7.785 MB / 4.093 GB, free: 11.31 MB / 0.8698 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.008086/13.93, allocations: 0.5335 MB / 4.093 GB, free: 11.12 MB / 0.8698 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001054/13.94, allocations: 124.3 kB / 4.093 GB, free: 11.1 MB / 0.8698 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 97 * Number of states: 0 () * Number of discrete variables: 0 () * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (299): * Single equations (assignments): 295 * 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: 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 12,1 9,1 12,1 9} Notification: Performance of prepare postOptimizeDAE: time 0.005785/13.94, allocations: 0.993 MB / 4.094 GB, free: 10.45 MB / 0.8698 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.003344/13.94, allocations: 0.5078 MB / 4.095 GB, free: 10.18 MB / 0.8698 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0134/13.96, allocations: 3.795 MB / 4.099 GB, free: 7.973 MB / 0.8698 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.0001477/13.96, allocations: 43.14 kB / 4.099 GB, free: 7.941 MB / 0.8698 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.751e-05/13.96, allocations: 0 / 4.099 GB, free: 7.941 MB / 0.8698 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.006557/13.96, allocations: 2.621 MB / 4.101 GB, free: 5.527 MB / 0.8698 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 postOpt removeSimpleEquations (simulation): time 1.006/14.97, allocations: 8.56 MB / 4.11 GB, free: 67.74 MB / 0.8698 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.712e-05/14.97, allocations: 0.7188 kB / 4.11 GB, free: 67.74 MB / 0.8698 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001666/14.97, allocations: 388.1 kB / 4.11 GB, free: 67.74 MB / 0.8698 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0008361/14.97, allocations: 307.7 kB / 4.11 GB, free: 67.71 MB / 0.8698 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0002299/14.97, allocations: 68.34 kB / 4.11 GB, free: 67.71 MB / 0.8698 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001877/14.98, allocations: 2.494 MB / 4.113 GB, free: 65.65 MB / 0.8698 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.689e-06/14.98, allocations: 2.031 kB / 4.113 GB, free: 65.65 MB / 0.8698 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01092/14.99, allocations: 4.758 MB / 4.117 GB, free: 65.17 MB / 0.8698 GB Notification: Performance of postOpt removeConstants (simulation): time 0.006677/14.99, allocations: 0.9919 MB / 4.118 GB, free: 65.01 MB / 0.8698 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.002918/15, allocations: 48.81 kB / 4.118 GB, free: 65.01 MB / 0.8698 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.007336/15, allocations: 438.2 kB / 4.119 GB, free: 65 MB / 0.8698 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0008233/15, allocations: 157.6 kB / 4.119 GB, free: 64.99 MB / 0.8698 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0004978/15, allocations: 112.6 kB / 4.119 GB, free: 64.99 MB / 0.8698 GB Notification: Performance of sorting global known variables: time 0.01079/15.02, allocations: 2.799 MB / 4.122 GB, free: 64.81 MB / 0.8698 GB Notification: Performance of sort global known variables: time 5.21e-07/15.02, allocations: 0.6562 kB / 4.122 GB, free: 64.81 MB / 0.8698 GB Notification: Performance of remove unused functions: time 0.02474/15.04, allocations: 3.598 MB / 4.125 GB, free: 64.63 MB / 0.8698 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 4 * Number of states: 10 (hea1.vol.dynBal.U,hea2.vol.dynBal.U,hea3.vol.dynBal.U,hea4.vol.dynBal.U,mix1.dynBal.U,hea5.vol.dynBal.U,hea6.vol.dynBal.U,hea7.vol.dynBal.U,hea8.vol.dynBal.U,mix2.dynBal.U) * Number of discrete variables: 0 () * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (227): * Single equations (assignments): 189 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 34 * 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 9,1 7,1 9,1 7} Notification: Performance of Backend phase and start with SimCode phase: time 0.02637/15.07, allocations: 8.626 MB / 4.134 GB, free: 62.2 MB / 0.8698 GB Notification: Performance of simCode: created initialization part: time 0.01136/15.08, allocations: 4.434 MB / 4.138 GB, free: 61.65 MB / 0.8698 GB Notification: Performance of simCode: created event and clocks part: time 1.614e-05/15.08, allocations: 4.906 kB / 4.138 GB, free: 61.65 MB / 0.8698 GB Notification: Performance of simCode: created simulation system equations: time 0.003295/15.08, allocations: 1.317 MB / 4.139 GB, free: 61.63 MB / 0.8698 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.01932/15.1, allocations: 2.743 MB / 4.142 GB, free: 61.61 MB / 0.8698 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.1025/15.2, allocations: 50.65 MB / 4.192 GB, free: 27.89 MB / 0.8698 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.005984/15.21, allocations: 2.988 MB / 4.194 GB, free: 27.09 MB / 0.8698 GB Notification: Performance of simCode: alias equations: time 0.00923/15.22, allocations: 1.211 MB / 4.196 GB, free: 27.05 MB / 0.8698 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.00663/15.23, allocations: 2.538 MB / 4.198 GB, free: 27.05 MB / 0.8698 GB Notification: Performance of SimCode: time 1.172e-06/15.23, allocations: 0 / 4.198 GB, free: 27.05 MB / 0.8698 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.34/15.57, allocations: 173.4 MB / 4.367 GB, free: 7.008 MB / 0.8698 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.00021/15.57, allocations: 264.7 kB / 4.368 GB, free: 6.648 MB / 0.8698 GB Notification: Performance of buildModelFMU: Generate platform static: time 9.221/24.79, allocations: 1.203 kB / 4.368 GB, free: 6.648 MB / 0.8698 GB (rm -f BuildingSystems_BuildingSystems.Fluid.Interfaces.Examples.HeaterCooler_u.pipe ; mkfifo BuildingSystems_BuildingSystems.Fluid.Interfaces.Examples.HeaterCooler_u.pipe ; head -c 1048576 < BuildingSystems_BuildingSystems.Fluid.Interfaces.Examples.HeaterCooler_u.pipe >> ../files/BuildingSystems_BuildingSystems.Fluid.Interfaces.Examples.HeaterCooler_u.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator --tempDir=temp_BuildingSystems_BuildingSystems_Fluid_Interfaces_Examples_HeaterCooler_u_fmu --startTime=0 --stopTime=3600 --timeout=50 --tolerance=1e-06 BuildingSystems_BuildingSystems_Fluid_Interfaces_Examples_HeaterCooler_u.fmu > BuildingSystems_BuildingSystems.Fluid.Interfaces.Examples.HeaterCooler_u.pipe 2>&1)