Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Buildings_9_Buildings.Fluid.Examples.FlowSystem.Simplified4.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.Simplified4,fileNamePrefix="Buildings_9_Buildings_Fluid_Examples_FlowSystem_Simplified4",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Fluid.Examples.FlowSystem.Simplified4,fileNamePrefix="Buildings_9_Buildings_Fluid_Examples_FlowSystem_Simplified4",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.137/2.137, allocations: 390.3 MB / 405.3 MB, free: 13.5 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.00119/0.00119, allocations: 181.1 kB / 498.1 MB, free: 5.758 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.517/1.517, allocations: 223.2 MB / 0.7948 GB, free: 17.98 MB / 0.5573 GB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0009337/0.0009339, allocations: 92.81 kB / 0.9346 GB, free: 6.285 MB / 0.6823 GB Notification: Performance of FrontEnd - loaded program: time 0.0003906/0.0003904, allocations: 10.38 kB / 1.084 GB, free: 221.1 MB / 0.823 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.261/0.2614, allocations: 142.3 MB / 1.223 GB, free: 114.2 MB / 0.823 GB Notification: Performance of FrontEnd - scodeFlatten: time 1.085/1.346, allocations: 463 MB / 1.675 GB, free: 14.25 MB / 0.9948 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002804/1.347, allocations: 103.8 kB / 1.675 GB, free: 14.2 MB / 0.9948 GB Notification: Performance of FrontEnd - DAE generated: time 40.71/42.05, allocations: 10.58 GB / 12.25 GB, free: 108.9 MB / 1.448 GB Notification: Performance of FrontEnd: time 2.505e-06/42.05, allocations: 0 / 12.25 GB, free: 108.9 MB / 1.448 GB Notification: Performance of Transformations before backend: time 0.004092/42.06, allocations: 397.9 kB / 12.25 GB, free: 108.9 MB / 1.448 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.08185/42.14, allocations: 18.83 MB / 12.27 GB, free: 102.3 MB / 1.448 GB Notification: Performance of prepare preOptimizeDAE: time 5.412e-05/42.14, allocations: 11.16 kB / 12.27 GB, free: 102.3 MB / 1.448 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.005841/42.14, allocations: 0.9152 MB / 12.27 GB, free: 102.2 MB / 1.448 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0178/42.16, allocations: 2.556 MB / 12.27 GB, free: 101.4 MB / 1.448 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.06855/42.23, allocations: 20.6 MB / 12.29 GB, free: 99.1 MB / 1.448 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.001113/42.23, allocations: 0.5988 MB / 12.29 GB, free: 99.09 MB / 1.448 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.004832/42.24, allocations: 0.8171 MB / 12.29 GB, free: 99.08 MB / 1.448 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.03826/42.27, allocations: 14.33 MB / 12.31 GB, free: 98.3 MB / 1.448 GB Notification: Performance of preOpt findStateOrder (simulation): time 0.000612/42.28, allocations: 19.77 kB / 12.31 GB, free: 98.29 MB / 1.448 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.004251/42.28, allocations: 293.1 kB / 12.31 GB, free: 98.29 MB / 1.448 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0002299/42.28, allocations: 186.4 kB / 12.31 GB, free: 98.29 MB / 1.448 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.03722/42.32, allocations: 18.65 MB / 12.33 GB, free: 98.23 MB / 1.448 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.1555/42.47, allocations: 74.57 MB / 12.4 GB, free: 64.35 MB / 1.448 GB Notification: Performance of preOpt comSubExp (simulation): time 0.01824/42.49, allocations: 9.969 MB / 12.41 GB, free: 64.19 MB / 1.448 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.07091/42.56, allocations: 30.02 MB / 12.44 GB, free: 55.71 MB / 1.448 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.01787/42.58, allocations: 8.362 MB / 12.45 GB, free: 55.59 MB / 1.448 GB Notification: Performance of preOpt simplifyInStream (simulation): time 0.04551/42.63, allocations: 14.74 MB / 12.46 GB, free: 55.31 MB / 1.448 GB Notification: Performance of pre-optimization done (n=427): time 4.899e-05/42.63, allocations: 0 / 12.46 GB, free: 55.31 MB / 1.448 GB Notification: Performance of matching and sorting (n=616): time 0.3957/43.02, allocations: 107.7 MB / 12.57 GB, free: 45.39 MB / 1.448 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001174/43.02, allocations: 116.9 kB / 12.57 GB, free: 45.32 MB / 1.448 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.03841/43.06, allocations: 12.93 MB / 12.58 GB, free: 44.59 MB / 1.448 GB Notification: Performance of collectPreVariables (initialization): time 0.004482/43.06, allocations: 187.5 kB / 12.58 GB, free: 44.55 MB / 1.448 GB Notification: Performance of collectInitialEqns (initialization): time 0.01156/43.08, allocations: 6.684 MB / 12.59 GB, free: 42.38 MB / 1.448 GB Notification: Performance of collectInitialBindings (initialization): time 0.00597/43.08, allocations: 2.086 MB / 12.59 GB, free: 40.75 MB / 1.448 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.003814/43.09, allocations: 156.9 kB / 12.59 GB, free: 40.63 MB / 1.448 GB Notification: Performance of setup shared object (initialization): time 0.000813/43.09, allocations: 0.6162 MB / 12.59 GB, free: 40.18 MB / 1.448 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0191/43.11, allocations: 8.604 MB / 12.6 GB, free: 36.96 MB / 1.448 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0221/43.13, allocations: 11.38 MB / 12.61 GB, free: 30.34 MB / 1.448 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.02021/43.15, allocations: 9.546 MB / 12.62 GB, free: 26.36 MB / 1.448 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 8.588e-05/43.15, allocations: 15.69 kB / 12.62 GB, free: 26.36 MB / 1.448 GB Notification: Performance of matching and sorting (n=1038) (initialization): time 0.06702/43.22, allocations: 27.6 MB / 12.65 GB, free: 9.055 MB / 1.448 GB Notification: Performance of prepare postOptimizeDAE: time 0.01225/43.23, allocations: 34.9 MB / 12.68 GB, free: 4.332 MB / 1.479 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001807/43.23, allocations: 52 kB / 12.68 GB, free: 4.281 MB / 1.479 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.734/44.96, allocations: 147.1 MB / 12.82 GB, free: 140.2 MB / 1.479 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.014/44.98, allocations: 1.988 MB / 12.82 GB, free: 140.2 MB / 1.479 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.04651/45.02, allocations: 24.83 MB / 12.85 GB, free: 135.1 MB / 1.479 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0256/45.05, allocations: 1.4 MB / 12.85 GB, free: 135.1 MB / 1.479 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.005167/45.05, allocations: 0.8118 MB / 12.85 GB, free: 135.1 MB / 1.479 GB Notification: Performance of prepare postOptimizeDAE: time 1.733e-05/45.05, allocations: 5.188 kB / 12.85 GB, free: 135.1 MB / 1.479 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.06854/45.12, allocations: 26.55 MB / 12.88 GB, free: 134.8 MB / 1.479 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0003892/45.12, allocations: 51.41 kB / 12.88 GB, free: 134.8 MB / 1.479 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.5977/45.72, allocations: 147.2 MB / 13.02 GB, free: 132.6 MB / 1.479 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.01062/45.73, allocations: 1.969 MB / 13.02 GB, free: 132.6 MB / 1.479 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0569/45.79, allocations: 29.53 MB / 13.05 GB, free: 121.1 MB / 1.479 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.02217/45.81, allocations: 1.365 MB / 13.05 GB, free: 119.9 MB / 1.479 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.004348/45.81, allocations: 0.776 MB / 13.05 GB, free: 119.2 MB / 1.479 GB 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 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (758): * Single equations (assignments): 744 * 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 {32 38,6 82,6 82} Notification: Performance of prepare postOptimizeDAE: time 0.01345/45.83, allocations: 3.374 MB / 13.06 GB, free: 117.1 MB / 1.479 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.005104/45.83, allocations: 1.301 MB / 13.06 GB, free: 116.5 MB / 1.479 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.1832/46.02, allocations: 47.35 MB / 13.1 GB, free: 78.25 MB / 1.479 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.0002062/46.02, allocations: 77.86 kB / 13.1 GB, free: 78.18 MB / 1.479 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.69e-05/46.02, allocations: 0 / 13.1 GB, free: 78.18 MB / 1.479 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.172/46.19, allocations: 41.73 MB / 13.15 GB, free: 43.72 MB / 1.479 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.119/46.31, allocations: 48.86 MB / 13.19 GB, free: 10.2 MB / 1.479 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.334e-05/46.31, allocations: 4 kB / 13.19 GB, free: 10.2 MB / 1.479 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.007779/46.32, allocations: 1.392 MB / 13.19 GB, free: 8.891 MB / 1.479 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.314/47.63, allocations: 42.02 MB / 13.24 GB, free: 160.4 MB / 1.51 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.002228/47.63, allocations: 201.5 kB / 13.24 GB, free: 160.4 MB / 1.51 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.02338/47.65, allocations: 13.76 MB / 13.25 GB, free: 155.3 MB / 1.51 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.538e-05/47.65, allocations: 17.56 kB / 13.25 GB, free: 155.3 MB / 1.51 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.1402/47.79, allocations: 45.32 MB / 13.29 GB, free: 151.8 MB / 1.51 GB Notification: Performance of postOpt removeConstants (simulation): time 0.01287/47.81, allocations: 3.136 MB / 13.3 GB, free: 151.7 MB / 1.51 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.006106/47.81, allocations: 140.3 kB / 13.3 GB, free: 151.7 MB / 1.51 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.01707/47.83, allocations: 1.097 MB / 13.3 GB, free: 151.7 MB / 1.51 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.00253/47.83, allocations: 477.4 kB / 13.3 GB, free: 151.7 MB / 1.51 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.002059/47.84, allocations: 307.8 kB / 13.3 GB, free: 151.7 MB / 1.51 GB Notification: Performance of sorting global known variables: time 0.02596/47.86, allocations: 9.884 MB / 13.31 GB, free: 151.4 MB / 1.51 GB Notification: Performance of sort global known variables: time 9.72e-07/47.86, allocations: 1.422 kB / 13.31 GB, free: 151.4 MB / 1.51 GB Notification: Performance of remove unused functions: time 0.0574/47.92, allocations: 7.234 MB / 13.32 GB, free: 151.4 MB / 1.51 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 29 * 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) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (536): * Single equations (assignments): 514 * 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,30 38,6 82} Notification: Performance of Backend phase and start with SimCode phase: time 0.1496/48.07, allocations: 50.99 MB / 13.36 GB, free: 145.2 MB / 1.51 GB Notification: Performance of simCode: created initialization part: time 0.08634/48.16, allocations: 34.83 MB / 13.4 GB, free: 144.5 MB / 1.51 GB Notification: Performance of simCode: created event and clocks part: time 1.951e-05/48.16, allocations: 3.094 kB / 13.4 GB, free: 144.5 MB / 1.51 GB Notification: Performance of simCode: created simulation system equations: time 0.02429/48.18, allocations: 9.647 MB / 13.41 GB, free: 144.4 MB / 1.51 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.04037/48.22, allocations: 6.732 MB / 13.42 GB, free: 144.4 MB / 1.51 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.1192/48.34, allocations: 81.69 MB / 13.49 GB, free: 86 MB / 1.51 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.01972/48.36, allocations: 7.71 MB / 13.5 GB, free: 85.01 MB / 1.51 GB Notification: Performance of simCode: alias equations: time 0.02857/48.39, allocations: 4.134 MB / 13.51 GB, free: 84.85 MB / 1.51 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0173/48.4, allocations: 6.718 MB / 13.51 GB, free: 84.83 MB / 1.51 GB Notification: Performance of SimCode: time 1.503e-06/48.4, allocations: 0 / 13.51 GB, free: 84.83 MB / 1.51 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 1.93/50.33, allocations: 0.5356 GB / 14.05 GB, free: 170.9 MB / 1.526 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001766/50.33, allocations: 255.6 kB / 14.05 GB, free: 170.5 MB / 1.526 GB Notification: Performance of buildModelFMU: Generate platform static: time 27.46/77.79, allocations: 4 kB / 14.05 GB, free: 170.5 MB / 1.526 GB (rm -f Buildings_9_Buildings.Fluid.Examples.FlowSystem.Simplified4.pipe ; mkfifo Buildings_9_Buildings.Fluid.Examples.FlowSystem.Simplified4.pipe ; head -c 1048576 < Buildings_9_Buildings.Fluid.Examples.FlowSystem.Simplified4.pipe >> ../files/Buildings_9_Buildings.Fluid.Examples.FlowSystem.Simplified4.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Buildings_9_Buildings.Fluid.Examples.FlowSystem.Simplified4_res.mat --tempDir=temp_Buildings_9_Buildings_Fluid_Examples_FlowSystem_Simplified4_fmu --startTime=0 --stopTime=1000 --timeout=50 --tolerance=1e-06 Buildings_9_Buildings_Fluid_Examples_FlowSystem_Simplified4.fmu > Buildings_9_Buildings.Fluid.Examples.FlowSystem.Simplified4.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result Buildings_9_Buildings.Fluid.Examples.FlowSystem.Simplified4_res.mat does not exist to compare? outputFormat=mat