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.206/2.206, allocations: 390.3 MB / 405.3 MB, free: 13.42 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.001024/0.001024, allocations: 183.2 kB / 498.1 MB, free: 5.672 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.518/1.518, allocations: 223.1 MB / 0.7948 GB, free: 17.89 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.00101/0.00101, allocations: 100.3 kB / 0.9346 GB, free: 6.184 MB / 0.6823 GB Notification: Performance of FrontEnd - loaded program: time 0.0003739/0.0003739, allocations: 9.938 kB / 1.084 GB, free: 221.1 MB / 0.823 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2689/0.2693, allocations: 142.3 MB / 1.223 GB, free: 114.1 MB / 0.823 GB Notification: Performance of FrontEnd - scodeFlatten: time 1.084/1.353, allocations: 463.7 MB / 1.676 GB, free: 13.38 MB / 0.9948 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002618/1.353, allocations: 109.4 kB / 1.676 GB, free: 13.32 MB / 0.9948 GB Notification: Performance of FrontEnd - DAE generated: time 40.05/41.4, allocations: 10.5 GB / 12.17 GB, free: 97.34 MB / 1.417 GB Notification: Performance of FrontEnd: time 3.697e-06/41.4, allocations: 0 / 12.17 GB, free: 97.34 MB / 1.417 GB Notification: Performance of Transformations before backend: time 0.003573/41.4, allocations: 357.2 kB / 12.17 GB, free: 97.28 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.07496/41.48, allocations: 17.62 MB / 12.19 GB, free: 91.32 MB / 1.417 GB Notification: Performance of prepare preOptimizeDAE: time 5.135e-05/41.48, allocations: 12.12 kB / 12.19 GB, free: 91.32 MB / 1.417 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.004754/41.48, allocations: 0.7822 MB / 12.19 GB, free: 91.25 MB / 1.417 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.01732/41.5, allocations: 2.588 MB / 12.19 GB, free: 90.46 MB / 1.417 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.06749/41.57, allocations: 19.08 MB / 12.21 GB, free: 88.33 MB / 1.417 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0009988/41.57, allocations: 0.5291 MB / 12.21 GB, free: 88.32 MB / 1.417 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.004695/41.58, allocations: 0.7073 MB / 12.21 GB, free: 88.32 MB / 1.417 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.03855/41.61, allocations: 13.44 MB / 12.22 GB, free: 87.71 MB / 1.417 GB Notification: Performance of preOpt findStateOrder (simulation): time 0.0004668/41.61, allocations: 13.98 kB / 12.22 GB, free: 87.71 MB / 1.417 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.003746/41.62, allocations: 249.9 kB / 12.23 GB, free: 87.71 MB / 1.417 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001808/41.62, allocations: 151.1 kB / 12.23 GB, free: 87.71 MB / 1.417 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.03539/41.65, allocations: 18.15 MB / 12.24 GB, free: 87.66 MB / 1.417 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.128/41.78, allocations: 70.41 MB / 12.31 GB, free: 55.8 MB / 1.417 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0173/41.8, allocations: 9.941 MB / 12.32 GB, free: 55.63 MB / 1.417 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.06143/41.86, allocations: 29.33 MB / 12.35 GB, free: 47.58 MB / 1.417 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.01635/41.88, allocations: 8.388 MB / 12.36 GB, free: 47.47 MB / 1.417 GB Notification: Performance of preOpt simplifyInStream (simulation): time 0.04594/41.92, allocations: 15.07 MB / 12.37 GB, free: 47.27 MB / 1.417 GB Notification: Performance of pre-optimization done (n=394): time 5.458e-05/41.92, allocations: 3.594 kB / 12.37 GB, free: 47.27 MB / 1.417 GB Notification: Performance of matching and sorting (n=583): time 0.4524/42.38, allocations: 116.7 MB / 12.49 GB, free: 37.26 MB / 1.417 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001074/42.38, allocations: 116.6 kB / 12.49 GB, free: 37.19 MB / 1.417 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.02931/42.4, allocations: 12.15 MB / 12.5 GB, free: 36.48 MB / 1.417 GB Notification: Performance of collectPreVariables (initialization): time 0.003862/42.41, allocations: 188.4 kB / 12.5 GB, free: 36.45 MB / 1.417 GB Notification: Performance of collectInitialEqns (initialization): time 0.008872/42.42, allocations: 6.011 MB / 12.51 GB, free: 35.14 MB / 1.417 GB Notification: Performance of collectInitialBindings (initialization): time 0.004714/42.42, allocations: 1.959 MB / 12.51 GB, free: 33.86 MB / 1.417 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.003318/42.43, allocations: 147.4 kB / 12.51 GB, free: 33.86 MB / 1.417 GB Notification: Performance of setup shared object (initialization): time 0.0006923/42.43, allocations: 0.598 MB / 12.51 GB, free: 33.54 MB / 1.417 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.01787/42.44, allocations: 8.608 MB / 12.52 GB, free: 33.49 MB / 1.417 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.02045/42.46, allocations: 11.18 MB / 12.53 GB, free: 27.64 MB / 1.417 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.01945/42.48, allocations: 9.477 MB / 12.54 GB, free: 23.7 MB / 1.417 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 8.95e-05/42.48, allocations: 15.78 kB / 12.54 GB, free: 23.7 MB / 1.417 GB Notification: Performance of matching and sorting (n=964) (initialization): time 0.06214/42.55, allocations: 27.78 MB / 12.56 GB, free: 8.719 MB / 1.417 GB Notification: Performance of prepare postOptimizeDAE: time 0.008643/42.56, allocations: 29.71 MB / 12.59 GB, free: 9.445 MB / 1.448 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.000136/42.56, allocations: 49.88 kB / 12.59 GB, free: 9.398 MB / 1.448 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.819/44.37, allocations: 175.8 MB / 12.76 GB, free: 129 MB / 1.448 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.01087/44.39, allocations: 1.792 MB / 12.77 GB, free: 129 MB / 1.448 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0415/44.43, allocations: 26.75 MB / 12.79 GB, free: 123.9 MB / 1.448 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.02008/44.45, allocations: 1.316 MB / 12.79 GB, free: 123.9 MB / 1.448 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.003636/44.45, allocations: 0.7989 MB / 12.79 GB, free: 123.9 MB / 1.448 GB Notification: Performance of prepare postOptimizeDAE: time 1.537e-05/44.45, allocations: 2.125 kB / 12.79 GB, free: 123.9 MB / 1.448 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.05103/44.5, allocations: 26.79 MB / 12.82 GB, free: 123.6 MB / 1.448 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0002071/44.5, allocations: 52.78 kB / 12.82 GB, free: 123.6 MB / 1.448 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.6981/45.2, allocations: 170.9 MB / 12.99 GB, free: 108.6 MB / 1.448 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.00992/45.21, allocations: 1.777 MB / 12.99 GB, free: 106.9 MB / 1.448 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.05964/45.27, allocations: 31.77 MB / 13.02 GB, free: 83.22 MB / 1.448 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.02213/45.29, allocations: 1.288 MB / 13.02 GB, free: 82.12 MB / 1.448 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.004729/45.3, allocations: 0.7603 MB / 13.02 GB, free: 81.41 MB / 1.448 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 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (658): * Single equations (assignments): 644 * 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 82,6 82} Notification: Performance of prepare postOptimizeDAE: time 0.01447/45.31, allocations: 3.112 MB / 13.02 GB, free: 79.5 MB / 1.448 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.007095/45.32, allocations: 1.215 MB / 13.03 GB, free: 78.94 MB / 1.448 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.07242/45.39, allocations: 25.05 MB / 13.05 GB, free: 62.96 MB / 1.448 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.0002067/45.39, allocations: 79.98 kB / 13.05 GB, free: 62.88 MB / 1.448 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.766e-05/45.39, allocations: 0.75 kB / 13.05 GB, free: 62.88 MB / 1.448 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.04827/45.44, allocations: 19.48 MB / 13.07 GB, free: 50.67 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 postOpt removeSimpleEquations (simulation): time 0.1121/45.55, allocations: 46.15 MB / 13.11 GB, free: 19.78 MB / 1.448 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 0.0001067/45.55, allocations: 4 kB / 13.11 GB, free: 19.77 MB / 1.448 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.007684/45.56, allocations: 1.281 MB / 13.12 GB, free: 18.57 MB / 1.448 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.2116/45.77, allocations: 48.98 MB / 13.16 GB, free: 2.898 MB / 1.479 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.002338/45.77, allocations: 200.8 kB / 13.16 GB, free: 2.793 MB / 1.479 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.149/46.92, allocations: 14.85 MB / 13.18 GB, free: 151.9 MB / 1.479 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.586e-05/46.92, allocations: 13.25 kB / 13.18 GB, free: 151.9 MB / 1.479 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.06593/46.99, allocations: 31.88 MB / 13.21 GB, free: 148.5 MB / 1.479 GB Notification: Performance of postOpt removeConstants (simulation): time 0.01328/47, allocations: 2.977 MB / 13.21 GB, free: 148.4 MB / 1.479 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.00639/47.01, allocations: 126.6 kB / 13.21 GB, free: 148.4 MB / 1.479 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.01712/47.03, allocations: 1.038 MB / 13.21 GB, free: 148.4 MB / 1.479 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.002636/47.03, allocations: 464.3 kB / 13.21 GB, free: 148.4 MB / 1.479 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.002273/47.03, allocations: 287.4 kB / 13.21 GB, free: 148.4 MB / 1.479 GB Notification: Performance of sorting global known variables: time 0.0288/47.06, allocations: 9.294 MB / 13.22 GB, free: 148.1 MB / 1.479 GB Notification: Performance of sort global known variables: time 7.21e-07/47.06, allocations: 0 / 13.22 GB, free: 148.1 MB / 1.479 GB Notification: Performance of remove unused functions: time 0.05094/47.11, allocations: 6.625 MB / 13.23 GB, free: 148.1 MB / 1.479 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 29 * 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) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (489): * Single equations (assignments): 467 * 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,38 56,6 82} Notification: Performance of Backend phase and start with SimCode phase: time 0.07754/47.19, allocations: 37.19 MB / 13.27 GB, free: 142.1 MB / 1.479 GB Notification: Performance of simCode: created initialization part: time 0.08556/47.27, allocations: 35.44 MB / 13.3 GB, free: 141.4 MB / 1.479 GB Notification: Performance of simCode: created event and clocks part: time 1.478e-05/47.27, allocations: 3.938 kB / 13.3 GB, free: 141.4 MB / 1.479 GB Notification: Performance of simCode: created simulation system equations: time 0.02413/47.3, allocations: 9.932 MB / 13.31 GB, free: 141.3 MB / 1.479 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.03638/47.33, allocations: 6.18 MB / 13.32 GB, free: 141.2 MB / 1.479 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.1056/47.44, allocations: 73.85 MB / 13.39 GB, free: 89.38 MB / 1.479 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.01875/47.46, allocations: 7.21 MB / 13.4 GB, free: 88.41 MB / 1.479 GB Notification: Performance of simCode: alias equations: time 0.02464/47.48, allocations: 3.788 MB / 13.4 GB, free: 88.3 MB / 1.479 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.01695/47.5, allocations: 6.131 MB / 13.41 GB, free: 88.29 MB / 1.479 GB Notification: Performance of SimCode: time 1.567e-05/47.5, allocations: 0 / 13.41 GB, free: 88.29 MB / 1.479 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 1.73/49.23, allocations: 0.5152 GB / 13.92 GB, free: 162.2 MB / 1.495 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001569/49.23, allocations: 245.2 kB / 13.92 GB, free: 161.9 MB / 1.495 GB Notification: Performance of buildModelFMU: Generate platform static: time 25.48/74.71, allocations: 0 / 13.92 GB, free: 161.9 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