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.9206/0.9206, 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.001282/0.001282, allocations: 176.8 kB / 182.2 MB, free: 9.434 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.547/1.547, allocations: 221.5 MB / 436.4 MB, free: 13.27 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.0009685/0.0009684, allocations: 88.11 kB / 0.5074 GB, free: 10.09 MB / 410.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/NcDataReader2 2.5.1-master/package.mo): time 0.001766/0.001767, allocations: 272.7 kB / 0.5889 GB, free: 54.64 MB / 410.7 MB Notification: Performance of FrontEnd - loaded program: time 2.685e-05/2.689e-05, allocations: 11.98 kB / 0.6766 GB, free: 12.7 MB / 458.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.5081/0.5082, allocations: 82.76 MB / 0.7575 GB, free: 31.89 MB / 458.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.8567/1.365, allocations: 380.6 MB / 1.129 GB, free: 0.8242 MB / 0.6667 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002885/1.365, allocations: 92.27 kB / 1.129 GB, free: 0.7812 MB / 0.6667 GB Notification: Performance of FrontEnd - DAE generated: time 11.8/13.17, allocations: 2.776 GB / 3.905 GB, free: 33.97 MB / 0.823 GB Notification: Performance of FrontEnd: time 1.813e-06/13.17, allocations: 2.5 kB / 3.905 GB, free: 33.97 MB / 0.823 GB Notification: Performance of Transformations before backend: time 0.000926/13.17, allocations: 166 kB / 3.905 GB, free: 33.95 MB / 0.823 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.01833/13.19, allocations: 5.917 MB / 3.911 GB, free: 30.97 MB / 0.823 GB Notification: Performance of prepare preOptimizeDAE: time 5.373e-05/13.19, allocations: 8.938 kB / 3.911 GB, free: 30.97 MB / 0.823 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.005119/13.19, allocations: 0.7792 MB / 3.912 GB, free: 30.6 MB / 0.823 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.1276/13.32, allocations: 60.46 MB / 3.971 GB, free: 26.76 MB / 0.823 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001999/13.32, allocations: 129.4 kB / 3.971 GB, free: 26.76 MB / 0.823 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001124/13.32, allocations: 256.4 kB / 3.971 GB, free: 26.75 MB / 0.823 GB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.006622/13.33, allocations: 2.521 MB / 3.974 GB, free: 26.73 MB / 0.823 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.008042/13.34, allocations: 3.606 MB / 3.977 GB, free: 25.92 MB / 0.823 GB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001027/13.34, allocations: 11.75 kB / 3.977 GB, free: 25.91 MB / 0.823 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.000433/13.34, allocations: 12.34 kB / 3.977 GB, free: 25.91 MB / 0.823 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001348/13.34, allocations: 115.7 kB / 3.977 GB, free: 25.91 MB / 0.823 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.04148/13.38, allocations: 23.39 MB / 4 GB, free: 11.44 MB / 0.823 GB Notification: Performance of preOpt comSubExp (simulation): time 0.003744/13.38, allocations: 2.853 MB / 4.003 GB, free: 10.25 MB / 0.823 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.001727/13.39, allocations: 0.9929 MB / 4.004 GB, free: 10.24 MB / 0.823 GB Notification: Performance of preOpt evalFunc (simulation): time 0.003662/13.39, allocations: 3.935 MB / 4.008 GB, free: 21.83 MB / 0.8386 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 8.428e-05/13.39, allocations: 65.31 kB / 4.008 GB, free: 21.79 MB / 0.8386 GB Notification: Performance of pre-optimization done (n=225): time 5.15e-06/13.39, allocations: 0 / 4.008 GB, free: 21.79 MB / 0.8386 GB Notification: Performance of matching and sorting (n=225): time 0.008956/13.4, allocations: 2.887 MB / 4.011 GB, free: 21.34 MB / 0.8386 GB Notification: Performance of inlineWhenForInitialization (initialization): time 6.131e-05/13.4, allocations: 78.53 kB / 4.011 GB, free: 21.28 MB / 0.8386 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.009451/13.41, allocations: 3.276 MB / 4.014 GB, free: 20.98 MB / 0.8386 GB Notification: Performance of collectPreVariables (initialization): time 0.0008947/13.41, allocations: 32.64 kB / 4.014 GB, free: 20.95 MB / 0.8386 GB Notification: Performance of collectInitialEqns (initialization): time 0.002533/13.41, allocations: 2.776 MB / 4.017 GB, free: 19.89 MB / 0.8386 GB Notification: Performance of collectInitialBindings (initialization): time 0.001362/13.41, allocations: 0.7564 MB / 4.017 GB, free: 19.29 MB / 0.8386 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001131/13.41, allocations: 0 / 4.017 GB, free: 19.29 MB / 0.8386 GB Notification: Performance of setup shared object (initialization): time 0.0002352/13.41, allocations: 405.4 kB / 4.018 GB, free: 18.95 MB / 0.8386 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001166/13.41, allocations: 0.7329 MB / 4.018 GB, free: 18.64 MB / 0.8386 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001676/13.42, allocations: 1.7 MB / 4.02 GB, free: 17.06 MB / 0.8386 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0037/13.42, allocations: 1.373 MB / 4.021 GB, free: 16.56 MB / 0.8386 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.419e-05/13.42, allocations: 6.594 kB / 4.021 GB, free: 16.56 MB / 0.8386 GB Notification: Performance of matching and sorting (n=341) (initialization): time 0.009256/13.43, allocations: 3.467 MB / 4.025 GB, free: 15.29 MB / 0.8386 GB Notification: Performance of prepare postOptimizeDAE: time 0.005168/13.43, allocations: 10.31 MB / 4.035 GB, free: 4.277 MB / 0.8386 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.376e-05/13.43, allocations: 19.47 kB / 4.035 GB, free: 4.277 MB / 0.8386 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0008531/13.44, allocations: 353.1 kB / 4.035 GB, free: 4.16 MB / 0.8386 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002182/13.44, allocations: 0.5256 MB / 4.036 GB, free: 4.105 MB / 0.8386 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002606/13.44, allocations: 2.753 MB / 4.038 GB, free: 1.723 MB / 0.8386 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.007135/13.45, allocations: 0.5025 MB / 4.039 GB, free: 1.555 MB / 0.8386 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0008016/13.45, allocations: 133.9 kB / 4.039 GB, free: 1.531 MB / 0.8386 GB Notification: Performance of prepare postOptimizeDAE: time 1.767e-05/13.45, allocations: 3.781 kB / 4.039 GB, free: 1.531 MB / 0.8386 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.009251/13.46, allocations: 2.746 MB / 4.042 GB, free: 0.6016 MB / 0.8386 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001188/13.46, allocations: 21.53 kB / 4.042 GB, free: 0.6016 MB / 0.8386 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.001157/13.46, allocations: 354.8 kB / 4.042 GB, free: 0.5 MB / 0.8386 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002325/13.46, allocations: 0.528 MB / 4.043 GB, free: 452 kB / 0.8386 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01056/13.47, allocations: 7.405 MB / 4.05 GB, free: 10.03 MB / 0.8542 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.007178/13.48, allocations: 464.3 kB / 4.05 GB, free: 9.898 MB / 0.8542 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0009098/13.48, allocations: 123.4 kB / 4.05 GB, free: 9.879 MB / 0.8542 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 () * 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.00171/13.48, allocations: 189.3 kB / 4.051 GB, free: 9.711 MB / 0.8542 GB Notification: Performance of postOpt createAliasVarsForOutputStates (simulation): time 0.01111/13.49, allocations: 2.752 MB / 4.053 GB, free: 8.637 MB / 0.8542 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.002707/13.5, allocations: 0.4995 MB / 4.054 GB, free: 8.379 MB / 0.8542 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01185/13.51, allocations: 3.757 MB / 4.057 GB, free: 6.949 MB / 0.8542 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.615e-05/13.51, allocations: 38.28 kB / 4.057 GB, free: 6.945 MB / 0.8542 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.836e-05/13.51, allocations: 0 / 4.057 GB, free: 6.945 MB / 0.8542 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.007186/13.51, allocations: 2.636 MB / 4.06 GB, free: 4.719 MB / 0.8542 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 postOpt removeSimpleEquations (simulation): time 0.02734/13.54, allocations: 8.108 MB / 4.068 GB, free: 14.14 MB / 0.8698 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.047e-05/13.54, allocations: 3.938 kB / 4.068 GB, free: 14.13 MB / 0.8698 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001797/13.54, allocations: 386.6 kB / 4.068 GB, free: 13.81 MB / 0.8698 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0005338/13.54, allocations: 225.9 kB / 4.069 GB, free: 13.6 MB / 0.8698 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.000339/13.54, allocations: 35.45 kB / 4.069 GB, free: 13.57 MB / 0.8698 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002148/13.55, allocations: 2.512 MB / 4.071 GB, free: 11.01 MB / 0.8698 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.215e-06/13.55, allocations: 3 kB / 4.071 GB, free: 11.01 MB / 0.8698 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01233/13.56, allocations: 4.717 MB / 4.076 GB, free: 6.621 MB / 0.8698 GB Notification: Performance of postOpt removeConstants (simulation): time 0.005249/13.56, allocations: 0.9803 MB / 4.077 GB, free: 5.781 MB / 0.8698 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.00239/13.57, allocations: 11.94 kB / 4.077 GB, free: 5.77 MB / 0.8698 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.006919/13.57, allocations: 397.3 kB / 4.077 GB, free: 5.488 MB / 0.8698 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0005031/13.57, allocations: 154 kB / 4.077 GB, free: 5.395 MB / 0.8698 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0006052/13.58, allocations: 116.5 kB / 4.077 GB, free: 5.305 MB / 0.8698 GB Notification: Performance of sorting global known variables: time 0.008996/13.58, allocations: 2.43 MB / 4.08 GB, free: 3.133 MB / 0.8698 GB Notification: Performance of sort global known variables: time 7.21e-07/13.58, allocations: 0 / 4.08 GB, free: 3.133 MB / 0.8698 GB Notification: Performance of remove unused functions: time 0.9622/14.55, allocations: 3.449 MB / 4.083 GB, free: 79.25 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 () * 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.01977/14.57, allocations: 8.567 MB / 4.091 GB, free: 77.09 MB / 0.8698 GB Notification: Performance of simCode: created initialization part: time 0.007834/14.57, allocations: 4.233 MB / 4.095 GB, free: 76.57 MB / 0.8698 GB Notification: Performance of simCode: created event and clocks part: time 1.169e-05/14.57, allocations: 3.75 kB / 4.095 GB, free: 76.57 MB / 0.8698 GB Notification: Performance of simCode: created simulation system equations: time 0.002008/14.58, allocations: 1.233 MB / 4.097 GB, free: 76.55 MB / 0.8698 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.01641/14.59, allocations: 2.641 MB / 4.099 GB, free: 76.53 MB / 0.8698 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0237/14.62, allocations: 8.322 MB / 4.107 GB, free: 74.52 MB / 0.8698 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.002496/14.62, allocations: 2.994 MB / 4.11 GB, free: 73.71 MB / 0.8698 GB Notification: Performance of simCode: alias equations: time 0.008179/14.63, allocations: 1.497 MB / 4.112 GB, free: 73.67 MB / 0.8698 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.003616/14.63, allocations: 2.441 MB / 4.114 GB, free: 73.67 MB / 0.8698 GB Notification: Performance of SimCode: time 1.092e-06/14.63, allocations: 0 / 4.114 GB, free: 73.67 MB / 0.8698 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.3034/14.93, allocations: 161.3 MB / 4.272 GB, free: 62.37 MB / 0.8698 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002156/14.93, allocations: 180.4 kB / 4.272 GB, free: 62.18 MB / 0.8698 GB Notification: Performance of buildModelFMU: Generate platform static: time 8.541/23.48, allocations: 4 kB / 4.272 GB, free: 62.17 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)