Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr BuildingSystems_BuildingSystems.Fluid.Examples.FlowSystem.Simplified4.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.Simplified4,fileNamePrefix="BuildingSystems_BuildingSystems_Fluid_Examples_FlowSystem_Simplified4",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(BuildingSystems.Fluid.Examples.FlowSystem.Simplified4,fileNamePrefix="BuildingSystems_BuildingSystems_Fluid_Examples_FlowSystem_Simplified4",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.8585/0.8585, allocations: 143.4 MB / 158.3 MB, free: 5.773 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.002176/0.002176, allocations: 177 kB / 191.5 MB, free: 5.762 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.658/1.658, allocations: 223.2 MB / 447.7 MB, free: 6.535 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.001425/0.001425, allocations: 92.34 kB / 0.5187 GB, free: 2.887 MB / 410.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/NcDataReader2 2.5.1-master/package.mo): time 0.002022/0.002022, allocations: 272.7 kB / 0.6005 GB, free: 48.96 MB / 410.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0004942/0.0004942, allocations: 12 kB / 0.6929 GB, free: 2.203 MB / 458.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.4755/0.476, allocations: 82.77 MB / 0.7738 GB, free: 26.2 MB / 458.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 1.439/1.915, allocations: 422.6 MB / 1.186 GB, free: 185.8 MB / 0.698 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.000347/1.915, allocations: 101.2 kB / 1.187 GB, free: 185.8 MB / 0.698 GB Notification: Performance of FrontEnd - DAE generated: time 47.23/49.14, allocations: 10.55 GB / 11.74 GB, free: 77.99 MB / 0.9948 GB Notification: Performance of FrontEnd: time 5.249e-06/49.14, allocations: 0 / 11.74 GB, free: 77.99 MB / 0.9948 GB Notification: Performance of Transformations before backend: time 0.005186/49.15, allocations: 379.1 kB / 11.74 GB, free: 77.92 MB / 0.9948 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 1775 * Number of variables: 1775 Notification: Performance of Generate backend data structure: time 0.09968/49.25, allocations: 18.77 MB / 11.76 GB, free: 70.94 MB / 0.9948 GB Notification: Performance of prepare preOptimizeDAE: time 6.051e-05/49.25, allocations: 19.33 kB / 11.76 GB, free: 70.94 MB / 0.9948 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.006952/49.26, allocations: 0.9121 MB / 11.76 GB, free: 70.86 MB / 0.9948 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.01867/49.27, allocations: 2.197 MB / 11.76 GB, free: 69.96 MB / 0.9948 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.07832/49.35, allocations: 20.34 MB / 11.78 GB, free: 67.59 MB / 0.9948 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.001649/49.35, allocations: 0.599 MB / 11.78 GB, free: 67.58 MB / 0.9948 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.007141/49.36, allocations: 0.816 MB / 11.78 GB, free: 67.57 MB / 0.9948 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.04757/49.41, allocations: 14.23 MB / 11.8 GB, free: 66.77 MB / 0.9948 GB Notification: Performance of preOpt findStateOrder (simulation): time 0.0005282/49.41, allocations: 19.12 kB / 11.8 GB, free: 66.76 MB / 0.9948 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.004652/49.41, allocations: 287.9 kB / 11.8 GB, free: 66.76 MB / 0.9948 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0002081/49.41, allocations: 186.1 kB / 11.8 GB, free: 66.75 MB / 0.9948 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.03779/49.45, allocations: 18.48 MB / 11.82 GB, free: 66.62 MB / 0.9948 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.1449/49.6, allocations: 74.32 MB / 11.89 GB, free: 21.66 MB / 0.9948 GB Notification: Performance of preOpt comSubExp (simulation): time 0.01623/49.61, allocations: 9.797 MB / 11.9 GB, free: 13.12 MB / 0.9948 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 evalFunc (simulation): time 0.07624/49.69, allocations: 30.04 MB / 11.93 GB, free: 4.777 MB / 1.01 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.308/51, allocations: 8.375 MB / 11.94 GB, free: 105.6 MB / 1.01 GB Notification: Performance of preOpt simplifyInStream (simulation): time 0.0508/51.05, allocations: 14.73 MB / 11.95 GB, free: 105.6 MB / 1.01 GB Notification: Performance of pre-optimization done (n=427): time 6.169e-05/51.05, allocations: 4.969 kB / 11.95 GB, free: 105.6 MB / 1.01 GB Notification: Performance of matching and sorting (n=616): time 0.4253/51.47, allocations: 107.3 MB / 12.06 GB, free: 98.46 MB / 1.01 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001801/51.47, allocations: 119.2 kB / 12.06 GB, free: 98.39 MB / 1.01 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.04566/51.52, allocations: 12.87 MB / 12.07 GB, free: 97.72 MB / 1.01 GB Notification: Performance of collectPreVariables (initialization): time 0.005147/51.53, allocations: 192.8 kB / 12.07 GB, free: 97.69 MB / 1.01 GB Notification: Performance of collectInitialEqns (initialization): time 0.0146/51.54, allocations: 6.645 MB / 12.07 GB, free: 96.57 MB / 1.01 GB Notification: Performance of collectInitialBindings (initialization): time 0.007121/51.55, allocations: 2.082 MB / 12.08 GB, free: 95.5 MB / 1.01 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.004263/51.55, allocations: 157.9 kB / 12.08 GB, free: 95.5 MB / 1.01 GB Notification: Performance of setup shared object (initialization): time 0.001049/51.55, allocations: 0.6245 MB / 12.08 GB, free: 95.18 MB / 1.01 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.02208/51.57, allocations: 8.519 MB / 12.09 GB, free: 95.13 MB / 1.01 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.028/51.6, allocations: 11.31 MB / 12.1 GB, free: 91.91 MB / 1.01 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.02532/51.63, allocations: 9.475 MB / 12.11 GB, free: 91.64 MB / 1.01 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001673/51.63, allocations: 15.41 kB / 12.11 GB, free: 91.64 MB / 1.01 GB Notification: Performance of matching and sorting (n=1038) (initialization): time 0.08466/51.71, allocations: 27.44 MB / 12.13 GB, free: 90.39 MB / 1.01 GB Notification: Performance of prepare postOptimizeDAE: time 0.01147/51.72, allocations: 34.79 MB / 12.17 GB, free: 54.15 MB / 1.01 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0002962/51.73, allocations: 54 kB / 12.17 GB, free: 54.15 MB / 1.01 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.5988/52.32, allocations: 146.8 MB / 12.31 GB, free: 8.156 MB / 1.026 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.01367/52.34, allocations: 1.956 MB / 12.31 GB, free: 6.34 MB / 1.026 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.23/53.57, allocations: 24.81 MB / 12.34 GB, free: 112.3 MB / 1.026 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.02808/53.6, allocations: 1.37 MB / 12.34 GB, free: 112.3 MB / 1.026 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.006078/53.6, allocations: 0.817 MB / 12.34 GB, free: 112.3 MB / 1.026 GB Notification: Performance of prepare postOptimizeDAE: time 1.953e-05/53.6, allocations: 2.344 kB / 12.34 GB, free: 112.3 MB / 1.026 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.07284/53.68, allocations: 26.38 MB / 12.36 GB, free: 112 MB / 1.026 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0004052/53.68, allocations: 52.8 kB / 12.36 GB, free: 112 MB / 1.026 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.6157/54.29, allocations: 147.2 MB / 12.51 GB, free: 111.4 MB / 1.026 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.01127/54.3, allocations: 1.934 MB / 12.51 GB, free: 111.4 MB / 1.026 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.07128/54.37, allocations: 29.52 MB / 12.54 GB, free: 107.4 MB / 1.026 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0253/54.4, allocations: 1.341 MB / 12.54 GB, free: 107.3 MB / 1.026 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.005565/54.41, allocations: 0.7731 MB / 12.54 GB, free: 107.3 MB / 1.026 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 237 * 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 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (758): * Single equations (assignments): 744 * 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 {32 38,6 82,6 82} Notification: Performance of prepare postOptimizeDAE: time 0.01954/54.42, allocations: 3.372 MB / 12.54 GB, free: 107.1 MB / 1.026 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.009537/54.43, allocations: 1.295 MB / 12.55 GB, free: 107.1 MB / 1.026 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.2035/54.64, allocations: 47.19 MB / 12.59 GB, free: 88.32 MB / 1.026 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.0001953/54.64, allocations: 75.94 kB / 12.59 GB, free: 88.25 MB / 1.026 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.995e-05/54.64, allocations: 0 / 12.59 GB, free: 88.25 MB / 1.026 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.1739/54.81, allocations: 41.58 MB / 12.63 GB, free: 54.53 MB / 1.026 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 0.1346/54.95, allocations: 48.63 MB / 12.68 GB, free: 21.16 MB / 1.026 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 0.0001039/54.95, allocations: 8 kB / 12.68 GB, free: 21.16 MB / 1.026 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.007992/54.95, allocations: 1.355 MB / 12.68 GB, free: 19.89 MB / 1.026 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.359/56.31, allocations: 42.02 MB / 12.72 GB, free: 108.4 MB / 1.026 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.002465/56.32, allocations: 202.7 kB / 12.72 GB, free: 108.4 MB / 1.026 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.02226/56.34, allocations: 13.76 MB / 12.74 GB, free: 103.3 MB / 1.026 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.614e-05/56.34, allocations: 10.62 kB / 12.74 GB, free: 103.3 MB / 1.026 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.1434/56.48, allocations: 45.06 MB / 12.78 GB, free: 99.88 MB / 1.026 GB Notification: Performance of postOpt removeConstants (simulation): time 0.01525/56.5, allocations: 3.12 MB / 12.78 GB, free: 99.78 MB / 1.026 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.008352/56.51, allocations: 130.6 kB / 12.78 GB, free: 99.78 MB / 1.026 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.01971/56.53, allocations: 1.071 MB / 12.78 GB, free: 99.78 MB / 1.026 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.003254/56.53, allocations: 474.5 kB / 12.78 GB, free: 99.77 MB / 1.026 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.00262/56.53, allocations: 307 kB / 12.78 GB, free: 99.77 MB / 1.026 GB Notification: Performance of sorting global known variables: time 0.02874/56.56, allocations: 9.839 MB / 12.79 GB, free: 99.41 MB / 1.026 GB Notification: Performance of sort global known variables: time 2.8e-07/56.56, allocations: 0.7812 kB / 12.79 GB, free: 99.41 MB / 1.026 GB Notification: Performance of remove unused functions: time 0.05951/56.62, allocations: 7.221 MB / 12.8 GB, free: 99.41 MB / 1.026 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 29 * Number of states: 8 (valSouth.vol.dynBal.U,valNorth.vol.dynBal.U,spl.vol.dynBal.U,spl1.vol.dynBal.U,pumpHea.vol.dynBal.U,spl2.vol.dynBal.U,spl3.vol.dynBal.U,pumpCoo.vol.dynBal.U) * 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) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (536): * Single equations (assignments): 514 * 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 {8 74,30 38,6 82} Notification: Performance of Backend phase and start with SimCode phase: time 0.1574/56.78, allocations: 50.77 MB / 12.85 GB, free: 93 MB / 1.026 GB Notification: Performance of simCode: created initialization part: time 0.08958/56.87, allocations: 34.57 MB / 12.88 GB, free: 92.33 MB / 1.026 GB Notification: Performance of simCode: created event and clocks part: time 1.968e-05/56.87, allocations: 6.125 kB / 12.88 GB, free: 92.33 MB / 1.026 GB Notification: Performance of simCode: created simulation system equations: time 0.02357/56.89, allocations: 9.553 MB / 12.89 GB, free: 92.2 MB / 1.026 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.04202/56.93, allocations: 6.744 MB / 12.9 GB, free: 92.15 MB / 1.026 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.1252/57.06, allocations: 81.43 MB / 12.98 GB, free: 33.7 MB / 1.026 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.02342/57.08, allocations: 7.683 MB / 12.99 GB, free: 32.55 MB / 1.026 GB Notification: Performance of simCode: alias equations: time 0.02663/57.11, allocations: 4.103 MB / 12.99 GB, free: 31.92 MB / 1.026 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.01691/57.13, allocations: 6.688 MB / 13 GB, free: 31.34 MB / 1.026 GB Notification: Performance of SimCode: time 3.656e-06/57.13, allocations: 0 / 13 GB, free: 31.34 MB / 1.026 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 3.923/61.05, allocations: 0.5353 GB / 13.53 GB, free: 183.3 MB / 1.104 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001862/61.05, allocations: 269 kB / 13.53 GB, free: 183 MB / 1.104 GB Notification: Performance of buildModelFMU: Generate platform static: time 32.28/93.33, allocations: 0 / 13.53 GB, free: 183 MB / 1.104 GB (rm -f BuildingSystems_BuildingSystems.Fluid.Examples.FlowSystem.Simplified4.pipe ; mkfifo BuildingSystems_BuildingSystems.Fluid.Examples.FlowSystem.Simplified4.pipe ; head -c 1048576 < BuildingSystems_BuildingSystems.Fluid.Examples.FlowSystem.Simplified4.pipe >> ../files/BuildingSystems_BuildingSystems.Fluid.Examples.FlowSystem.Simplified4.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator --tempDir=temp_BuildingSystems_BuildingSystems_Fluid_Examples_FlowSystem_Simplified4_fmu --startTime=0 --stopTime=1000 --timeout=50 --tolerance=1e-06 BuildingSystems_BuildingSystems_Fluid_Examples_FlowSystem_Simplified4.fmu > BuildingSystems_BuildingSystems.Fluid.Examples.FlowSystem.Simplified4.pipe 2>&1)