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.269/2.269, allocations: 387.1 MB / 399.7 MB, free: 9.508 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.001278/0.001278, allocations: 176.9 kB / 492.3 MB, free: 0.6133 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.424/1.424, allocations: 221.3 MB / 0.7871 GB, free: 12.9 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.0008644/0.0008647, allocations: 99.09 kB / 0.9267 GB, free: 13.97 MB / 0.698 GB Notification: Performance of FrontEnd - loaded program: time 3.115e-05/3.117e-05, allocations: 0 / 1.073 GB, free: 180.3 MB / 0.7605 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2604/0.2605, allocations: 142.4 MB / 1.212 GB, free: 38.44 MB / 0.7605 GB Notification: Performance of FrontEnd - scodeFlatten: time 1.161/1.421, allocations: 463.6 MB / 1.665 GB, free: 15.28 MB / 1.089 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002727/1.422, allocations: 98.42 kB / 1.665 GB, free: 15.23 MB / 1.089 GB Notification: Performance of FrontEnd - DAE generated: time 42.66/44.08, allocations: 10.47 GB / 12.13 GB, free: 89.12 MB / 1.417 GB Notification: Performance of FrontEnd: time 1.743e-06/44.08, allocations: 0 / 12.13 GB, free: 89.12 MB / 1.417 GB Notification: Performance of Transformations before backend: time 0.003228/44.08, allocations: 355.2 kB / 12.13 GB, free: 89.06 MB / 1.417 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.04556/44.13, allocations: 11.18 MB / 12.14 GB, free: 84.12 MB / 1.417 GB Notification: Performance of prepare preOptimizeDAE: time 8.545e-05/44.13, allocations: 12.72 kB / 12.14 GB, free: 84.12 MB / 1.417 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.007289/44.13, allocations: 0.7812 MB / 12.14 GB, free: 84.05 MB / 1.417 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.01778/44.15, allocations: 2.588 MB / 12.15 GB, free: 83.25 MB / 1.417 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.06026/44.21, allocations: 18.88 MB / 12.16 GB, free: 80.98 MB / 1.417 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0008174/44.21, allocations: 0.5314 MB / 12.16 GB, free: 80.96 MB / 1.417 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.004199/44.22, allocations: 0.7146 MB / 12.16 GB, free: 80.96 MB / 1.417 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.03336/44.25, allocations: 13.12 MB / 12.18 GB, free: 80.31 MB / 1.417 GB Notification: Performance of preOpt findStateOrder (simulation): time 0.0003171/44.25, allocations: 6.531 kB / 12.18 GB, free: 80.31 MB / 1.417 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.003646/44.26, allocations: 246.7 kB / 12.18 GB, free: 80.31 MB / 1.417 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001639/44.26, allocations: 160.2 kB / 12.18 GB, free: 80.3 MB / 1.417 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.03649/44.29, allocations: 17.58 MB / 12.2 GB, free: 80.22 MB / 1.417 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.1313/44.42, allocations: 70.36 MB / 12.26 GB, free: 47.79 MB / 1.417 GB Notification: Performance of preOpt comSubExp (simulation): time 0.01501/44.44, allocations: 9.502 MB / 12.27 GB, free: 47.61 MB / 1.417 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.01424/44.45, allocations: 8.461 MB / 12.28 GB, free: 47.54 MB / 1.417 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.07184/44.52, allocations: 29.58 MB / 12.31 GB, free: 34.92 MB / 1.417 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.01491/44.54, allocations: 8.15 MB / 12.32 GB, free: 31.94 MB / 1.417 GB Notification: Performance of preOpt simplifyInStream (simulation): time 0.04528/44.58, allocations: 15.23 MB / 12.33 GB, free: 30.51 MB / 1.417 GB Notification: Performance of pre-optimization done (n=393): time 5.369e-05/44.58, allocations: 0 / 12.33 GB, free: 30.51 MB / 1.417 GB Notification: Performance of matching and sorting (n=581): time 1.656/46.24, allocations: 76.58 MB / 12.41 GB, free: 112.5 MB / 1.432 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.000126/46.24, allocations: 114.6 kB / 12.41 GB, free: 112.4 MB / 1.432 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.03773/46.28, allocations: 12.01 MB / 12.42 GB, free: 111.8 MB / 1.432 GB Notification: Performance of collectPreVariables (initialization): time 0.004433/46.28, allocations: 184 kB / 12.42 GB, free: 111.7 MB / 1.432 GB Notification: Performance of collectInitialEqns (initialization): time 0.01029/46.29, allocations: 6.018 MB / 12.43 GB, free: 111.5 MB / 1.432 GB Notification: Performance of collectInitialBindings (initialization): time 0.005774/46.3, allocations: 1.958 MB / 12.43 GB, free: 111.4 MB / 1.432 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001394/46.3, allocations: 146.4 kB / 12.43 GB, free: 111.4 MB / 1.432 GB Notification: Performance of setup shared object (initialization): time 0.00062/46.3, allocations: 0.5976 MB / 12.43 GB, free: 111.1 MB / 1.432 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.01271/46.31, allocations: 7.817 MB / 12.44 GB, free: 111.1 MB / 1.432 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.01743/46.33, allocations: 10.4 MB / 12.45 GB, free: 108.2 MB / 1.432 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.01836/46.35, allocations: 8.711 MB / 12.45 GB, free: 108.1 MB / 1.432 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001696/46.35, allocations: 12.97 kB / 12.45 GB, free: 108.1 MB / 1.432 GB Notification: Performance of matching and sorting (n=962) (initialization): time 0.06398/46.41, allocations: 26.16 MB / 12.48 GB, free: 107.1 MB / 1.432 GB Notification: Performance of prepare postOptimizeDAE: time 0.006832/46.42, allocations: 29.71 MB / 12.51 GB, free: 76.41 MB / 1.432 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0002169/46.42, allocations: 49.44 kB / 12.51 GB, free: 76.41 MB / 1.432 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.7486/47.17, allocations: 170.4 MB / 12.68 GB, free: 75.87 MB / 1.432 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.01126/47.18, allocations: 1.798 MB / 12.68 GB, free: 75.84 MB / 1.432 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.04375/47.23, allocations: 26.57 MB / 12.7 GB, free: 70.56 MB / 1.432 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.02135/47.25, allocations: 1.32 MB / 12.7 GB, free: 70.45 MB / 1.432 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.004432/47.25, allocations: 0.8015 MB / 12.71 GB, free: 70.45 MB / 1.432 GB Notification: Performance of prepare postOptimizeDAE: time 1.533e-05/47.25, allocations: 2.406 kB / 12.71 GB, free: 70.45 MB / 1.432 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.0497/47.3, allocations: 25.21 MB / 12.73 GB, free: 70.02 MB / 1.432 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0002443/47.3, allocations: 48.28 kB / 12.73 GB, free: 70.02 MB / 1.432 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.7268/48.03, allocations: 170.6 MB / 12.9 GB, free: 7.641 MB / 1.448 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.01004/48.04, allocations: 1.791 MB / 12.9 GB, free: 5.973 MB / 1.448 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.05842/48.1, allocations: 30.93 MB / 12.93 GB, free: 14.55 MB / 1.479 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0206/48.12, allocations: 1.286 MB / 12.93 GB, free: 13.41 MB / 1.479 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.004266/48.12, allocations: 0.7627 MB / 12.93 GB, free: 12.71 MB / 1.479 GB 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 (662): * Single equations (assignments): 648 * 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 {39 57,6 79,8 77} Notification: Performance of prepare postOptimizeDAE: time 0.004286/48.13, allocations: 0.5132 MB / 12.93 GB, free: 12.5 MB / 1.479 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.004408/48.13, allocations: 1.215 MB / 12.93 GB, free: 11.27 MB / 1.479 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 1.117/49.25, allocations: 23.39 MB / 12.96 GB, free: 153.5 MB / 1.479 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.0001484/49.25, allocations: 78.06 kB / 12.96 GB, free: 153.5 MB / 1.479 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.728e-05/49.25, allocations: 2.047 kB / 12.96 GB, free: 153.5 MB / 1.479 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.04529/49.29, allocations: 17.84 MB / 12.97 GB, free: 153 MB / 1.479 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.1605/49.45, allocations: 54.28 MB / 13.03 GB, free: 146.6 MB / 1.479 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 0.000104/49.45, allocations: 9.094 kB / 13.03 GB, free: 146.6 MB / 1.479 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.007141/49.46, allocations: 1.287 MB / 13.03 GB, free: 146.6 MB / 1.479 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.2173/49.68, allocations: 48.88 MB / 13.07 GB, free: 146.5 MB / 1.479 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.002406/49.68, allocations: 200.5 kB / 13.07 GB, free: 146.5 MB / 1.479 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.02538/49.71, allocations: 14.71 MB / 13.09 GB, free: 141.4 MB / 1.479 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.055e-05/49.71, allocations: 11.75 kB / 13.09 GB, free: 141.4 MB / 1.479 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.07386/49.78, allocations: 32.91 MB / 13.12 GB, free: 137.7 MB / 1.479 GB Notification: Performance of postOpt removeConstants (simulation): time 0.01405/49.79, allocations: 2.98 MB / 13.12 GB, free: 137.6 MB / 1.479 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.006725/49.8, allocations: 133.6 kB / 13.12 GB, free: 137.6 MB / 1.479 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.01674/49.82, allocations: 1.041 MB / 13.13 GB, free: 137.6 MB / 1.479 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.002618/49.82, allocations: 460.3 kB / 13.13 GB, free: 137.6 MB / 1.479 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.002149/49.82, allocations: 287.4 kB / 13.13 GB, free: 137.6 MB / 1.479 GB Notification: Performance of sorting global known variables: time 0.02398/49.85, allocations: 9.157 MB / 13.14 GB, free: 137.2 MB / 1.479 GB Notification: Performance of sort global known variables: time 5.71e-07/49.85, allocations: 0 / 13.14 GB, free: 137.2 MB / 1.479 GB Notification: Performance of remove unused functions: time 0.04854/49.89, allocations: 6.612 MB / 13.14 GB, free: 137.2 MB / 1.479 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 31 * 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 (491): * Single equations (assignments): 469 * 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 {5 76,37 57,8 77} Notification: Performance of Backend phase and start with SimCode phase: time 0.07812/49.97, allocations: 38.2 MB / 13.18 GB, free: 130.7 MB / 1.479 GB Notification: Performance of simCode: created initialization part: time 0.07151/50.04, allocations: 33.61 MB / 13.21 GB, free: 129.9 MB / 1.479 GB Notification: Performance of simCode: created event and clocks part: time 1.709e-05/50.04, allocations: 1.547 kB / 13.21 GB, free: 129.9 MB / 1.479 GB Notification: Performance of simCode: created simulation system equations: time 0.01993/50.06, allocations: 9.244 MB / 13.22 GB, free: 129.7 MB / 1.479 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0335/50.1, allocations: 6.204 MB / 13.23 GB, free: 129.7 MB / 1.479 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.06364/50.16, allocations: 24.72 MB / 13.25 GB, free: 125.1 MB / 1.479 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.008858/50.17, allocations: 7.237 MB / 13.26 GB, free: 124.1 MB / 1.479 GB Notification: Performance of simCode: alias equations: time 0.03002/50.2, allocations: 6.435 MB / 13.26 GB, free: 124 MB / 1.479 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.01014/50.21, allocations: 5.864 MB / 13.27 GB, free: 124 MB / 1.479 GB Notification: Performance of SimCode: time 1.102e-06/50.21, allocations: 0 / 13.27 GB, free: 124 MB / 1.479 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 2.876/53.09, allocations: 0.5427 GB / 13.81 GB, free: 132.7 MB / 1.479 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001532/53.09, allocations: 229.4 kB / 13.81 GB, free: 132.5 MB / 1.479 GB Notification: Performance of buildModelFMU: Generate platform static: time 26.5/79.59, allocations: 0 / 13.81 GB, free: 132.5 MB / 1.479 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