Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Buildings_9_Buildings.Fluid.Examples.FlowSystem.Simplified6.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.Simplified6,fileNamePrefix="Buildings_9_Buildings_Fluid_Examples_FlowSystem_Simplified6",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Fluid.Examples.FlowSystem.Simplified6,fileNamePrefix="Buildings_9_Buildings_Fluid_Examples_FlowSystem_Simplified6",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.365/2.365, allocations: 387.4 MB / 394.9 MB, free: 13.34 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.001031/0.001031, allocations: 176.9 kB / 487.4 MB, free: 5.035 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.617/1.617, allocations: 221.5 MB / 0.7824 GB, free: 0.9648 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.0008837/0.0008836, allocations: 99.78 kB / 0.9219 GB, free: 2.203 MB / 0.6823 GB Notification: Performance of FrontEnd - loaded program: time 2.138e-05/2.14e-05, allocations: 4 kB / 1.067 GB, free: 185.6 MB / 0.7605 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2768/0.2769, allocations: 142.4 MB / 1.206 GB, free: 43.86 MB / 0.7605 GB Notification: Performance of FrontEnd - scodeFlatten: time 1.599/1.876, allocations: 463.6 MB / 1.659 GB, free: 7.016 MB / 1.073 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0004715/1.877, allocations: 101.1 kB / 1.659 GB, free: 6.965 MB / 1.073 GB Notification: Performance of FrontEnd - DAE generated: time 43.75/45.63, allocations: 10.66 GB / 12.32 GB, free: 40.21 MB / 1.401 GB Notification: Performance of FrontEnd: time 1.964e-06/45.63, allocations: 0 / 12.32 GB, free: 40.21 MB / 1.401 GB Notification: Performance of Transformations before backend: time 0.002722/45.63, allocations: 359.7 kB / 12.32 GB, free: 39.86 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.03982/45.67, allocations: 11.1 MB / 12.33 GB, free: 28.66 MB / 1.401 GB Notification: Performance of prepare preOptimizeDAE: time 5.646e-05/45.67, allocations: 8.562 kB / 12.33 GB, free: 28.66 MB / 1.401 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.01502/45.69, allocations: 2.444 MB / 12.33 GB, free: 26.2 MB / 1.401 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.05435/45.74, allocations: 18.52 MB / 12.35 GB, free: 7.605 MB / 1.401 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0005295/45.74, allocations: 192 kB / 12.35 GB, free: 7.418 MB / 1.401 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.002924/45.74, allocations: 432 kB / 12.35 GB, free: 6.996 MB / 1.401 GB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.01626/45.76, allocations: 6.946 MB / 12.36 GB, free: 52 kB / 1.401 GB Notification: Performance of preOpt clockPartitioning (simulation): time 1.236/47, allocations: 7.477 MB / 12.36 GB, free: 102.2 MB / 1.401 GB Notification: Performance of preOpt findStateOrder (simulation): time 0.0002104/47, allocations: 20.5 kB / 12.36 GB, free: 102.2 MB / 1.401 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.001152/47, allocations: 12.56 kB / 12.36 GB, free: 102.2 MB / 1.401 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0002143/47, allocations: 155.7 kB / 12.36 GB, free: 102.2 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.08498/47.08, allocations: 49.05 MB / 12.41 GB, free: 76.67 MB / 1.401 GB Notification: Performance of preOpt comSubExp (simulation): time 0.01038/47.09, allocations: 5.492 MB / 12.42 GB, free: 76.52 MB / 1.401 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.006881/47.1, allocations: 3.99 MB / 12.42 GB, free: 76.47 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.04176/47.14, allocations: 13.58 MB / 12.43 GB, free: 73.42 MB / 1.401 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.005526/47.15, allocations: 3.176 MB / 12.44 GB, free: 73.32 MB / 1.401 GB Notification: Performance of preOpt simplifyInStream (simulation): time 0.01312/47.16, allocations: 2.284 MB / 12.44 GB, free: 73.21 MB / 1.401 GB Notification: Performance of pre-optimization done (n=326): time 3.231e-05/47.16, allocations: 0 / 12.44 GB, free: 73.21 MB / 1.401 GB Notification: Performance of matching and sorting (n=328): time 0.05041/47.21, allocations: 15.81 MB / 12.45 GB, free: 70.47 MB / 1.401 GB Notification: Performance of inlineWhenForInitialization (initialization): time 5.048e-05/47.21, allocations: 86.55 kB / 12.45 GB, free: 70.41 MB / 1.401 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.02748/47.24, allocations: 11.48 MB / 12.47 GB, free: 69.74 MB / 1.401 GB Notification: Performance of collectPreVariables (initialization): time 0.001816/47.24, allocations: 36.45 kB / 12.47 GB, free: 69.71 MB / 1.401 GB Notification: Performance of collectInitialEqns (initialization): time 0.00836/47.25, allocations: 6.229 MB / 12.47 GB, free: 68.6 MB / 1.401 GB Notification: Performance of collectInitialBindings (initialization): time 0.002133/47.25, allocations: 1.081 MB / 12.47 GB, free: 68.04 MB / 1.401 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0007767/47.25, allocations: 3.266 kB / 12.47 GB, free: 68.04 MB / 1.401 GB Notification: Performance of setup shared object (initialization): time 0.0003958/47.25, allocations: 0.5385 MB / 12.47 GB, free: 67.72 MB / 1.401 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.00453/47.26, allocations: 3.049 MB / 12.48 GB, free: 67.71 MB / 1.401 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.006352/47.26, allocations: 5.807 MB / 12.48 GB, free: 64.39 MB / 1.401 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.008649/47.27, allocations: 3.993 MB / 12.49 GB, free: 64.31 MB / 1.401 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001/47.27, allocations: 19.22 kB / 12.49 GB, free: 64.31 MB / 1.401 GB Notification: Performance of matching and sorting (n=771) (initialization): time 0.0282/47.3, allocations: 10.8 MB / 12.5 GB, free: 63.46 MB / 1.401 GB Notification: Performance of prepare postOptimizeDAE: time 0.0137/47.32, allocations: 38.43 MB / 12.53 GB, free: 55.63 MB / 1.432 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0002991/47.32, allocations: 59.97 kB / 12.53 GB, free: 55.63 MB / 1.432 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0031/47.32, allocations: 1.351 MB / 12.54 GB, free: 55.58 MB / 1.432 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.008479/47.33, allocations: 1.431 MB / 12.54 GB, free: 55.58 MB / 1.432 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01011/47.34, allocations: 9.711 MB / 12.55 GB, free: 49.99 MB / 1.432 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.01447/47.35, allocations: 0.7715 MB / 12.55 GB, free: 49.96 MB / 1.432 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.002255/47.35, allocations: 422.9 kB / 12.55 GB, free: 49.96 MB / 1.432 GB Notification: Performance of prepare postOptimizeDAE: time 1.48e-05/47.35, allocations: 3.688 kB / 12.55 GB, free: 49.96 MB / 1.432 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.01848/47.37, allocations: 8.551 MB / 12.56 GB, free: 49.78 MB / 1.432 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001797/47.37, allocations: 59.41 kB / 12.56 GB, free: 49.78 MB / 1.432 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.003718/47.38, allocations: 1.469 MB / 12.56 GB, free: 49.73 MB / 1.432 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.006626/47.38, allocations: 1.421 MB / 12.56 GB, free: 49.73 MB / 1.432 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01902/47.4, allocations: 12.55 MB / 12.57 GB, free: 45.3 MB / 1.432 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.01339/47.42, allocations: 0.7536 MB / 12.57 GB, free: 45.27 MB / 1.432 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001842/47.42, allocations: 373.7 kB / 12.57 GB, free: 45.27 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 Warning: Iteration variables with default zero start attribute in torn nonlinear equation system: pumpHea.vol.heaFloSen.Q_flow:VARIABLE(unit = "W" protected = true ) "Heat flow from port_a to port_b as output signal" type: Real Warning: Iteration variables with default zero start attribute in torn nonlinear equation system: 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: 269 * 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 (640): * Single equations (assignments): 625 * 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: 5 * 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: 5 {1 4,1 2,1 2,1 2,4 81} Notification: Performance of prepare postOptimizeDAE: time 0.002668/47.42, allocations: 308.9 kB / 12.57 GB, free: 45.17 MB / 1.432 GB Notification: Performance of postOpt createAliasVarsForOutputStates (simulation): time 0.01654/47.44, allocations: 6.656 MB / 12.58 GB, free: 44.3 MB / 1.432 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.004158/47.44, allocations: 1.148 MB / 12.58 GB, free: 43.67 MB / 1.432 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01701/47.46, allocations: 7.71 MB / 12.59 GB, free: 43.27 MB / 1.432 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.08e-05/47.46, allocations: 37.69 kB / 12.59 GB, free: 43.27 MB / 1.432 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.674e-06/47.46, allocations: 1.469 kB / 12.59 GB, free: 43.27 MB / 1.432 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.01074/47.47, allocations: 5.792 MB / 12.59 GB, free: 42.83 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.04146/47.51, allocations: 16.34 MB / 12.61 GB, free: 41.4 MB / 1.432 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.012e-05/47.51, allocations: 3.719 kB / 12.61 GB, free: 41.4 MB / 1.432 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.004204/47.51, allocations: 0.6444 MB / 12.61 GB, free: 41.4 MB / 1.432 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.002376/47.52, allocations: 1.124 MB / 12.61 GB, free: 41.34 MB / 1.432 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0007218/47.52, allocations: 60.66 kB / 12.61 GB, free: 41.34 MB / 1.432 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.009615/47.53, allocations: 8.096 MB / 12.62 GB, free: 51.77 MB / 1.448 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.263e-06/47.53, allocations: 1.203 kB / 12.62 GB, free: 51.77 MB / 1.448 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0184/47.55, allocations: 10.58 MB / 12.63 GB, free: 50.3 MB / 1.448 GB Notification: Performance of postOpt removeConstants (simulation): time 0.008293/47.55, allocations: 2.185 MB / 12.63 GB, free: 49.56 MB / 1.448 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.004906/47.56, allocations: 8.156 kB / 12.63 GB, free: 49.56 MB / 1.448 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0132/47.57, allocations: 0.6531 MB / 12.63 GB, free: 49.54 MB / 1.448 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.00129/47.57, allocations: 223.9 kB / 12.63 GB, free: 49.54 MB / 1.448 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0007322/47.57, allocations: 171.7 kB / 12.63 GB, free: 49.54 MB / 1.448 GB Notification: Performance of sorting global known variables: time 0.0202/47.59, allocations: 8.572 MB / 12.64 GB, free: 49.18 MB / 1.448 GB Notification: Performance of sort global known variables: time 1.132e-06/47.59, allocations: 1.969 kB / 12.64 GB, free: 49.18 MB / 1.448 GB Notification: Performance of remove unused functions: time 0.04422/47.64, allocations: 5.207 MB / 12.65 GB, free: 49.18 MB / 1.448 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 (274): * Single equations (assignments): 251 * 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: 5 * 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: 5 {1 2,1 4,1 2,1 2,5 80} Notification: Performance of Backend phase and start with SimCode phase: time 0.03388/47.67, allocations: 15.16 MB / 12.66 GB, free: 45.57 MB / 1.448 GB Notification: Performance of simCode: created initialization part: time 0.02356/47.7, allocations: 12.01 MB / 12.67 GB, free: 45.06 MB / 1.448 GB Notification: Performance of simCode: created event and clocks part: time 9.969e-06/47.7, allocations: 3.062 kB / 12.67 GB, free: 45.06 MB / 1.448 GB Notification: Performance of simCode: created simulation system equations: time 0.004829/47.7, allocations: 2.689 MB / 12.68 GB, free: 45.03 MB / 1.448 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.03028/47.73, allocations: 5.748 MB / 12.68 GB, free: 44.98 MB / 1.448 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.04905/47.78, allocations: 19.5 MB / 12.7 GB, free: 40.94 MB / 1.448 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.01044/47.79, allocations: 6.742 MB / 12.71 GB, free: 39.98 MB / 1.448 GB Notification: Performance of simCode: alias equations: time 0.0267/47.82, allocations: 5.912 MB / 12.71 GB, free: 39.69 MB / 1.448 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.01008/47.83, allocations: 5.385 MB / 12.72 GB, free: 39.68 MB / 1.448 GB Notification: Performance of SimCode: time 1.032e-06/47.83, allocations: 0 / 12.72 GB, free: 39.68 MB / 1.448 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 1.533/49.36, allocations: 339 MB / 13.05 GB, free: 159.5 MB / 1.464 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001589/49.36, allocations: 173.5 kB / 13.05 GB, free: 159.3 MB / 1.464 GB Notification: Performance of buildModelFMU: Generate platform static: time 22.65/72.02, allocations: 4 kB / 13.05 GB, free: 159.3 MB / 1.464 GB (rm -f Buildings_9_Buildings.Fluid.Examples.FlowSystem.Simplified6.pipe ; mkfifo Buildings_9_Buildings.Fluid.Examples.FlowSystem.Simplified6.pipe ; head -c 1048576 < Buildings_9_Buildings.Fluid.Examples.FlowSystem.Simplified6.pipe >> ../files/Buildings_9_Buildings.Fluid.Examples.FlowSystem.Simplified6.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Buildings_9_Buildings.Fluid.Examples.FlowSystem.Simplified6_res.mat --tempDir=temp_Buildings_9_Buildings_Fluid_Examples_FlowSystem_Simplified6_fmu --startTime=0 --stopTime=1000 --timeout=50 --tolerance=1e-06 Buildings_9_Buildings_Fluid_Examples_FlowSystem_Simplified6.fmu > Buildings_9_Buildings.Fluid.Examples.FlowSystem.Simplified6.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result Buildings_9_Buildings.Fluid.Examples.FlowSystem.Simplified6_res.mat does not exist to compare? outputFormat=mat