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.8479/0.8479, allocations: 143.3 MB / 158.3 MB, free: 5.781 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.001551/0.001551, allocations: 189 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.63/1.63, allocations: 223.2 MB / 447.7 MB, free: 4.875 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.001046/0.001046, allocations: 92.25 kB / 0.5187 GB, free: 1.238 MB / 410.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/NcDataReader2 2.5.1-master/package.mo): time 0.001856/0.001856, allocations: 273.6 kB / 0.6005 GB, free: 48.75 MB / 410.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0004798/0.0004796, allocations: 12.34 kB / 0.6929 GB, free: 59.68 MB / 442.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1992/0.1997, allocations: 82.8 MB / 0.7738 GB, free: 13.75 MB / 458.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 1.447/1.647, allocations: 423.2 MB / 1.187 GB, free: 195 MB / 0.7136 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002841/1.647, allocations: 101.7 kB / 1.187 GB, free: 195 MB / 0.7136 GB Notification: Performance of FrontEnd - DAE generated: time 46.86/48.51, allocations: 10.49 GB / 11.68 GB, free: 73.02 MB / 0.9636 GB Notification: Performance of FrontEnd: time 3.687e-06/48.51, allocations: 0 / 11.68 GB, free: 73.02 MB / 0.9636 GB Notification: Performance of Transformations before backend: time 0.004364/48.51, allocations: 348.8 kB / 11.68 GB, free: 72.95 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.0813/48.59, allocations: 17.6 MB / 11.7 GB, free: 66.39 MB / 0.9636 GB Notification: Performance of prepare preOptimizeDAE: time 6.728e-05/48.59, allocations: 11.06 kB / 11.7 GB, free: 66.39 MB / 0.9636 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.005917/48.6, allocations: 0.7856 MB / 11.7 GB, free: 66.31 MB / 0.9636 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.01669/48.61, allocations: 2.235 MB / 11.7 GB, free: 65.47 MB / 0.9636 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.06946/48.68, allocations: 18.85 MB / 11.72 GB, free: 63.12 MB / 0.9636 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.001109/48.68, allocations: 0.5378 MB / 11.72 GB, free: 63.11 MB / 0.9636 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.005146/48.69, allocations: 0.7134 MB / 11.72 GB, free: 63.11 MB / 0.9636 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.04324/48.73, allocations: 13.34 MB / 11.73 GB, free: 62.46 MB / 0.9636 GB Notification: Performance of preOpt findStateOrder (simulation): time 0.0005349/48.73, allocations: 7.25 kB / 11.73 GB, free: 62.45 MB / 0.9636 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.00413/48.74, allocations: 249.8 kB / 11.73 GB, free: 62.45 MB / 0.9636 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0002303/48.74, allocations: 155.6 kB / 11.73 GB, free: 62.45 MB / 0.9636 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.03591/48.77, allocations: 17.98 MB / 11.75 GB, free: 62.35 MB / 0.9636 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.1295/48.9, allocations: 70.17 MB / 11.82 GB, free: 27.18 MB / 0.9636 GB Notification: Performance of preOpt comSubExp (simulation): time 0.01593/48.92, allocations: 9.767 MB / 11.83 GB, free: 22.58 MB / 0.9636 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.06295/48.98, allocations: 29.26 MB / 11.86 GB, free: 6.152 MB / 0.9636 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.01567/49, allocations: 8.287 MB / 11.87 GB, free: 64 kB / 0.9636 GB Notification: Performance of preOpt simplifyInStream (simulation): time 0.05035/49.05, allocations: 15.08 MB / 11.88 GB, free: 5.527 MB / 0.9792 GB Notification: Performance of pre-optimization done (n=394): time 5.337e-05/49.05, allocations: 0 / 11.88 GB, free: 5.527 MB / 0.9792 GB Notification: Performance of matching and sorting (n=583): time 1.581/50.63, allocations: 116.4 MB / 12 GB, free: 85.94 MB / 0.9792 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001417/50.63, allocations: 113.7 kB / 12 GB, free: 85.87 MB / 0.9792 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0399/50.67, allocations: 12.11 MB / 12.01 GB, free: 85.21 MB / 0.9792 GB Notification: Performance of collectPreVariables (initialization): time 0.004923/50.68, allocations: 187.7 kB / 12.01 GB, free: 85.18 MB / 0.9792 GB Notification: Performance of collectInitialEqns (initialization): time 0.01223/50.69, allocations: 6.004 MB / 12.01 GB, free: 84.23 MB / 0.9792 GB Notification: Performance of collectInitialBindings (initialization): time 0.006331/50.69, allocations: 1.954 MB / 12.02 GB, free: 83.23 MB / 0.9792 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.004251/50.7, allocations: 147.2 kB / 12.02 GB, free: 83.23 MB / 0.9792 GB Notification: Performance of setup shared object (initialization): time 0.0009671/50.7, allocations: 0.5997 MB / 12.02 GB, free: 82.91 MB / 0.9792 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.02005/50.72, allocations: 8.526 MB / 12.02 GB, free: 82.86 MB / 0.9792 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.02378/50.74, allocations: 11.11 MB / 12.03 GB, free: 79.89 MB / 0.9792 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.02257/50.77, allocations: 9.394 MB / 12.04 GB, free: 79.64 MB / 0.9792 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001553/50.77, allocations: 12.34 kB / 12.04 GB, free: 79.64 MB / 0.9792 GB Notification: Performance of matching and sorting (n=964) (initialization): time 0.07686/50.84, allocations: 27.63 MB / 12.07 GB, free: 78.4 MB / 0.9792 GB Notification: Performance of prepare postOptimizeDAE: time 0.006157/50.85, allocations: 29.65 MB / 12.1 GB, free: 47.55 MB / 0.9792 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.000188/50.85, allocations: 46.06 kB / 12.1 GB, free: 47.55 MB / 0.9792 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.796/52.65, allocations: 170.6 MB / 12.27 GB, free: 102.5 MB / 0.9948 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.01136/52.66, allocations: 1.75 MB / 12.27 GB, free: 102.5 MB / 0.9948 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.05009/52.71, allocations: 26.74 MB / 12.29 GB, free: 97.43 MB / 0.9948 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.02421/52.73, allocations: 1.283 MB / 12.3 GB, free: 97.43 MB / 0.9948 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.005471/52.74, allocations: 0.7994 MB / 12.3 GB, free: 97.43 MB / 0.9948 GB Notification: Performance of prepare postOptimizeDAE: time 2.45e-05/52.74, allocations: 4.812 kB / 12.3 GB, free: 97.43 MB / 0.9948 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.07322/52.81, allocations: 26.63 MB / 12.32 GB, free: 97.1 MB / 0.9948 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0002922/52.81, allocations: 45.53 kB / 12.32 GB, free: 97.1 MB / 0.9948 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.7117/53.52, allocations: 170.9 MB / 12.49 GB, free: 95.8 MB / 0.9948 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.009381/53.53, allocations: 1.74 MB / 12.49 GB, free: 95.31 MB / 0.9948 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.06713/53.6, allocations: 31.79 MB / 12.52 GB, free: 74.09 MB / 0.9948 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.02464/53.62, allocations: 1.256 MB / 12.52 GB, free: 73.01 MB / 0.9948 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.006801/53.63, allocations: 0.7573 MB / 12.52 GB, free: 72.31 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 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (658): * Single equations (assignments): 644 * 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 82,6 82} Notification: Performance of prepare postOptimizeDAE: time 0.01735/53.65, allocations: 3.127 MB / 12.53 GB, free: 70.39 MB / 0.9948 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.008294/53.66, allocations: 1.213 MB / 12.53 GB, free: 69.83 MB / 0.9948 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.07699/53.73, allocations: 24.88 MB / 12.55 GB, free: 54.02 MB / 0.9948 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.000194/53.73, allocations: 83.19 kB / 12.55 GB, free: 53.94 MB / 0.9948 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.796e-05/53.73, allocations: 4.875 kB / 12.55 GB, free: 53.93 MB / 0.9948 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.05376/53.79, allocations: 19.34 MB / 12.57 GB, free: 41.86 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 postOpt removeSimpleEquations (simulation): time 0.1188/53.91, allocations: 45.92 MB / 12.62 GB, free: 10.08 MB / 0.9948 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 0.0001256/53.91, allocations: 8 kB / 12.62 GB, free: 10.07 MB / 0.9948 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.007496/53.91, allocations: 1.252 MB / 12.62 GB, free: 8.867 MB / 0.9948 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.258/55.17, allocations: 48.97 MB / 12.67 GB, free: 97.23 MB / 0.9948 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.002299/55.17, allocations: 197.4 kB / 12.67 GB, free: 97.23 MB / 0.9948 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0247/55.2, allocations: 14.87 MB / 12.68 GB, free: 92.14 MB / 0.9948 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.737e-06/55.2, allocations: 10.25 kB / 12.68 GB, free: 92.14 MB / 0.9948 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.06612/55.26, allocations: 31.62 MB / 12.71 GB, free: 88.79 MB / 0.9948 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0134/55.28, allocations: 2.965 MB / 12.71 GB, free: 88.68 MB / 0.9948 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.00751/55.29, allocations: 128.8 kB / 12.71 GB, free: 88.68 MB / 0.9948 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.01811/55.3, allocations: 1.003 MB / 12.72 GB, free: 88.66 MB / 0.9948 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.002983/55.31, allocations: 461.7 kB / 12.72 GB, free: 88.64 MB / 0.9948 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.002313/55.31, allocations: 289.5 kB / 12.72 GB, free: 88.64 MB / 0.9948 GB Notification: Performance of sorting global known variables: time 0.02771/55.34, allocations: 9.262 MB / 12.72 GB, free: 88.29 MB / 0.9948 GB Notification: Performance of sort global known variables: time 1.933e-06/55.34, allocations: 0 / 12.72 GB, free: 88.29 MB / 0.9948 GB Notification: Performance of remove unused functions: time 0.05668/55.39, allocations: 6.615 MB / 12.73 GB, free: 88.29 MB / 0.9948 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 29 * 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) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (489): * Single equations (assignments): 467 * 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,38 56,6 82} Notification: Performance of Backend phase and start with SimCode phase: time 0.08763/55.48, allocations: 36.95 MB / 12.77 GB, free: 82.01 MB / 0.9948 GB Notification: Performance of simCode: created initialization part: time 0.09351/55.58, allocations: 35.18 MB / 12.8 GB, free: 81.31 MB / 0.9948 GB Notification: Performance of simCode: created event and clocks part: time 2.356e-05/55.58, allocations: 3.75 kB / 12.8 GB, free: 81.31 MB / 0.9948 GB Notification: Performance of simCode: created simulation system equations: time 0.02654/55.6, allocations: 9.867 MB / 12.81 GB, free: 81.16 MB / 0.9948 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.04144/55.64, allocations: 6.19 MB / 12.82 GB, free: 81.11 MB / 0.9948 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.1172/55.76, allocations: 73.59 MB / 12.89 GB, free: 29.34 MB / 0.9948 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0228/55.78, allocations: 7.199 MB / 12.9 GB, free: 28.22 MB / 0.9948 GB Notification: Performance of simCode: alias equations: time 0.0278/55.81, allocations: 3.768 MB / 12.9 GB, free: 27.59 MB / 0.9948 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0165/55.83, allocations: 6.107 MB / 12.91 GB, free: 27.58 MB / 0.9948 GB Notification: Performance of SimCode: time 2.454e-06/55.83, allocations: 1.75 kB / 12.91 GB, free: 27.58 MB / 0.9948 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 3.819/59.65, allocations: 0.5146 GB / 13.42 GB, free: 165.1 MB / 1.073 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001921/59.65, allocations: 263.2 kB / 13.42 GB, free: 164.7 MB / 1.073 GB Notification: Performance of buildModelFMU: Generate platform static: time 29.82/89.47, allocations: 0 / 13.42 GB, free: 164.7 MB / 1.073 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)