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.201/2.201, allocations: 387.1 MB / 399.7 MB, free: 9.484 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.001152/0.001152, allocations: 184.1 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.434/1.434, allocations: 221.3 MB / 0.7871 GB, free: 12.88 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.000979/0.000979, allocations: 98.56 kB / 0.9267 GB, free: 13.95 MB / 0.698 GB Notification: Performance of FrontEnd - loaded program: time 3.503e-05/3.517e-05, allocations: 4 kB / 1.073 GB, free: 180.3 MB / 0.7605 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2611/0.2611, allocations: 142.3 MB / 1.212 GB, free: 38.43 MB / 0.7605 GB Notification: Performance of FrontEnd - scodeFlatten: time 1.182/1.444, allocations: 463 MB / 1.665 GB, free: 15.9 MB / 1.089 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002408/1.444, allocations: 91.08 kB / 1.665 GB, free: 15.86 MB / 1.089 GB Notification: Performance of FrontEnd - DAE generated: time 43.74/45.18, allocations: 10.55 GB / 12.21 GB, free: 103.3 MB / 1.432 GB Notification: Performance of FrontEnd: time 1.553e-06/45.18, allocations: 2.562 kB / 12.21 GB, free: 103.3 MB / 1.432 GB Notification: Performance of Transformations before backend: time 0.004413/45.19, allocations: 392 kB / 12.21 GB, free: 103.2 MB / 1.432 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.05934/45.25, allocations: 12.16 MB / 12.22 GB, free: 97.71 MB / 1.432 GB Notification: Performance of prepare preOptimizeDAE: time 5.928e-05/45.25, allocations: 14.44 kB / 12.22 GB, free: 97.7 MB / 1.432 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.006179/45.25, allocations: 0.9107 MB / 12.22 GB, free: 97.62 MB / 1.432 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.02086/45.27, allocations: 2.551 MB / 12.23 GB, free: 96.7 MB / 1.432 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.08084/45.35, allocations: 20.4 MB / 12.25 GB, free: 94.15 MB / 1.432 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.001208/45.35, allocations: 0.599 MB / 12.25 GB, free: 94.13 MB / 1.432 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.005748/45.36, allocations: 0.804 MB / 12.25 GB, free: 94.13 MB / 1.432 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.04391/45.4, allocations: 14.04 MB / 12.26 GB, free: 93.3 MB / 1.432 GB Notification: Performance of preOpt findStateOrder (simulation): time 0.0006276/45.4, allocations: 18.23 kB / 12.26 GB, free: 93.29 MB / 1.432 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.004908/45.41, allocations: 289.9 kB / 12.26 GB, free: 93.29 MB / 1.432 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0002858/45.41, allocations: 182.8 kB / 12.26 GB, free: 93.29 MB / 1.432 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0372/45.45, allocations: 18.11 MB / 12.28 GB, free: 93.17 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 preOpt removeSimpleEquations (simulation): time 0.1554/45.6, allocations: 74.52 MB / 12.35 GB, free: 58.31 MB / 1.432 GB Notification: Performance of preOpt comSubExp (simulation): time 0.01888/45.62, allocations: 9.573 MB / 12.36 GB, free: 53.67 MB / 1.432 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.01396/45.64, allocations: 8.511 MB / 12.37 GB, free: 49.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 preOpt evalFunc (simulation): time 0.06853/45.7, allocations: 30.38 MB / 12.4 GB, free: 33.09 MB / 1.432 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.01505/45.72, allocations: 8.133 MB / 12.41 GB, free: 30.11 MB / 1.432 GB Notification: Performance of preOpt simplifyInStream (simulation): time 0.04308/45.76, allocations: 14.97 MB / 12.42 GB, free: 20.86 MB / 1.432 GB Notification: Performance of pre-optimization done (n=427): time 4.418e-05/45.76, allocations: 0 / 12.42 GB, free: 20.86 MB / 1.432 GB Notification: Performance of matching and sorting (n=613): time 1.565/47.33, allocations: 74.16 MB / 12.49 GB, free: 124.3 MB / 1.448 GB Notification: Performance of inlineWhenForInitialization (initialization): time 7.369e-05/47.33, allocations: 116.7 kB / 12.5 GB, free: 124.2 MB / 1.448 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.03109/47.36, allocations: 12.79 MB / 12.51 GB, free: 123.5 MB / 1.448 GB Notification: Performance of collectPreVariables (initialization): time 0.003261/47.36, allocations: 192.9 kB / 12.51 GB, free: 123.4 MB / 1.448 GB Notification: Performance of collectInitialEqns (initialization): time 0.01028/47.37, allocations: 6.675 MB / 12.51 GB, free: 122.4 MB / 1.448 GB Notification: Performance of collectInitialBindings (initialization): time 0.004502/47.38, allocations: 2.068 MB / 12.52 GB, free: 121.3 MB / 1.448 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.002188/47.38, allocations: 158 kB / 12.52 GB, free: 121.3 MB / 1.448 GB Notification: Performance of setup shared object (initialization): time 0.0005609/47.38, allocations: 0.6191 MB / 12.52 GB, free: 121 MB / 1.448 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.01286/47.39, allocations: 7.84 MB / 12.52 GB, free: 121 MB / 1.448 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.01623/47.41, allocations: 10.61 MB / 12.53 GB, free: 117.9 MB / 1.448 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.01497/47.42, allocations: 8.812 MB / 12.54 GB, free: 117.7 MB / 1.448 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 9.899e-05/47.42, allocations: 19.67 kB / 12.54 GB, free: 117.7 MB / 1.448 GB Notification: Performance of matching and sorting (n=1035) (initialization): time 0.05394/47.48, allocations: 26 MB / 12.57 GB, free: 116.6 MB / 1.448 GB Notification: Performance of prepare postOptimizeDAE: time 0.007233/47.48, allocations: 34.9 MB / 12.6 GB, free: 80.6 MB / 1.448 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0002809/47.49, allocations: 53.59 kB / 12.6 GB, free: 80.6 MB / 1.448 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.6268/48.11, allocations: 146.4 MB / 12.75 GB, free: 80.12 MB / 1.448 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.01157/48.12, allocations: 1.997 MB / 12.75 GB, free: 80.1 MB / 1.448 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.03575/48.16, allocations: 24.6 MB / 12.77 GB, free: 74.86 MB / 1.448 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.02128/48.18, allocations: 1.399 MB / 12.77 GB, free: 74.74 MB / 1.448 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.003713/48.18, allocations: 0.8177 MB / 12.77 GB, free: 74.74 MB / 1.448 GB Notification: Performance of prepare postOptimizeDAE: time 1.446e-05/48.18, allocations: 4.625 kB / 12.77 GB, free: 74.74 MB / 1.448 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.04324/48.23, allocations: 24.96 MB / 12.8 GB, free: 74.3 MB / 1.448 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0002257/48.23, allocations: 56.41 kB / 12.8 GB, free: 74.3 MB / 1.448 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.6137/48.84, allocations: 146.8 MB / 12.94 GB, free: 19.48 MB / 1.448 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.009765/48.85, allocations: 1.987 MB / 12.94 GB, free: 17.63 MB / 1.448 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.05217/48.9, allocations: 28.87 MB / 12.97 GB, free: 11.72 MB / 1.464 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.02214/48.93, allocations: 1.374 MB / 12.97 GB, free: 10.52 MB / 1.464 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.004118/48.93, allocations: 0.7711 MB / 12.97 GB, free: 9.805 MB / 1.464 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 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (761): * Single equations (assignments): 747 * 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,5 80,5 80} Notification: Performance of prepare postOptimizeDAE: time 0.005237/48.94, allocations: 0.5604 MB / 12.97 GB, free: 9.586 MB / 1.464 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.006224/48.94, allocations: 1.311 MB / 12.98 GB, free: 8.262 MB / 1.464 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.08216/49.02, allocations: 26.75 MB / 13 GB, free: 5.973 MB / 1.479 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.0001578/49.02, allocations: 76.81 kB / 13 GB, free: 5.902 MB / 1.479 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.67e-05/49.02, allocations: 4 kB / 13 GB, free: 5.898 MB / 1.479 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.213/50.24, allocations: 21.15 MB / 13.02 GB, free: 148.4 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.1895/50.43, allocations: 60.15 MB / 13.08 GB, free: 142.1 MB / 1.479 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.793e-05/50.43, allocations: 8.312 kB / 13.08 GB, free: 142.1 MB / 1.479 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.007728/50.43, allocations: 1.395 MB / 13.08 GB, free: 142.1 MB / 1.479 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.1832/50.62, allocations: 41.91 MB / 13.12 GB, free: 142 MB / 1.479 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.002728/50.62, allocations: 204.4 kB / 13.12 GB, free: 142 MB / 1.479 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0223/50.64, allocations: 13.63 MB / 13.14 GB, free: 136.9 MB / 1.479 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.519e-05/50.64, allocations: 13.12 kB / 13.14 GB, free: 136.9 MB / 1.479 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.107/50.75, allocations: 38.74 MB / 13.18 GB, free: 133.4 MB / 1.479 GB Notification: Performance of postOpt removeConstants (simulation): time 0.01279/50.76, allocations: 3.132 MB / 13.18 GB, free: 132.6 MB / 1.479 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.006531/50.77, allocations: 137.7 kB / 13.18 GB, free: 132.6 MB / 1.479 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0174/50.79, allocations: 1.101 MB / 13.18 GB, free: 132.6 MB / 1.479 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.002439/50.79, allocations: 474.8 kB / 13.18 GB, free: 132.6 MB / 1.479 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.001963/50.79, allocations: 310.1 kB / 13.18 GB, free: 132.6 MB / 1.479 GB Notification: Performance of sorting global known variables: time 0.02326/50.81, allocations: 9.74 MB / 13.19 GB, free: 132.2 MB / 1.479 GB Notification: Performance of sort global known variables: time 1.482e-06/50.81, allocations: 0 / 13.19 GB, free: 132.2 MB / 1.479 GB Notification: Performance of remove unused functions: time 0.05281/50.87, allocations: 7.213 MB / 13.2 GB, free: 132.2 MB / 1.479 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) * Top-level inputs: 0 Notification: Strong component statistics for simulation (537): * Single equations (assignments): 515 * 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 {7 74,30 38,5 80} Notification: Performance of Backend phase and start with SimCode phase: time 0.1178/50.99, allocations: 44.27 MB / 13.24 GB, free: 125.6 MB / 1.479 GB Notification: Performance of simCode: created initialization part: time 0.06984/51.06, allocations: 33.02 MB / 13.27 GB, free: 124.8 MB / 1.479 GB Notification: Performance of simCode: created event and clocks part: time 1.81e-05/51.06, allocations: 4.594 kB / 13.27 GB, free: 124.8 MB / 1.479 GB Notification: Performance of simCode: created simulation system equations: time 0.01908/51.07, allocations: 8.958 MB / 13.28 GB, free: 124.7 MB / 1.479 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.03954/51.11, allocations: 6.739 MB / 13.29 GB, free: 124.7 MB / 1.479 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.07368/51.19, allocations: 26.58 MB / 13.31 GB, free: 119.7 MB / 1.479 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.008377/51.2, allocations: 7.732 MB / 13.32 GB, free: 118.7 MB / 1.479 GB Notification: Performance of simCode: alias equations: time 0.0323/51.23, allocations: 6.836 MB / 13.33 GB, free: 118.6 MB / 1.479 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.01209/51.24, allocations: 6.449 MB / 13.33 GB, free: 118.6 MB / 1.479 GB Notification: Performance of SimCode: time 1.062e-06/51.24, allocations: 0 / 13.33 GB, free: 118.6 MB / 1.479 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 3.29/54.53, allocations: 0.5646 GB / 13.9 GB, free: 130.8 MB / 1.495 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001516/54.53, allocations: 224.8 kB / 13.9 GB, free: 130.6 MB / 1.495 GB Notification: Performance of buildModelFMU: Generate platform static: time 32.68/87.21, allocations: 0 / 13.9 GB, free: 130.6 MB / 1.495 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