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.8358/0.8358, allocations: 141.8 MB / 149.3 MB, free: 9.207 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.00115/0.00115, allocations: 180.8 kB / 182.2 MB, free: 9.434 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.549/1.549, allocations: 221.5 MB / 436.4 MB, free: 13.35 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.001015/0.001015, allocations: 91.8 kB / 0.5074 GB, free: 10.17 MB / 410.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/NcDataReader2 2.5.1-master/package.mo): time 0.001823/0.001823, allocations: 273.2 kB / 0.5889 GB, free: 54.66 MB / 410.7 MB Notification: Performance of FrontEnd - loaded program: time 1.974e-05/1.976e-05, allocations: 4 kB / 0.6766 GB, free: 12.73 MB / 458.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.4602/0.4602, allocations: 82.76 MB / 0.7574 GB, free: 32 MB / 458.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 1.351/1.812, allocations: 421.9 MB / 1.169 GB, free: 192.9 MB / 0.698 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002698/1.812, allocations: 92.31 kB / 1.17 GB, free: 192.9 MB / 0.698 GB Notification: Performance of FrontEnd - DAE generated: time 44.72/46.53, allocations: 10.48 GB / 11.65 GB, free: 60.35 MB / 0.9792 GB Notification: Performance of FrontEnd: time 1.993e-06/46.53, allocations: 0 / 11.65 GB, free: 60.35 MB / 0.9792 GB Notification: Performance of Transformations before backend: time 0.0029/46.53, allocations: 386.7 kB / 11.65 GB, free: 60.28 MB / 0.9792 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.04407/46.58, allocations: 12.13 MB / 11.66 GB, free: 54.92 MB / 0.9792 GB Notification: Performance of prepare preOptimizeDAE: time 4.884e-05/46.58, allocations: 14.2 kB / 11.66 GB, free: 54.92 MB / 0.9792 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.01378/46.59, allocations: 2.188 MB / 11.66 GB, free: 54.06 MB / 0.9792 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.05722/46.65, allocations: 20.13 MB / 11.68 GB, free: 51.71 MB / 0.9792 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0005562/46.65, allocations: 227.5 kB / 11.68 GB, free: 51.71 MB / 0.9792 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.003962/46.65, allocations: 493.5 kB / 11.68 GB, free: 51.71 MB / 0.9792 GB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.03055/46.68, allocations: 18.35 MB / 11.7 GB, free: 51.68 MB / 0.9792 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.03592/46.72, allocations: 12.98 MB / 11.71 GB, free: 50.91 MB / 0.9792 GB Notification: Performance of preOpt findStateOrder (simulation): time 0.0004575/46.72, allocations: 15.94 kB / 11.71 GB, free: 50.91 MB / 0.9792 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.003457/46.72, allocations: 9.625 kB / 11.71 GB, free: 50.91 MB / 0.9792 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001849/46.72, allocations: 191.8 kB / 11.71 GB, free: 50.9 MB / 0.9792 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.1331/46.85, allocations: 73.19 MB / 11.78 GB, free: 16.74 MB / 0.9792 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0149/46.87, allocations: 10.28 MB / 11.79 GB, free: 16.59 MB / 0.9792 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.01225/46.88, allocations: 8.804 MB / 11.8 GB, free: 16.51 MB / 0.9792 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.06885/46.95, allocations: 30.19 MB / 11.83 GB, free: 6.203 MB / 0.9792 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.01455/46.97, allocations: 7.963 MB / 11.84 GB, free: 3.289 MB / 0.9792 GB Notification: Performance of preOpt simplifyInStream (simulation): time 0.04477/47.01, allocations: 14.85 MB / 11.85 GB, free: 1.961 MB / 0.9792 GB Notification: Performance of pre-optimization done (n=427): time 4.991e-05/47.01, allocations: 0 / 11.85 GB, free: 1.961 MB / 0.9792 GB Notification: Performance of matching and sorting (n=429): time 0.1116/47.12, allocations: 37.45 MB / 11.89 GB, free: 0 / 0.9948 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001211/47.12, allocations: 107.7 kB / 11.89 GB, free: 15.88 MB / 1.01 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.03271/47.15, allocations: 11.96 MB / 11.9 GB, free: 5.516 MB / 1.01 GB Notification: Performance of collectPreVariables (initialization): time 0.003573/47.16, allocations: 37.7 kB / 11.9 GB, free: 5.473 MB / 1.01 GB Notification: Performance of collectInitialEqns (initialization): time 0.9956/48.15, allocations: 6.595 MB / 11.91 GB, free: 95.64 MB / 1.01 GB Notification: Performance of collectInitialBindings (initialization): time 0.004641/48.16, allocations: 1.41 MB / 11.91 GB, free: 95.64 MB / 1.01 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.003145/48.16, allocations: 0 / 11.91 GB, free: 95.64 MB / 1.01 GB Notification: Performance of setup shared object (initialization): time 0.0007926/48.16, allocations: 0.5596 MB / 11.91 GB, free: 95.32 MB / 1.01 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.01258/48.18, allocations: 6.937 MB / 11.92 GB, free: 95.31 MB / 1.01 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.01455/48.19, allocations: 9.557 MB / 11.93 GB, free: 92.23 MB / 1.01 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.01802/48.21, allocations: 8.064 MB / 11.94 GB, free: 92.11 MB / 1.01 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001663/48.21, allocations: 18.09 kB / 11.94 GB, free: 92.11 MB / 1.01 GB Notification: Performance of matching and sorting (n=851) (initialization): time 0.05942/48.27, allocations: 22.81 MB / 11.96 GB, free: 91.84 MB / 1.01 GB Notification: Performance of prepare postOptimizeDAE: time 0.007782/48.28, allocations: 34.64 MB / 11.99 GB, free: 55.8 MB / 1.01 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001902/48.28, allocations: 49.62 kB / 11.99 GB, free: 55.8 MB / 1.01 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.6475/48.92, allocations: 143.5 MB / 12.13 GB, free: 54.75 MB / 1.01 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.008906/48.93, allocations: 1.491 MB / 12.13 GB, free: 54.75 MB / 1.01 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.03568/48.97, allocations: 23.29 MB / 12.16 GB, free: 50.72 MB / 1.01 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.01974/48.99, allocations: 0.8916 MB / 12.16 GB, free: 50.64 MB / 1.01 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.004594/48.99, allocations: 0.7423 MB / 12.16 GB, free: 50.64 MB / 1.01 GB Notification: Performance of prepare postOptimizeDAE: time 1.698e-05/48.99, allocations: 4.156 kB / 12.16 GB, free: 50.64 MB / 1.01 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.5541/49.55, allocations: 103 MB / 12.26 GB, free: 52 kB / 1.01 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0003051/49.55, allocations: 57.97 kB / 12.26 GB, free: 15.99 MB / 1.026 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.666/51.21, allocations: 143.6 MB / 12.4 GB, free: 123.6 MB / 1.042 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.008147/51.22, allocations: 1.48 MB / 12.4 GB, free: 123.6 MB / 1.042 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0515/51.27, allocations: 25.92 MB / 12.42 GB, free: 120.9 MB / 1.042 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.01911/51.29, allocations: 0.8655 MB / 12.43 GB, free: 120.9 MB / 1.042 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.004021/51.3, allocations: 0.6967 MB / 12.43 GB, free: 120.9 MB / 1.042 GB Warning: Iteration variables with default zero start attribute in torn nonlinear equation system: pmpSouth.vol.heaFloSen.Q_flow:VARIABLE(unit = "W" protected = true ) "Heat flow from port_a to port_b as output signal" type: Real pmpNorth.vol.heaFloSen.Q_flow:VARIABLE(unit = "W" protected = true ) "Heat flow from port_a to port_b as output signal" type: Real 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 (661): * Single equations (assignments): 649 * Array equations: 4 * Algorithm blocks: 1 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 5 * Torn equation systems: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Equation system details: * Constant Jacobian: 0 * Linear Jacobian (size,density): 0 * Non-linear Jacobian: 5 {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: 2 {32 38,5 80} Notification: Performance of prepare postOptimizeDAE: time 0.006567/51.3, allocations: 304.4 kB / 12.43 GB, free: 120.8 MB / 1.042 GB Notification: Performance of postOpt createAliasVarsForOutputStates (simulation): time 0.0459/51.35, allocations: 18.85 MB / 12.45 GB, free: 120.5 MB / 1.042 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.006537/51.35, allocations: 1.234 MB / 12.45 GB, free: 120.5 MB / 1.042 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.04642/51.4, allocations: 17.08 MB / 12.46 GB, free: 119.8 MB / 1.042 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.0001016/51.4, allocations: 53.84 kB / 12.46 GB, free: 119.8 MB / 1.042 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.883e-05/51.4, allocations: 0 / 12.46 GB, free: 119.8 MB / 1.042 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.02525/51.43, allocations: 12.21 MB / 12.47 GB, free: 119.4 MB / 1.042 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.07384/51.5, allocations: 33.56 MB / 12.51 GB, free: 113.4 MB / 1.042 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.408e-05/51.5, allocations: 0 / 12.51 GB, free: 113.4 MB / 1.042 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.004907/51.51, allocations: 0.802 MB / 12.51 GB, free: 113.4 MB / 1.042 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.1852/51.69, allocations: 40.72 MB / 12.55 GB, free: 109.7 MB / 1.042 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.002186/51.69, allocations: 74.81 kB / 12.55 GB, free: 109.7 MB / 1.042 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.02086/51.71, allocations: 11.92 MB / 12.56 GB, free: 101.6 MB / 1.042 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.408e-05/51.71, allocations: 0.5625 kB / 12.56 GB, free: 101.6 MB / 1.042 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.08849/51.8, allocations: 28.56 MB / 12.59 GB, free: 86.53 MB / 1.042 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0117/51.81, allocations: 2.737 MB / 12.59 GB, free: 84.9 MB / 1.042 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.006951/51.82, allocations: 10.62 kB / 12.59 GB, free: 84.9 MB / 1.042 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.01923/51.84, allocations: 0.6742 MB / 12.59 GB, free: 84.45 MB / 1.042 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.002485/51.84, allocations: 319.9 kB / 12.59 GB, free: 84.29 MB / 1.042 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.002097/51.84, allocations: 217.2 kB / 12.59 GB, free: 84.15 MB / 1.042 GB Notification: Performance of sorting global known variables: time 0.02515/51.87, allocations: 8.957 MB / 12.6 GB, free: 79.4 MB / 1.042 GB Notification: Performance of sort global known variables: time 4.41e-07/51.87, allocations: 0 / 12.6 GB, free: 79.4 MB / 1.042 GB Notification: Performance of remove unused functions: time 0.0564/51.93, allocations: 6.326 MB / 12.61 GB, free: 73.62 MB / 1.042 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 5 * 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 (373): * Single equations (assignments): 353 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 10 * When equations: 3 * If-equations: 0 * Equation systems (linear and non-linear blocks): 5 * Torn equation systems: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Equation system details: * Constant Jacobian: 0 * Linear Jacobian (size,density): 0 * Non-linear Jacobian: 5 {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: 2 {30 38,5 80} Notification: Performance of Backend phase and start with SimCode phase: time 0.09704/52.02, allocations: 33.62 MB / 12.64 GB, free: 53.82 MB / 1.042 GB Notification: Performance of simCode: created initialization part: time 0.05648/52.08, allocations: 28.11 MB / 12.67 GB, free: 29.85 MB / 1.042 GB Notification: Performance of simCode: created event and clocks part: time 1.049e-05/52.08, allocations: 0 / 12.67 GB, free: 29.85 MB / 1.042 GB Notification: Performance of simCode: created simulation system equations: time 1.006/53.09, allocations: 7.293 MB / 12.67 GB, free: 122.2 MB / 1.042 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.04388/53.13, allocations: 6.569 MB / 12.68 GB, free: 122.1 MB / 1.042 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.06534/53.2, allocations: 23.17 MB / 12.7 GB, free: 117.7 MB / 1.042 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.01217/53.21, allocations: 7.324 MB / 12.71 GB, free: 116.8 MB / 1.042 GB Notification: Performance of simCode: alias equations: time 0.03648/53.24, allocations: 6.168 MB / 12.72 GB, free: 116.6 MB / 1.042 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.01341/53.26, allocations: 6.076 MB / 12.72 GB, free: 116.6 MB / 1.042 GB Notification: Performance of SimCode: time 1.212e-06/53.26, allocations: 0 / 12.72 GB, free: 116.6 MB / 1.042 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 1.748/55.01, allocations: 494.6 MB / 13.21 GB, free: 144 MB / 1.073 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001687/55.01, allocations: 182.5 kB / 13.21 GB, free: 143.8 MB / 1.073 GB Notification: Performance of buildModelFMU: Generate platform static: time 30.72/85.73, allocations: 0 / 13.21 GB, free: 143.8 MB / 1.073 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)