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.6754/0.6754, allocations: 141.7 MB / 154.3 MB, free: 15.48 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.0008928/0.0008928, allocations: 176.7 kB / 187.3 MB, free: 11.89 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.218/1.218, allocations: 221.3 MB / 441.4 MB, free: 4.594 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.0008402/0.0008402, allocations: 96.64 kB / 0.5124 GB, free: 24.27 MB / 394.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/NcDataReader2 2.5.1-master/package.mo): time 0.001614/0.001614, allocations: 272.8 kB / 0.5939 GB, free: 7.98 MB / 442.7 MB Notification: Performance of FrontEnd - loaded program: time 3.511e-05/3.513e-05, allocations: 11.98 kB / 0.6835 GB, free: 12.17 MB / 0.5261 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3527/0.3527, allocations: 82.76 MB / 0.7644 GB, free: 108.7 MB / 0.5261 GB Notification: Performance of FrontEnd - scodeFlatten: time 0.6623/1.015, allocations: 381.3 MB / 1.137 GB, free: 9.398 MB / 0.6667 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.00024/1.015, allocations: 90.31 kB / 1.137 GB, free: 9.355 MB / 0.6667 GB Notification: Performance of FrontEnd - DAE generated: time 8.966/9.982, allocations: 2.788 GB / 3.924 GB, free: 40.61 MB / 0.8386 GB Notification: Performance of FrontEnd: time 1.553e-06/9.982, allocations: 0 / 3.924 GB, free: 40.61 MB / 0.8386 GB Notification: Performance of Transformations before backend: time 0.000586/9.982, allocations: 168.6 kB / 3.924 GB, free: 40.58 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.01433/9.997, allocations: 5.914 MB / 3.93 GB, free: 37.61 MB / 0.8386 GB Notification: Performance of prepare preOptimizeDAE: time 5.756e-05/9.997, allocations: 8.938 kB / 3.93 GB, free: 37.61 MB / 0.8386 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.001691/9.999, allocations: 0.5314 MB / 3.931 GB, free: 37.55 MB / 0.8386 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.003127/10, allocations: 0.7783 MB / 3.932 GB, free: 37.18 MB / 0.8386 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.1068/10.11, allocations: 60.62 MB / 3.991 GB, free: 33.38 MB / 0.8386 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002173/10.11, allocations: 320.2 kB / 3.991 GB, free: 33.36 MB / 0.8386 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.000644/10.11, allocations: 426.9 kB / 3.991 GB, free: 33.36 MB / 0.8386 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.006334/10.12, allocations: 4.19 MB / 3.996 GB, free: 32.53 MB / 0.8386 GB Notification: Performance of preOpt findStateOrder (simulation): time 8.25e-05/10.12, allocations: 14.5 kB / 3.996 GB, free: 32.52 MB / 0.8386 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0003663/10.12, allocations: 174.5 kB / 3.996 GB, free: 32.52 MB / 0.8386 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001318/10.12, allocations: 126.4 kB / 3.996 GB, free: 32.51 MB / 0.8386 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.004638/10.12, allocations: 2.782 MB / 3.999 GB, free: 32.42 MB / 0.8386 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.02358/10.14, allocations: 24.06 MB / 4.022 GB, free: 17.8 MB / 0.8386 GB Notification: Performance of preOpt comSubExp (simulation): time 0.002267/10.15, allocations: 2.905 MB / 4.025 GB, free: 16.61 MB / 0.8386 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.001138/10.15, allocations: 1.053 MB / 4.026 GB, free: 16.59 MB / 0.8386 GB Notification: Performance of preOpt evalFunc (simulation): time 0.002109/10.15, allocations: 3.931 MB / 4.03 GB, free: 12.16 MB / 0.8386 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.545e-05/10.15, allocations: 63.22 kB / 4.03 GB, free: 12.12 MB / 0.8386 GB Notification: Performance of pre-optimization done (n=225): time 4.678e-06/10.15, allocations: 0 / 4.03 GB, free: 12.12 MB / 0.8386 GB Notification: Performance of matching and sorting (n=225): time 0.004588/10.15, allocations: 2.575 MB / 4.032 GB, free: 11.64 MB / 0.8386 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.331e-05/10.15, allocations: 73.84 kB / 4.032 GB, free: 11.58 MB / 0.8386 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.004837/10.16, allocations: 3.59 MB / 4.036 GB, free: 11.25 MB / 0.8386 GB Notification: Performance of collectPreVariables (initialization): time 0.0003519/10.16, allocations: 79.05 kB / 4.036 GB, free: 11.22 MB / 0.8386 GB Notification: Performance of collectInitialEqns (initialization): time 0.001524/10.16, allocations: 2.788 MB / 4.039 GB, free: 9.598 MB / 0.8386 GB Notification: Performance of collectInitialBindings (initialization): time 0.0005979/10.16, allocations: 0.7791 MB / 4.039 GB, free: 8.973 MB / 0.8386 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001037/10.16, allocations: 50.56 kB / 4.04 GB, free: 8.934 MB / 0.8386 GB Notification: Performance of setup shared object (initialization): time 0.0001138/10.16, allocations: 411.3 kB / 4.04 GB, free: 8.586 MB / 0.8386 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001075/10.16, allocations: 0.7624 MB / 4.041 GB, free: 8.285 MB / 0.8386 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001548/10.17, allocations: 1.763 MB / 4.042 GB, free: 6.715 MB / 0.8386 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.001315/10.17, allocations: 1.074 MB / 4.043 GB, free: 6.266 MB / 0.8386 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.149e-05/10.17, allocations: 10.8 kB / 4.043 GB, free: 6.262 MB / 0.8386 GB Notification: Performance of matching and sorting (n=341) (initialization): time 0.005169/10.17, allocations: 3.293 MB / 4.047 GB, free: 4.906 MB / 0.8386 GB Notification: Performance of prepare postOptimizeDAE: time 0.002373/10.17, allocations: 10.34 MB / 4.057 GB, free: 9.902 MB / 0.8542 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.343e-05/10.17, allocations: 24.97 kB / 4.057 GB, free: 9.898 MB / 0.8542 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0008721/10.17, allocations: 393.6 kB / 4.057 GB, free: 9.777 MB / 0.8542 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001569/10.18, allocations: 0.5327 MB / 4.058 GB, free: 9.719 MB / 0.8542 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001878/10.18, allocations: 2.672 MB / 4.06 GB, free: 7.375 MB / 0.8542 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.005131/10.18, allocations: 0.5689 MB / 4.061 GB, free: 7.156 MB / 0.8542 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002396/10.18, allocations: 128.4 kB / 4.061 GB, free: 7.133 MB / 0.8542 GB Notification: Performance of prepare postOptimizeDAE: time 1.144e-05/10.18, allocations: 3.688 kB / 4.061 GB, free: 7.133 MB / 0.8542 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.004255/10.19, allocations: 2.728 MB / 4.064 GB, free: 6.082 MB / 0.8542 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.05e-05/10.19, allocations: 27.06 kB / 4.064 GB, free: 6.082 MB / 0.8542 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0008607/10.19, allocations: 381.3 kB / 4.064 GB, free: 5.973 MB / 0.8542 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001467/10.19, allocations: 0.5307 MB / 4.065 GB, free: 5.91 MB / 0.8542 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.007612/10.2, allocations: 7.69 MB / 4.072 GB, free: 15.2 MB / 0.8698 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.005402/10.2, allocations: 0.5163 MB / 4.073 GB, free: 15.02 MB / 0.8698 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.000418/10.2, allocations: 128.2 kB / 4.073 GB, free: 14.99 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 () * 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.0007357/10.2, allocations: 287.3 kB / 4.073 GB, free: 14.75 MB / 0.8698 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001237/10.21, allocations: 0.5101 MB / 4.073 GB, free: 14.48 MB / 0.8698 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.005994/10.21, allocations: 3.728 MB / 4.077 GB, free: 12.95 MB / 0.8698 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.597e-05/10.21, allocations: 35 kB / 4.077 GB, free: 12.94 MB / 0.8698 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.31e-06/10.21, allocations: 3.938 kB / 4.077 GB, free: 12.94 MB / 0.8698 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.003414/10.22, allocations: 2.535 MB / 4.08 GB, free: 11.28 MB / 0.8698 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.01456/10.23, allocations: 8.511 MB / 4.088 GB, free: 4.094 MB / 0.8698 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.567e-06/10.23, allocations: 0 / 4.088 GB, free: 4.094 MB / 0.8698 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001391/10.23, allocations: 384 kB / 4.088 GB, free: 3.77 MB / 0.8698 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0006856/10.23, allocations: 300 kB / 4.089 GB, free: 3.5 MB / 0.8698 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001379/10.23, allocations: 62.52 kB / 4.089 GB, free: 3.445 MB / 0.8698 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001588/10.23, allocations: 2.503 MB / 4.091 GB, free: 0.8828 MB / 0.8698 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.854e-06/10.23, allocations: 0 / 4.091 GB, free: 0.8828 MB / 0.8698 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.6257/10.86, allocations: 4.642 MB / 4.096 GB, free: 69.98 MB / 0.8698 GB Notification: Performance of postOpt removeConstants (simulation): time 0.00427/10.86, allocations: 0.992 MB / 4.097 GB, free: 69.81 MB / 0.8698 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.001095/10.87, allocations: 49.33 kB / 4.097 GB, free: 69.81 MB / 0.8698 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.003621/10.87, allocations: 443.2 kB / 4.097 GB, free: 69.79 MB / 0.8698 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002991/10.87, allocations: 151.1 kB / 4.097 GB, free: 69.79 MB / 0.8698 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002671/10.87, allocations: 118.2 kB / 4.097 GB, free: 69.79 MB / 0.8698 GB Notification: Performance of sorting global known variables: time 0.004604/10.87, allocations: 2.73 MB / 4.1 GB, free: 69.58 MB / 0.8698 GB Notification: Performance of sort global known variables: time 4.91e-07/10.87, allocations: 1.312 kB / 4.1 GB, free: 69.58 MB / 0.8698 GB Notification: Performance of remove unused functions: time 0.01284/10.89, allocations: 3.589 MB / 4.103 GB, free: 69.4 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.01117/10.9, allocations: 8.51 MB / 4.112 GB, free: 66.96 MB / 0.8698 GB Notification: Performance of simCode: created initialization part: time 0.00657/10.9, allocations: 4.494 MB / 4.116 GB, free: 66.38 MB / 0.8698 GB Notification: Performance of simCode: created event and clocks part: time 6.783e-06/10.9, allocations: 3.875 kB / 4.116 GB, free: 66.38 MB / 0.8698 GB Notification: Performance of simCode: created simulation system equations: time 0.001587/10.91, allocations: 1.291 MB / 4.117 GB, free: 66.36 MB / 0.8698 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0134/10.92, allocations: 2.736 MB / 4.12 GB, free: 66.34 MB / 0.8698 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01751/10.94, allocations: 8.554 MB / 4.128 GB, free: 64.3 MB / 0.8698 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001959/10.94, allocations: 2.994 MB / 4.131 GB, free: 63.5 MB / 0.8698 GB Notification: Performance of simCode: alias equations: time 0.006435/10.95, allocations: 1.522 MB / 4.133 GB, free: 63.45 MB / 0.8698 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.002492/10.95, allocations: 2.444 MB / 4.135 GB, free: 63.45 MB / 0.8698 GB Notification: Performance of SimCode: time 8.32e-07/10.95, allocations: 0 / 4.135 GB, free: 63.45 MB / 0.8698 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.2646/11.21, allocations: 184 MB / 4.315 GB, free: 45.11 MB / 0.8698 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001724/11.21, allocations: 237.4 kB / 4.315 GB, free: 44.79 MB / 0.8698 GB Notification: Performance of buildModelFMU: Generate platform static: time 7.878/19.09, allocations: 0 / 4.315 GB, free: 44.79 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)