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.6782/0.6782, allocations: 141.7 MB / 154.3 MB, free: 15.49 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.0008759/0.000876, allocations: 186.9 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.201/1.201, allocations: 221.3 MB / 441.4 MB, free: 4.676 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.0008096/0.0008095, allocations: 100.5 kB / 0.5124 GB, free: 24.15 MB / 394.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/NcDataReader2 2.5.1-master/package.mo): time 0.001657/0.001658, allocations: 283.8 kB / 0.5939 GB, free: 7.992 MB / 442.7 MB Notification: Performance of FrontEnd - loaded program: time 4.274e-05/4.285e-05, allocations: 7.984 kB / 0.6835 GB, free: 12.18 MB / 0.5261 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3397/0.3397, allocations: 82.77 MB / 0.7644 GB, free: 108.7 MB / 0.5261 GB Notification: Performance of FrontEnd - scodeFlatten: time 0.666/1.006, allocations: 422.5 MB / 1.177 GB, free: 4.145 MB / 0.698 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0001958/1.006, allocations: 90.14 kB / 1.177 GB, free: 4.102 MB / 0.698 GB Notification: Performance of FrontEnd - DAE generated: time 39.18/40.18, allocations: 10.52 GB / 11.7 GB, free: 64.23 MB / 0.9948 GB Notification: Performance of FrontEnd: time 1.983e-06/40.18, allocations: 0 / 11.7 GB, free: 64.23 MB / 0.9948 GB Notification: Performance of Transformations before backend: time 0.002682/40.19, allocations: 385 kB / 11.7 GB, free: 64.16 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.04224/40.23, allocations: 12.13 MB / 11.71 GB, free: 59 MB / 0.9948 GB Notification: Performance of prepare preOptimizeDAE: time 4.987e-05/40.23, allocations: 9.094 kB / 11.71 GB, free: 59 MB / 0.9948 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.004104/40.23, allocations: 0.908 MB / 11.71 GB, free: 58.92 MB / 0.9948 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.01344/40.25, allocations: 2.19 MB / 11.72 GB, free: 58.05 MB / 0.9948 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.06115/40.31, allocations: 20.13 MB / 11.74 GB, free: 55.79 MB / 0.9948 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.001064/40.31, allocations: 0.603 MB / 11.74 GB, free: 55.77 MB / 0.9948 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.004374/40.31, allocations: 0.8079 MB / 11.74 GB, free: 55.77 MB / 0.9948 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.03375/40.35, allocations: 13.99 MB / 11.75 GB, free: 54.98 MB / 0.9948 GB Notification: Performance of preOpt findStateOrder (simulation): time 0.0003928/40.35, allocations: 14.34 kB / 11.75 GB, free: 54.98 MB / 0.9948 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.002926/40.35, allocations: 290.4 kB / 11.75 GB, free: 54.98 MB / 0.9948 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0002102/40.35, allocations: 183.3 kB / 11.75 GB, free: 54.98 MB / 0.9948 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.02863/40.38, allocations: 18.06 MB / 11.77 GB, free: 54.91 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 preOpt removeSimpleEquations (simulation): time 0.119/40.5, allocations: 74.27 MB / 11.84 GB, free: 21.11 MB / 0.9948 GB Notification: Performance of preOpt comSubExp (simulation): time 0.01385/40.51, allocations: 9.523 MB / 11.85 GB, free: 20.95 MB / 0.9948 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.01145/40.52, allocations: 8.481 MB / 11.86 GB, free: 20.88 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 preOpt evalFunc (simulation): time 0.05928/40.58, allocations: 30.3 MB / 11.89 GB, free: 12.27 MB / 0.9948 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.01169/40.59, allocations: 8.09 MB / 11.9 GB, free: 12.16 MB / 0.9948 GB Notification: Performance of preOpt simplifyInStream (simulation): time 0.04/40.63, allocations: 14.98 MB / 11.91 GB, free: 11.54 MB / 0.9948 GB Notification: Performance of pre-optimization done (n=427): time 3.398e-05/40.63, allocations: 0 / 11.91 GB, free: 11.54 MB / 0.9948 GB Notification: Performance of matching and sorting (n=613): time 0.2063/40.84, allocations: 73.56 MB / 11.98 GB, free: 13.61 MB / 1.01 GB Notification: Performance of inlineWhenForInitialization (initialization): time 8.407e-05/40.84, allocations: 117.6 kB / 11.98 GB, free: 13.54 MB / 1.01 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.02674/40.87, allocations: 12.73 MB / 12 GB, free: 9.109 MB / 1.01 GB Notification: Performance of collectPreVariables (initialization): time 0.003142/40.87, allocations: 191.8 kB / 12 GB, free: 8.965 MB / 1.01 GB Notification: Performance of collectInitialEqns (initialization): time 0.006763/40.88, allocations: 6.635 MB / 12 GB, free: 3.777 MB / 1.01 GB Notification: Performance of collectInitialBindings (initialization): time 0.003816/40.88, allocations: 2.071 MB / 12.01 GB, free: 2.164 MB / 1.01 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0009687/40.88, allocations: 158.6 kB / 12.01 GB, free: 2.043 MB / 1.01 GB Notification: Performance of setup shared object (initialization): time 0.0003945/40.88, allocations: 0.618 MB / 12.01 GB, free: 1.594 MB / 1.01 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0221/40.9, allocations: 8.737 MB / 12.01 GB, free: 0 / 1.01 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0166/40.92, allocations: 10.6 MB / 12.02 GB, free: 5.363 MB / 1.026 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.8872/41.81, allocations: 9.351 MB / 12.03 GB, free: 92.44 MB / 1.026 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.678e-05/41.81, allocations: 15.41 kB / 12.03 GB, free: 92.44 MB / 1.026 GB Notification: Performance of matching and sorting (n=1035) (initialization): time 0.05794/41.87, allocations: 25.97 MB / 12.06 GB, free: 92.1 MB / 1.026 GB Notification: Performance of prepare postOptimizeDAE: time 0.005923/41.87, allocations: 34.79 MB / 12.09 GB, free: 56.09 MB / 1.026 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001271/41.87, allocations: 50.94 kB / 12.09 GB, free: 56.09 MB / 1.026 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.6267/42.5, allocations: 146.4 MB / 12.24 GB, free: 55.19 MB / 1.026 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0109/42.51, allocations: 1.957 MB / 12.24 GB, free: 55.17 MB / 1.026 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.03969/42.55, allocations: 24.6 MB / 12.26 GB, free: 50.03 MB / 1.026 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.02107/42.57, allocations: 1.368 MB / 12.26 GB, free: 49.95 MB / 1.026 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.00403/42.58, allocations: 0.8157 MB / 12.26 GB, free: 49.95 MB / 1.026 GB Notification: Performance of prepare postOptimizeDAE: time 1.564e-05/42.58, allocations: 3.531 kB / 12.26 GB, free: 49.95 MB / 1.026 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.04881/42.62, allocations: 24.92 MB / 12.29 GB, free: 49.52 MB / 1.026 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0002622/42.62, allocations: 54.75 kB / 12.29 GB, free: 49.52 MB / 1.026 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.464/44.09, allocations: 146.8 MB / 12.43 GB, free: 121.6 MB / 1.057 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.009604/44.1, allocations: 1.946 MB / 12.43 GB, free: 121.6 MB / 1.057 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0481/44.15, allocations: 28.88 MB / 12.46 GB, free: 117.8 MB / 1.057 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0192/44.17, allocations: 1.335 MB / 12.46 GB, free: 117.8 MB / 1.057 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.003475/44.17, allocations: 0.7682 MB / 12.46 GB, free: 117.8 MB / 1.057 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 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (761): * Single equations (assignments): 747 * 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,5 80,5 80} Notification: Performance of prepare postOptimizeDAE: time 0.003287/44.17, allocations: 0.559 MB / 12.46 GB, free: 117.7 MB / 1.057 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.004066/44.18, allocations: 1.293 MB / 12.47 GB, free: 117.7 MB / 1.057 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.06961/44.25, allocations: 26.72 MB / 12.49 GB, free: 117.1 MB / 1.057 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.0001455/44.25, allocations: 78.23 kB / 12.49 GB, free: 117.1 MB / 1.057 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.5e-05/44.25, allocations: 1.312 kB / 12.49 GB, free: 117.1 MB / 1.057 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.05353/44.3, allocations: 21.13 MB / 12.51 GB, free: 116.6 MB / 1.057 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.1703/44.47, allocations: 60.04 MB / 12.57 GB, free: 110.3 MB / 1.057 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.554e-05/44.47, allocations: 7.625 kB / 12.57 GB, free: 110.3 MB / 1.057 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.007173/44.48, allocations: 1.356 MB / 12.57 GB, free: 110.3 MB / 1.057 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.1791/44.66, allocations: 41.92 MB / 12.61 GB, free: 110.2 MB / 1.057 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.001785/44.66, allocations: 208.9 kB / 12.61 GB, free: 110.2 MB / 1.057 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01796/44.68, allocations: 13.64 MB / 12.63 GB, free: 105 MB / 1.057 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.622e-06/44.68, allocations: 13.19 kB / 12.63 GB, free: 105 MB / 1.057 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.09073/44.77, allocations: 38.67 MB / 12.66 GB, free: 101.3 MB / 1.057 GB Notification: Performance of postOpt removeConstants (simulation): time 0.009939/44.78, allocations: 3.122 MB / 12.67 GB, free: 100.5 MB / 1.057 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.00447/44.78, allocations: 137 kB / 12.67 GB, free: 100.5 MB / 1.057 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.01421/44.8, allocations: 1.061 MB / 12.67 GB, free: 100.4 MB / 1.057 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.001722/44.8, allocations: 475.1 kB / 12.67 GB, free: 100.4 MB / 1.057 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.00085/44.8, allocations: 308.2 kB / 12.67 GB, free: 100.4 MB / 1.057 GB Notification: Performance of sorting global known variables: time 0.01646/44.81, allocations: 9.705 MB / 12.68 GB, free: 96.88 MB / 1.057 GB Notification: Performance of sort global known variables: time 5.81e-07/44.81, allocations: 1.969 kB / 12.68 GB, free: 96.88 MB / 1.057 GB Notification: Performance of remove unused functions: time 0.04517/44.86, allocations: 7.198 MB / 12.69 GB, free: 90.6 MB / 1.057 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) * Top-level inputs: 0 Notification: Strong component statistics for simulation (537): * Single equations (assignments): 515 * 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 {7 74,30 38,5 80} Notification: Performance of Backend phase and start with SimCode phase: time 0.103/44.96, allocations: 44.21 MB / 12.73 GB, free: 64.23 MB / 1.057 GB Notification: Performance of simCode: created initialization part: time 0.06189/45.02, allocations: 32.94 MB / 12.76 GB, free: 37.84 MB / 1.057 GB Notification: Performance of simCode: created event and clocks part: time 1.271e-05/45.02, allocations: 4.938 kB / 12.76 GB, free: 37.84 MB / 1.057 GB Notification: Performance of simCode: created simulation system equations: time 0.01632/45.04, allocations: 8.941 MB / 12.77 GB, free: 29.67 MB / 1.057 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.03437/45.08, allocations: 6.748 MB / 12.78 GB, free: 24.88 MB / 1.057 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 1.575/46.65, allocations: 27.21 MB / 12.8 GB, free: 107.9 MB / 1.057 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.008376/46.66, allocations: 7.709 MB / 12.81 GB, free: 106.9 MB / 1.057 GB Notification: Performance of simCode: alias equations: time 0.02816/46.69, allocations: 6.815 MB / 12.82 GB, free: 106.8 MB / 1.057 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.01113/46.7, allocations: 6.415 MB / 12.82 GB, free: 106.8 MB / 1.057 GB Notification: Performance of SimCode: time 1.052e-06/46.7, allocations: 0 / 12.82 GB, free: 106.8 MB / 1.057 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 1.495/48.19, allocations: 0.5635 GB / 13.39 GB, free: 131 MB / 1.089 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001473/48.19, allocations: 237 kB / 13.39 GB, free: 130.7 MB / 1.089 GB Notification: Performance of buildModelFMU: Generate platform static: time 22.4/70.6, allocations: 0.6562 kB / 13.39 GB, free: 130.7 MB / 1.089 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)