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.8196/0.8196, allocations: 141.8 MB / 149.3 MB, free: 9.242 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.001379/0.001379, allocations: 184.8 kB / 182.2 MB, free: 9.465 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.518/1.518, allocations: 221.5 MB / 436.4 MB, free: 13.3 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.001147/0.001147, allocations: 91.98 kB / 0.5074 GB, free: 10.12 MB / 410.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/NcDataReader2 2.5.1-master/package.mo): time 0.00202/0.00202, allocations: 280.5 kB / 0.5889 GB, free: 54.65 MB / 410.7 MB Notification: Performance of FrontEnd - loaded program: time 2.743e-05/2.79e-05, allocations: 4 kB / 0.6766 GB, free: 12.73 MB / 458.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.5107/0.5108, allocations: 82.77 MB / 0.7575 GB, free: 31.91 MB / 458.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 1.359/1.87, allocations: 422.5 MB / 1.17 GB, free: 265.3 MB / 0.698 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002801/1.87, allocations: 91.22 kB / 1.17 GB, free: 265.3 MB / 0.698 GB Notification: Performance of FrontEnd - DAE generated: time 44.74/46.61, allocations: 10.42 GB / 11.59 GB, free: 75.76 MB / 0.9636 GB Notification: Performance of FrontEnd: time 1.983e-06/46.61, allocations: 0 / 11.59 GB, free: 75.76 MB / 0.9636 GB Notification: Performance of Transformations before backend: time 0.003184/46.61, allocations: 348.3 kB / 11.59 GB, free: 75.7 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.04818/46.66, allocations: 11.17 MB / 11.6 GB, free: 70.74 MB / 0.9636 GB Notification: Performance of prepare preOptimizeDAE: time 5.659e-05/46.66, allocations: 11.06 kB / 11.6 GB, free: 70.74 MB / 0.9636 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.01485/46.68, allocations: 2.229 MB / 11.6 GB, free: 69.95 MB / 0.9636 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.06366/46.74, allocations: 18.67 MB / 11.62 GB, free: 67.79 MB / 0.9636 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0005912/46.74, allocations: 195.7 kB / 11.62 GB, free: 67.79 MB / 0.9636 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.004311/46.74, allocations: 434.6 kB / 11.62 GB, free: 67.79 MB / 0.9636 GB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0313/46.78, allocations: 17.89 MB / 11.64 GB, free: 67.76 MB / 0.9636 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.036/46.81, allocations: 12.22 MB / 11.65 GB, free: 67.16 MB / 0.9636 GB Notification: Performance of preOpt findStateOrder (simulation): time 0.0002444/46.81, allocations: 6.344 kB / 11.65 GB, free: 67.16 MB / 0.9636 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.002476/46.81, allocations: 6.938 kB / 11.65 GB, free: 67.16 MB / 0.9636 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001261/46.81, allocations: 156.1 kB / 11.65 GB, free: 67.16 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.118/46.93, allocations: 69.2 MB / 11.72 GB, free: 34.84 MB / 0.9636 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0137/46.95, allocations: 10.22 MB / 11.73 GB, free: 34.68 MB / 0.9636 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.01028/46.96, allocations: 8.779 MB / 11.74 GB, free: 34.61 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.06076/47.02, allocations: 29.4 MB / 11.76 GB, free: 19.27 MB / 0.9636 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.01175/47.03, allocations: 7.992 MB / 11.77 GB, free: 16.35 MB / 0.9636 GB Notification: Performance of preOpt simplifyInStream (simulation): time 0.04274/47.07, allocations: 15.11 MB / 11.79 GB, free: 15.01 MB / 0.9636 GB Notification: Performance of pre-optimization done (n=393): time 4.415e-05/47.07, allocations: 0 / 11.79 GB, free: 15.01 MB / 0.9636 GB Notification: Performance of matching and sorting (n=395): time 0.1006/47.17, allocations: 37.52 MB / 11.82 GB, free: 3.887 MB / 0.9792 GB Notification: Performance of inlineWhenForInitialization (initialization): time 8.859e-05/47.17, allocations: 91.73 kB / 11.82 GB, free: 3.785 MB / 0.9792 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.9823/48.16, allocations: 11.95 MB / 11.84 GB, free: 98.04 MB / 0.9792 GB Notification: Performance of collectPreVariables (initialization): time 0.003366/48.16, allocations: 37.17 kB / 11.84 GB, free: 98 MB / 0.9792 GB Notification: Performance of collectInitialEqns (initialization): time 0.008578/48.17, allocations: 5.989 MB / 11.84 GB, free: 97.8 MB / 0.9792 GB Notification: Performance of collectInitialBindings (initialization): time 0.004008/48.17, allocations: 1.295 MB / 11.84 GB, free: 97.8 MB / 0.9792 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.00199/48.17, allocations: 0 / 11.84 GB, free: 97.8 MB / 0.9792 GB Notification: Performance of setup shared object (initialization): time 0.0005047/48.17, allocations: 0.5333 MB / 11.84 GB, free: 97.49 MB / 0.9792 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0112/48.18, allocations: 6.914 MB / 11.85 GB, free: 97.47 MB / 0.9792 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.01601/48.2, allocations: 9.331 MB / 11.86 GB, free: 94.62 MB / 0.9792 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.01782/48.22, allocations: 7.968 MB / 11.87 GB, free: 94.51 MB / 0.9792 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001421/48.22, allocations: 13.06 kB / 11.87 GB, free: 94.51 MB / 0.9792 GB Notification: Performance of matching and sorting (n=776) (initialization): time 0.05763/48.28, allocations: 22.96 MB / 11.89 GB, free: 93.79 MB / 0.9792 GB Notification: Performance of prepare postOptimizeDAE: time 0.008145/48.28, allocations: 29.52 MB / 11.92 GB, free: 63.11 MB / 0.9792 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0002575/48.29, allocations: 49.33 kB / 11.92 GB, free: 63.11 MB / 0.9792 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.8184/49.1, allocations: 167.2 MB / 12.08 GB, free: 61.71 MB / 0.9792 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.008122/49.11, allocations: 1.289 MB / 12.08 GB, free: 61.71 MB / 0.9792 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.04426/49.16, allocations: 25.49 MB / 12.11 GB, free: 56.67 MB / 0.9792 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.02067/49.18, allocations: 0.8162 MB / 12.11 GB, free: 56.14 MB / 0.9792 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.004453/49.18, allocations: 0.728 MB / 12.11 GB, free: 55.72 MB / 0.9792 GB Notification: Performance of prepare postOptimizeDAE: time 1.856e-05/49.18, allocations: 4 kB / 12.11 GB, free: 55.72 MB / 0.9792 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.04163/49.22, allocations: 20.88 MB / 12.13 GB, free: 45.93 MB / 0.9792 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0002232/49.22, allocations: 56.89 kB / 12.13 GB, free: 45.88 MB / 0.9792 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.723/50.95, allocations: 167.2 MB / 12.29 GB, free: 107.6 MB / 0.9948 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.006836/50.95, allocations: 1.282 MB / 12.29 GB, free: 107.6 MB / 0.9948 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.05322/51.01, allocations: 28.32 MB / 12.32 GB, free: 104.9 MB / 0.9948 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.01887/51.03, allocations: 0.7902 MB / 12.32 GB, free: 104.9 MB / 0.9948 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.00405/51.03, allocations: 0.6898 MB / 12.32 GB, free: 104.9 MB / 0.9948 GB Warning: Iteration variables with default zero start attribute in torn nonlinear equation system: pmpNorth.vol.heaFloSen.Q_flow:VARIABLE(unit = "W" protected = true ) "Heat flow from port_a to port_b as output signal" type: Real pmpSouth.vol.heaFloSen.Q_flow:VARIABLE(unit = "W" protected = true ) "Heat flow from port_a to port_b as output signal" type: Real pumpHea.vol.heaFloSen.Q_flow:VARIABLE(unit = "W" protected = true ) "Heat flow from port_a to port_b as output signal" type: Real pumpCoo.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: 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 (560): * Single equations (assignments): 548 * 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 {40 56,7 78} Notification: Performance of prepare postOptimizeDAE: time 0.005234/51.03, allocations: 282.6 kB / 12.32 GB, free: 104.8 MB / 0.9948 GB Notification: Performance of postOpt createAliasVarsForOutputStates (simulation): time 0.03725/51.07, allocations: 19.23 MB / 12.34 GB, free: 104.6 MB / 0.9948 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.005355/51.08, allocations: 1.143 MB / 12.34 GB, free: 104.6 MB / 0.9948 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.04126/51.12, allocations: 17.33 MB / 12.36 GB, free: 103.8 MB / 0.9948 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.863e-05/51.12, allocations: 51.14 kB / 12.36 GB, free: 103.8 MB / 0.9948 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.461e-05/51.12, allocations: 4 kB / 12.36 GB, free: 103.8 MB / 0.9948 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.02153/51.14, allocations: 12.52 MB / 12.37 GB, free: 103.3 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.1371/51.28, allocations: 45.47 MB / 12.42 GB, free: 97.09 MB / 0.9948 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.956e-05/51.28, allocations: 4.188 kB / 12.42 GB, free: 97.09 MB / 0.9948 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.004627/51.28, allocations: 0.6948 MB / 12.42 GB, free: 97.08 MB / 0.9948 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.2142/51.5, allocations: 47.69 MB / 12.46 GB, free: 80.46 MB / 0.9948 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.001965/51.5, allocations: 73.17 kB / 12.46 GB, free: 80.43 MB / 0.9948 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.02226/51.52, allocations: 13.17 MB / 12.48 GB, free: 71.75 MB / 0.9948 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.335e-05/51.52, allocations: 2.953 kB / 12.48 GB, free: 71.75 MB / 0.9948 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.1527/51.67, allocations: 41.09 MB / 12.52 GB, free: 49.17 MB / 0.9948 GB Notification: Performance of postOpt removeConstants (simulation): time 0.01105/51.68, allocations: 2.569 MB / 12.52 GB, free: 47.62 MB / 0.9948 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.006768/51.69, allocations: 7.562 kB / 12.52 GB, free: 47.62 MB / 0.9948 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.01448/51.71, allocations: 0.6228 MB / 12.52 GB, free: 47.21 MB / 0.9948 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.001795/51.71, allocations: 301.3 kB / 12.52 GB, free: 47.07 MB / 0.9948 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.000734/51.71, allocations: 198.4 kB / 12.52 GB, free: 46.93 MB / 0.9948 GB Notification: Performance of sorting global known variables: time 0.01585/51.72, allocations: 8.434 MB / 12.53 GB, free: 42.39 MB / 0.9948 GB Notification: Performance of sort global known variables: time 8.31e-07/51.72, allocations: 0 / 12.53 GB, free: 42.39 MB / 0.9948 GB Notification: Performance of remove unused functions: time 0.0441/51.77, allocations: 5.746 MB / 12.53 GB, free: 37.05 MB / 0.9948 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 5 * 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 (324): * Single equations (assignments): 304 * 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 {38 56,5 80} Notification: Performance of Backend phase and start with SimCode phase: time 1.165/52.93, allocations: 45.67 MB / 12.58 GB, free: 98 MB / 0.9948 GB Notification: Performance of simCode: created initialization part: time 0.06507/53, allocations: 28.67 MB / 12.61 GB, free: 97.43 MB / 0.9948 GB Notification: Performance of simCode: created event and clocks part: time 1.368e-05/53, allocations: 5.031 kB / 12.61 GB, free: 97.43 MB / 0.9948 GB Notification: Performance of simCode: created simulation system equations: time 0.01631/53.02, allocations: 7.215 MB / 12.61 GB, free: 97.34 MB / 0.9948 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.03691/53.05, allocations: 6.031 MB / 12.62 GB, free: 97.29 MB / 0.9948 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.06077/53.11, allocations: 21.28 MB / 12.64 GB, free: 93.22 MB / 0.9948 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.008845/53.12, allocations: 6.824 MB / 12.65 GB, free: 92.27 MB / 0.9948 GB Notification: Performance of simCode: alias equations: time 0.02792/53.15, allocations: 5.806 MB / 12.65 GB, free: 92.12 MB / 0.9948 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.00968/53.16, allocations: 5.467 MB / 12.66 GB, free: 92.12 MB / 0.9948 GB Notification: Performance of SimCode: time 1.503e-06/53.16, allocations: 4.656 kB / 12.66 GB, free: 92.12 MB / 0.9948 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 2.583/55.74, allocations: 474.1 MB / 13.12 GB, free: 129.7 MB / 1.026 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001772/55.74, allocations: 184 kB / 13.12 GB, free: 129.5 MB / 1.026 GB Notification: Performance of buildModelFMU: Generate platform static: time 22.79/78.54, allocations: 3.938 kB / 13.12 GB, free: 129.5 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)