Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Buildings_9_Buildings.Fluid.Examples.FlowSystem.Simplified5.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.1.1-maint.9.1.x/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) 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 Buildings with version 9.1.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.1.1-maint.9.1.x/package.mo) Running command: "" <> buildModelFMU(Buildings.Fluid.Examples.FlowSystem.Simplified5,fileNamePrefix="Buildings_9_Buildings_Fluid_Examples_FlowSystem_Simplified5",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Fluid.Examples.FlowSystem.Simplified5,fileNamePrefix="Buildings_9_Buildings_Fluid_Examples_FlowSystem_Simplified5",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.1.1-maint.9.1.x/package.mo): time 2.542/2.542, allocations: 387.4 MB / 394.9 MB, free: 13.37 MB / 314.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001364/0.001364, allocations: 176.9 kB / 487.4 MB, free: 5.043 MB / 394.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.942/1.942, allocations: 221.5 MB / 0.7824 GB, free: 0.9688 MB / 0.5417 GB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0009523/0.0009522, allocations: 103.8 kB / 0.9219 GB, free: 2.199 MB / 0.6823 GB Notification: Performance of FrontEnd - loaded program: time 2.028e-05/2.032e-05, allocations: 4 kB / 1.067 GB, free: 185.6 MB / 0.7605 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3007/0.3007, allocations: 142.4 MB / 1.206 GB, free: 43.89 MB / 0.7605 GB Notification: Performance of FrontEnd - scodeFlatten: time 1.315/1.615, allocations: 463 MB / 1.658 GB, free: 7.727 MB / 1.073 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002493/1.616, allocations: 95.22 kB / 1.658 GB, free: 7.68 MB / 1.073 GB Notification: Performance of FrontEnd - DAE generated: time 42.71/44.32, allocations: 10.42 GB / 12.08 GB, free: 66.2 MB / 1.401 GB Notification: Performance of FrontEnd: time 2.675e-06/44.32, allocations: 0 / 12.08 GB, free: 66.2 MB / 1.401 GB Notification: Performance of Transformations before backend: time 0.003356/44.33, allocations: 355.1 kB / 12.08 GB, free: 66.14 MB / 1.401 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.04388/44.37, allocations: 11.18 MB / 12.09 GB, free: 61.35 MB / 1.401 GB Notification: Performance of prepare preOptimizeDAE: time 4.675e-05/44.37, allocations: 12.16 kB / 12.09 GB, free: 61.35 MB / 1.401 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.01681/44.39, allocations: 2.596 MB / 12.09 GB, free: 60.55 MB / 1.401 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0586/44.45, allocations: 18.88 MB / 12.11 GB, free: 58.43 MB / 1.401 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.000452/44.45, allocations: 190.7 kB / 12.11 GB, free: 58.43 MB / 1.401 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.003294/44.45, allocations: 443 kB / 12.11 GB, free: 58.43 MB / 1.401 GB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.02726/44.48, allocations: 17.94 MB / 12.13 GB, free: 58.4 MB / 1.401 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.03235/44.51, allocations: 12.27 MB / 12.14 GB, free: 57.81 MB / 1.401 GB Notification: Performance of preOpt findStateOrder (simulation): time 0.0003704/44.51, allocations: 7.688 kB / 12.14 GB, free: 57.81 MB / 1.401 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.002915/44.51, allocations: 3.875 kB / 12.14 GB, free: 57.81 MB / 1.401 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001372/44.51, allocations: 153.1 kB / 12.14 GB, free: 57.81 MB / 1.401 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.1256/44.64, allocations: 69.44 MB / 12.21 GB, free: 25.83 MB / 1.401 GB Notification: Performance of preOpt comSubExp (simulation): time 0.01522/44.65, allocations: 10.29 MB / 12.22 GB, free: 25.68 MB / 1.401 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.01151/44.67, allocations: 8.799 MB / 12.23 GB, free: 25.61 MB / 1.401 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.06096/44.73, allocations: 29.46 MB / 12.26 GB, free: 17.32 MB / 1.401 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.01147/44.74, allocations: 8.022 MB / 12.26 GB, free: 17.21 MB / 1.401 GB Notification: Performance of preOpt simplifyInStream (simulation): time 0.04215/44.78, allocations: 15.12 MB / 12.28 GB, free: 16.44 MB / 1.401 GB Notification: Performance of pre-optimization done (n=393): time 4.383e-05/44.78, allocations: 0 / 12.28 GB, free: 16.44 MB / 1.401 GB Notification: Performance of matching and sorting (n=395): time 0.07974/44.86, allocations: 37.27 MB / 12.31 GB, free: 9.242 MB / 1.401 GB Notification: Performance of inlineWhenForInitialization (initialization): time 6.331e-05/44.86, allocations: 96.83 kB / 12.31 GB, free: 9.172 MB / 1.401 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.02655/44.89, allocations: 11.29 MB / 12.33 GB, free: 5.086 MB / 1.401 GB Notification: Performance of collectPreVariables (initialization): time 0.003342/44.89, allocations: 41.02 kB / 12.33 GB, free: 5.051 MB / 1.401 GB Notification: Performance of collectInitialEqns (initialization): time 0.007989/44.9, allocations: 6.017 MB / 12.33 GB, free: 320 kB / 1.401 GB Notification: Performance of collectInitialBindings (initialization): time 0.004086/44.9, allocations: 1.294 MB / 12.33 GB, free: 15.29 MB / 1.417 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.002878/44.9, allocations: 0 / 12.33 GB, free: 15.29 MB / 1.417 GB Notification: Performance of setup shared object (initialization): time 0.0007548/44.91, allocations: 0.5357 MB / 12.33 GB, free: 14.88 MB / 1.417 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.01183/44.92, allocations: 6.935 MB / 12.34 GB, free: 11.95 MB / 1.417 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0142/44.93, allocations: 9.345 MB / 12.35 GB, free: 5.949 MB / 1.417 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.01604/44.95, allocations: 7.975 MB / 12.36 GB, free: 2.777 MB / 1.417 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 9.968e-05/44.95, allocations: 14.34 kB / 12.36 GB, free: 2.777 MB / 1.417 GB Notification: Performance of matching and sorting (n=776) (initialization): time 0.06642/45.01, allocations: 23.44 MB / 12.38 GB, free: 3.461 MB / 1.432 GB Notification: Performance of prepare postOptimizeDAE: time 1.238/46.25, allocations: 29.59 MB / 12.41 GB, free: 79.98 MB / 1.432 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0002293/46.25, allocations: 46.34 kB / 12.41 GB, free: 79.98 MB / 1.432 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.7625/47.01, allocations: 167.2 MB / 12.57 GB, free: 79.74 MB / 1.432 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.007876/47.02, allocations: 1.326 MB / 12.57 GB, free: 79.73 MB / 1.432 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.03894/47.06, allocations: 25.49 MB / 12.6 GB, free: 75.72 MB / 1.432 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.01757/47.08, allocations: 0.8518 MB / 12.6 GB, free: 75.67 MB / 1.432 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.004018/47.08, allocations: 0.7355 MB / 12.6 GB, free: 75.66 MB / 1.432 GB Notification: Performance of prepare postOptimizeDAE: time 1.494e-05/47.08, allocations: 3.438 kB / 12.6 GB, free: 75.66 MB / 1.432 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.04169/47.13, allocations: 20.92 MB / 12.62 GB, free: 75.34 MB / 1.432 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0002419/47.13, allocations: 45.09 kB / 12.62 GB, free: 75.34 MB / 1.432 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.7406/47.87, allocations: 167.2 MB / 12.78 GB, free: 56.79 MB / 1.432 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.006639/47.87, allocations: 1.317 MB / 12.78 GB, free: 55.57 MB / 1.432 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.04934/47.92, allocations: 28.32 MB / 12.81 GB, free: 35.06 MB / 1.432 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.01769/47.94, allocations: 0.8254 MB / 12.81 GB, free: 34.3 MB / 1.432 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.004345/47.94, allocations: 0.6923 MB / 12.81 GB, free: 33.66 MB / 1.432 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.006593/47.95, allocations: 278.7 kB / 12.81 GB, free: 33.5 MB / 1.432 GB Notification: Performance of postOpt createAliasVarsForOutputStates (simulation): time 0.03291/47.98, allocations: 19.24 MB / 12.83 GB, free: 21.61 MB / 1.432 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.004308/47.99, allocations: 1.158 MB / 12.83 GB, free: 21.08 MB / 1.432 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.03622/48.02, allocations: 17.37 MB / 12.85 GB, free: 10.64 MB / 1.432 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.724e-05/48.02, allocations: 51.06 kB / 12.85 GB, free: 10.6 MB / 1.432 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.965e-06/48.02, allocations: 2.422 kB / 12.85 GB, free: 10.6 MB / 1.432 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.01746/48.04, allocations: 12.55 MB / 12.86 GB, free: 3.594 MB / 1.432 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.139/48.18, allocations: 45.53 MB / 12.91 GB, free: 2.398 MB / 1.464 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.799e-05/48.18, allocations: 7.984 kB / 12.91 GB, free: 2.391 MB / 1.464 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.004322/48.19, allocations: 0.7359 MB / 12.91 GB, free: 1.711 MB / 1.464 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.441/49.63, allocations: 47.68 MB / 12.95 GB, free: 144.4 MB / 1.479 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.001723/49.63, allocations: 76.28 kB / 12.95 GB, free: 144.4 MB / 1.479 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.02097/49.65, allocations: 13.17 MB / 12.97 GB, free: 140.4 MB / 1.479 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.486e-06/49.65, allocations: 2.719 kB / 12.97 GB, free: 140.4 MB / 1.479 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.1544/49.8, allocations: 41.16 MB / 13.01 GB, free: 139.4 MB / 1.479 GB Notification: Performance of postOpt removeConstants (simulation): time 0.01068/49.81, allocations: 2.581 MB / 13.01 GB, free: 139.3 MB / 1.479 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.005974/49.82, allocations: 0 / 13.01 GB, free: 139.3 MB / 1.479 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.01419/49.83, allocations: 0.6591 MB / 13.01 GB, free: 139.3 MB / 1.479 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.001809/49.84, allocations: 295.6 kB / 13.01 GB, free: 139.3 MB / 1.479 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0007271/49.84, allocations: 200.5 kB / 13.01 GB, free: 139.3 MB / 1.479 GB Notification: Performance of sorting global known variables: time 0.01799/49.86, allocations: 8.463 MB / 13.02 GB, free: 139 MB / 1.479 GB Notification: Performance of sort global known variables: time 1.823e-06/49.86, allocations: 0 / 13.02 GB, free: 139 MB / 1.479 GB Notification: Performance of remove unused functions: time 0.04425/49.9, allocations: 5.763 MB / 13.03 GB, free: 139 MB / 1.479 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 0.1672/50.07, allocations: 45.73 MB / 13.07 GB, free: 135.4 MB / 1.479 GB Notification: Performance of simCode: created initialization part: time 0.06827/50.14, allocations: 28.75 MB / 13.1 GB, free: 134.7 MB / 1.479 GB Notification: Performance of simCode: created event and clocks part: time 1.459e-05/50.14, allocations: 2.516 kB / 13.1 GB, free: 134.7 MB / 1.479 GB Notification: Performance of simCode: created simulation system equations: time 0.01643/50.15, allocations: 7.232 MB / 13.11 GB, free: 134.6 MB / 1.479 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.03584/50.19, allocations: 6.026 MB / 13.11 GB, free: 134.6 MB / 1.479 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0567/50.24, allocations: 21.36 MB / 13.13 GB, free: 130.5 MB / 1.479 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.01011/50.25, allocations: 6.84 MB / 13.14 GB, free: 129.6 MB / 1.479 GB Notification: Performance of simCode: alias equations: time 0.02951/50.28, allocations: 5.79 MB / 13.14 GB, free: 129.5 MB / 1.479 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.01213/50.3, allocations: 5.492 MB / 13.15 GB, free: 129.5 MB / 1.479 GB Notification: Performance of SimCode: time 1.283e-06/50.3, allocations: 0 / 13.15 GB, free: 129.5 MB / 1.479 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 1.857/52.15, allocations: 474.9 MB / 13.61 GB, free: 158.4 MB / 1.495 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002239/52.15, allocations: 170.4 kB / 13.61 GB, free: 158.2 MB / 1.495 GB Notification: Performance of buildModelFMU: Generate platform static: time 26.34/78.49, allocations: 0 / 13.61 GB, free: 158.2 MB / 1.495 GB (rm -f Buildings_9_Buildings.Fluid.Examples.FlowSystem.Simplified5.pipe ; mkfifo Buildings_9_Buildings.Fluid.Examples.FlowSystem.Simplified5.pipe ; head -c 1048576 < Buildings_9_Buildings.Fluid.Examples.FlowSystem.Simplified5.pipe >> ../files/Buildings_9_Buildings.Fluid.Examples.FlowSystem.Simplified5.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Buildings_9_Buildings.Fluid.Examples.FlowSystem.Simplified5_res.mat --tempDir=temp_Buildings_9_Buildings_Fluid_Examples_FlowSystem_Simplified5_fmu --startTime=0 --stopTime=1000 --timeout=50 --tolerance=1e-06 Buildings_9_Buildings_Fluid_Examples_FlowSystem_Simplified5.fmu > Buildings_9_Buildings.Fluid.Examples.FlowSystem.Simplified5.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result Buildings_9_Buildings.Fluid.Examples.FlowSystem.Simplified5_res.mat does not exist to compare? outputFormat=mat