Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr BuildingSystems_BuildingSystems.Fluid.Examples.FlowSystem.Simplified5.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.Examples.FlowSystem.Simplified5,fileNamePrefix="BuildingSystems_BuildingSystems_Fluid_Examples_FlowSystem_Simplified5",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(BuildingSystems.Fluid.Examples.FlowSystem.Simplified5,fileNamePrefix="BuildingSystems_BuildingSystems_Fluid_Examples_FlowSystem_Simplified5",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.6782/0.6782, 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.0008886/0.0008886, allocations: 180.1 kB / 187.3 MB, free: 11.87 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.196/1.196, allocations: 221.3 MB / 441.4 MB, free: 4.648 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.0008656/0.0008653, allocations: 88.69 kB / 0.5124 GB, free: 24.17 MB / 394.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/NcDataReader2 2.5.1-master/package.mo): time 0.001606/0.001606, allocations: 270.9 kB / 0.5939 GB, free: 7.961 MB / 442.7 MB Notification: Performance of FrontEnd - loaded program: time 2.92e-05/2.922e-05, allocations: 7.938 kB / 0.6835 GB, free: 12.15 MB / 0.5261 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3437/0.3437, allocations: 82.76 MB / 0.7644 GB, free: 108.7 MB / 0.5261 GB Notification: Performance of FrontEnd - scodeFlatten: time 0.6681/1.012, allocations: 423.2 MB / 1.178 GB, free: 232 kB / 0.698 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002203/1.012, allocations: 102.2 kB / 1.178 GB, free: 180 kB / 0.698 GB Notification: Performance of FrontEnd - DAE generated: time 37.95/38.97, allocations: 10.46 GB / 11.64 GB, free: 71.62 MB / 0.9636 GB Notification: Performance of FrontEnd: time 2.194e-06/38.97, allocations: 0 / 11.64 GB, free: 71.62 MB / 0.9636 GB Notification: Performance of Transformations before backend: time 0.002518/38.97, allocations: 352.8 kB / 11.64 GB, free: 71.56 MB / 0.9636 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 1521 * Number of variables: 1521 Notification: Performance of Generate backend data structure: time 0.04124/39.01, allocations: 11.17 MB / 11.65 GB, free: 66.61 MB / 0.9636 GB Notification: Performance of prepare preOptimizeDAE: time 4.755e-05/39.01, allocations: 11.91 kB / 11.65 GB, free: 66.61 MB / 0.9636 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.004235/39.02, allocations: 0.779 MB / 11.65 GB, free: 66.53 MB / 0.9636 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.01403/39.03, allocations: 2.23 MB / 11.66 GB, free: 65.74 MB / 0.9636 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.05855/39.09, allocations: 18.67 MB / 11.67 GB, free: 63.57 MB / 0.9636 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0009534/39.09, allocations: 0.528 MB / 11.67 GB, free: 63.56 MB / 0.9636 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.00422/39.09, allocations: 0.7112 MB / 11.68 GB, free: 63.56 MB / 0.9636 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.02968/39.12, allocations: 13.08 MB / 11.69 GB, free: 62.94 MB / 0.9636 GB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001652/39.12, allocations: 12.53 kB / 11.69 GB, free: 62.94 MB / 0.9636 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.001602/39.12, allocations: 244.7 kB / 11.69 GB, free: 62.94 MB / 0.9636 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001171/39.12, allocations: 155.8 kB / 11.69 GB, free: 62.93 MB / 0.9636 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.02639/39.15, allocations: 17.54 MB / 11.71 GB, free: 62.89 MB / 0.9636 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.1186/39.27, allocations: 70.11 MB / 11.77 GB, free: 30.52 MB / 0.9636 GB Notification: Performance of preOpt comSubExp (simulation): time 0.01346/39.28, allocations: 9.448 MB / 11.78 GB, free: 30.34 MB / 0.9636 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.01131/39.29, allocations: 8.444 MB / 11.79 GB, free: 30.26 MB / 0.9636 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 evalFunc (simulation): time 0.06107/39.36, allocations: 29.51 MB / 11.82 GB, free: 14.39 MB / 0.9636 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0126/39.37, allocations: 8.107 MB / 11.83 GB, free: 11.44 MB / 0.9636 GB Notification: Performance of preOpt simplifyInStream (simulation): time 0.0416/39.41, allocations: 15.23 MB / 11.84 GB, free: 10 MB / 0.9636 GB Notification: Performance of pre-optimization done (n=393): time 3.292e-05/39.41, allocations: 0.6562 kB / 11.84 GB, free: 10 MB / 0.9636 GB Notification: Performance of matching and sorting (n=581): time 1.048/40.46, allocations: 77.31 MB / 11.92 GB, free: 90.77 MB / 0.9792 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001104/40.46, allocations: 113.1 kB / 11.92 GB, free: 90.7 MB / 0.9792 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.02887/40.49, allocations: 11.98 MB / 11.93 GB, free: 89.98 MB / 0.9792 GB Notification: Performance of collectPreVariables (initialization): time 0.003271/40.49, allocations: 180.4 kB / 11.93 GB, free: 89.95 MB / 0.9792 GB Notification: Performance of collectInitialEqns (initialization): time 0.007206/40.5, allocations: 6.007 MB / 11.94 GB, free: 89.05 MB / 0.9792 GB Notification: Performance of collectInitialBindings (initialization): time 0.004052/40.5, allocations: 1.958 MB / 11.94 GB, free: 88.05 MB / 0.9792 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001946/40.5, allocations: 145.6 kB / 11.94 GB, free: 88.05 MB / 0.9792 GB Notification: Performance of setup shared object (initialization): time 0.0004847/40.5, allocations: 0.5935 MB / 11.94 GB, free: 87.74 MB / 0.9792 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0119/40.52, allocations: 7.802 MB / 11.95 GB, free: 87.72 MB / 0.9792 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0148/40.53, allocations: 10.39 MB / 11.96 GB, free: 84.85 MB / 0.9792 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.01569/40.55, allocations: 8.704 MB / 11.97 GB, free: 84.68 MB / 0.9792 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001451/40.55, allocations: 12.91 kB / 11.97 GB, free: 84.68 MB / 0.9792 GB Notification: Performance of matching and sorting (n=962) (initialization): time 0.05788/40.61, allocations: 26.12 MB / 11.99 GB, free: 83.67 MB / 0.9792 GB Notification: Performance of prepare postOptimizeDAE: time 0.005526/40.61, allocations: 29.65 MB / 12.02 GB, free: 52.98 MB / 0.9792 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001649/40.61, allocations: 46.62 kB / 12.02 GB, free: 52.98 MB / 0.9792 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.703/41.31, allocations: 170.4 MB / 12.19 GB, free: 33.38 MB / 0.9792 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.01032/41.32, allocations: 1.771 MB / 12.19 GB, free: 31.74 MB / 0.9792 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.04609/41.37, allocations: 26.57 MB / 12.21 GB, free: 10.56 MB / 0.9792 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.02189/41.39, allocations: 1.284 MB / 12.22 GB, free: 9.434 MB / 0.9792 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.004905/41.4, allocations: 0.8034 MB / 12.22 GB, free: 8.691 MB / 0.9792 GB Notification: Performance of prepare postOptimizeDAE: time 1.71e-05/41.4, allocations: 9.984 kB / 12.22 GB, free: 8.684 MB / 0.9792 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.05081/41.45, allocations: 25.16 MB / 12.24 GB, free: 8.43 MB / 0.9948 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0002129/41.45, allocations: 49.42 kB / 12.24 GB, free: 8.383 MB / 0.9948 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.513/42.96, allocations: 170.6 MB / 12.41 GB, free: 103.1 MB / 0.9948 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.008405/42.97, allocations: 1.754 MB / 12.41 GB, free: 103.1 MB / 0.9948 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.05058/43.02, allocations: 30.92 MB / 12.44 GB, free: 99.22 MB / 0.9948 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.01848/43.04, allocations: 1.259 MB / 12.44 GB, free: 99.16 MB / 0.9948 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.003633/43.04, allocations: 0.7556 MB / 12.44 GB, free: 99.16 MB / 0.9948 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 207 * Number of states: 0 () * Number of discrete variables: 10 ($whenCondition1,$whenCondition2,booleanToInteger.u,booleanToInteger.y,$PRE.stepPump.pulseStart,stepPump.pulseStart,$PRE.stepValve.T_start,stepValve.T_start,$PRE.stepValve.count,stepValve.count) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (662): * Single equations (assignments): 648 * Array equations: 4 * Algorithm blocks: 1 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 6 * Torn equation systems: 3 * Mixed (continuous/discrete) equation systems: 0 Notification: Equation system details: * Constant Jacobian: 0 * Linear Jacobian (size,density): 0 * Non-linear Jacobian: 6 {1,1,1,1,1,1} * Without analytic Jacobian: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 0 * Non-linear torn systems: 3 {39 57,6 79,8 77} Notification: Performance of prepare postOptimizeDAE: time 0.003657/43.05, allocations: 0.5163 MB / 12.44 GB, free: 99.05 MB / 0.9948 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.004163/43.05, allocations: 1.208 MB / 12.44 GB, free: 98.96 MB / 0.9948 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.04875/43.1, allocations: 23.37 MB / 12.47 GB, free: 98.04 MB / 0.9948 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.0001032/43.1, allocations: 72.34 kB / 12.47 GB, free: 98.04 MB / 0.9948 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.33e-05/43.1, allocations: 0 / 12.47 GB, free: 98.04 MB / 0.9948 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.03249/43.13, allocations: 17.82 MB / 12.48 GB, free: 97.4 MB / 0.9948 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.1364/43.27, allocations: 54.19 MB / 12.54 GB, free: 67.62 MB / 0.9948 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.032e-05/43.27, allocations: 11.38 kB / 12.54 GB, free: 67.61 MB / 0.9948 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.006422/43.28, allocations: 1.254 MB / 12.54 GB, free: 66.43 MB / 0.9948 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.1992/43.47, allocations: 48.88 MB / 12.58 GB, free: 18.82 MB / 0.9948 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.00165/43.48, allocations: 199.2 kB / 12.59 GB, free: 18.72 MB / 0.9948 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.02181/43.5, allocations: 14.71 MB / 12.6 GB, free: 7.246 MB / 0.9948 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.125e-05/43.5, allocations: 16.3 kB / 12.6 GB, free: 7.234 MB / 0.9948 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.8503/44.35, allocations: 32.84 MB / 12.63 GB, free: 114.7 MB / 1.01 GB Notification: Performance of postOpt removeConstants (simulation): time 0.01085/44.36, allocations: 2.959 MB / 12.63 GB, free: 114.6 MB / 1.01 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.004482/44.36, allocations: 140.7 kB / 12.63 GB, free: 114.6 MB / 1.01 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.01385/44.38, allocations: 1.002 MB / 12.64 GB, free: 114.6 MB / 1.01 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.001474/44.38, allocations: 464.1 kB / 12.64 GB, free: 114.5 MB / 1.01 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0009795/44.38, allocations: 285.6 kB / 12.64 GB, free: 114.5 MB / 1.01 GB Notification: Performance of sorting global known variables: time 0.01722/44.4, allocations: 9.127 MB / 12.65 GB, free: 114.1 MB / 1.01 GB Notification: Performance of sort global known variables: time 6.21e-07/44.4, allocations: 0 / 12.65 GB, free: 114.1 MB / 1.01 GB Notification: Performance of remove unused functions: time 0.04294/44.44, allocations: 6.602 MB / 12.65 GB, free: 114.1 MB / 1.01 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 31 * Number of states: 3 (valSouth.vol.dynBal.U,valNorth.vol.dynBal.U,heater.outCon.T) * Number of discrete variables: 7 ($whenCondition2,$whenCondition1,booleanToInteger.u,booleanToInteger.y,stepPump.pulseStart,stepValve.T_start,stepValve.count) * Number of discrete states: 1 (stepValve.count) * Top-level inputs: 0 Notification: Strong component statistics for simulation (491): * Single equations (assignments): 469 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 10 * When equations: 3 * If-equations: 0 * Equation systems (linear and non-linear blocks): 6 * Torn equation systems: 3 * Mixed (continuous/discrete) equation systems: 0 Notification: Equation system details: * Constant Jacobian: 0 * Linear Jacobian (size,density): 0 * Non-linear Jacobian: 6 {1,1,1,1,1,1} * Without analytic Jacobian: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 0 * Non-linear torn systems: 3 {5 76,37 57,8 77} Notification: Performance of Backend phase and start with SimCode phase: time 0.07399/44.51, allocations: 38.16 MB / 12.69 GB, free: 107.8 MB / 1.01 GB Notification: Performance of simCode: created initialization part: time 0.07215/44.59, allocations: 33.51 MB / 12.72 GB, free: 107.1 MB / 1.01 GB Notification: Performance of simCode: created event and clocks part: time 1.458e-05/44.59, allocations: 2.188 kB / 12.72 GB, free: 107.1 MB / 1.01 GB Notification: Performance of simCode: created simulation system equations: time 0.0189/44.61, allocations: 9.242 MB / 12.73 GB, free: 106.9 MB / 1.01 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0338/44.64, allocations: 6.206 MB / 12.74 GB, free: 106.9 MB / 1.01 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.06319/44.7, allocations: 24.63 MB / 12.76 GB, free: 102.4 MB / 1.01 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.01121/44.71, allocations: 7.225 MB / 12.77 GB, free: 101.4 MB / 1.01 GB Notification: Performance of simCode: alias equations: time 0.02986/44.74, allocations: 6.414 MB / 12.77 GB, free: 101.2 MB / 1.01 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.01031/44.75, allocations: 5.845 MB / 12.78 GB, free: 101.2 MB / 1.01 GB Notification: Performance of SimCode: time 1.483e-06/44.75, allocations: 0 / 12.78 GB, free: 101.2 MB / 1.01 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 2.085/46.84, allocations: 0.542 GB / 13.32 GB, free: 4.484 MB / 1.026 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002106/46.84, allocations: 228.4 kB / 13.32 GB, free: 4.18 MB / 1.026 GB Notification: Performance of buildModelFMU: Generate platform static: time 21.16/68, allocations: 0 / 13.32 GB, free: 4.18 MB / 1.026 GB (rm -f BuildingSystems_BuildingSystems.Fluid.Examples.FlowSystem.Simplified5.pipe ; mkfifo BuildingSystems_BuildingSystems.Fluid.Examples.FlowSystem.Simplified5.pipe ; head -c 1048576 < BuildingSystems_BuildingSystems.Fluid.Examples.FlowSystem.Simplified5.pipe >> ../files/BuildingSystems_BuildingSystems.Fluid.Examples.FlowSystem.Simplified5.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator --tempDir=temp_BuildingSystems_BuildingSystems_Fluid_Examples_FlowSystem_Simplified5_fmu --startTime=0 --stopTime=1000 --timeout=50 --tolerance=1e-06 BuildingSystems_BuildingSystems_Fluid_Examples_FlowSystem_Simplified5.fmu > BuildingSystems_BuildingSystems.Fluid.Examples.FlowSystem.Simplified5.pipe 2>&1)