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.226/2.226, allocations: 387.1 MB / 399.7 MB, free: 9.43 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.001068/0.001069, allocations: 169 kB / 492.3 MB, free: 0.6055 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.459/1.459, allocations: 221.3 MB / 0.7871 GB, free: 12.92 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.0008429/0.000843, allocations: 95.38 kB / 0.9267 GB, free: 14 MB / 0.698 GB Notification: Performance of FrontEnd - loaded program: time 3.921e-05/3.923e-05, allocations: 4 kB / 1.073 GB, free: 180.3 MB / 0.7605 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2927/0.2928, allocations: 142.3 MB / 1.212 GB, free: 38.41 MB / 0.7605 GB Notification: Performance of FrontEnd - scodeFlatten: time 1.12/1.413, allocations: 464.2 MB / 1.666 GB, free: 14.62 MB / 1.089 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.000294/1.414, allocations: 102 kB / 1.666 GB, free: 14.57 MB / 1.089 GB Notification: Performance of FrontEnd - DAE generated: time 43.82/45.23, allocations: 10.71 GB / 12.37 GB, free: 29.09 MB / 1.417 GB Notification: Performance of FrontEnd: time 2.004e-06/45.23, allocations: 0 / 12.37 GB, free: 29.09 MB / 1.417 GB Notification: Performance of Transformations before backend: time 0.003526/45.23, allocations: 351.7 kB / 12.37 GB, free: 28.74 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.044/45.28, allocations: 11.1 MB / 12.38 GB, free: 17.55 MB / 1.417 GB Notification: Performance of prepare preOptimizeDAE: time 5.936e-05/45.28, allocations: 12.03 kB / 12.38 GB, free: 17.54 MB / 1.417 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.004236/45.28, allocations: 0.7745 MB / 12.38 GB, free: 16.75 MB / 1.417 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.01595/45.3, allocations: 2.448 MB / 12.39 GB, free: 14.29 MB / 1.417 GB Notification: Performance of preOpt evaluateParameters (simulation): time 2.605/47.9, allocations: 18.52 MB / 12.4 GB, free: 94.85 MB / 1.417 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.001216/47.91, allocations: 0.5288 MB / 12.4 GB, free: 94.84 MB / 1.417 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.004393/47.91, allocations: 0.7096 MB / 12.4 GB, free: 94.84 MB / 1.417 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.02668/47.94, allocations: 8.33 MB / 12.41 GB, free: 93.77 MB / 1.417 GB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001974/47.94, allocations: 16.25 kB / 12.41 GB, free: 93.77 MB / 1.417 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.001176/47.94, allocations: 256.7 kB / 12.41 GB, free: 93.77 MB / 1.417 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001613/47.94, allocations: 154.8 kB / 12.41 GB, free: 93.77 MB / 1.417 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01699/47.95, allocations: 6.667 MB / 12.42 GB, free: 93.73 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.09705/48.05, allocations: 50.16 MB / 12.47 GB, free: 67.77 MB / 1.417 GB Notification: Performance of preOpt comSubExp (simulation): time 0.01203/48.06, allocations: 4.709 MB / 12.47 GB, free: 67.61 MB / 1.417 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.009526/48.07, allocations: 3.632 MB / 12.48 GB, free: 67.57 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.04009/48.11, allocations: 13.8 MB / 12.49 GB, free: 64.59 MB / 1.417 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.006461/48.12, allocations: 3.271 MB / 12.49 GB, free: 64.47 MB / 1.417 GB Notification: Performance of preOpt simplifyInStream (simulation): time 0.01263/48.13, allocations: 2.394 MB / 12.5 GB, free: 64.37 MB / 1.417 GB Notification: Performance of pre-optimization done (n=326): time 2.809e-05/48.13, allocations: 2.094 kB / 12.5 GB, free: 64.37 MB / 1.417 GB Notification: Performance of matching and sorting (n=514): time 0.1237/48.26, allocations: 36.98 MB / 12.53 GB, free: 57.26 MB / 1.417 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001019/48.26, allocations: 113.5 kB / 12.53 GB, free: 57.19 MB / 1.417 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.02995/48.29, allocations: 12.21 MB / 12.54 GB, free: 56.46 MB / 1.417 GB Notification: Performance of collectPreVariables (initialization): time 0.001959/48.29, allocations: 170.6 kB / 12.54 GB, free: 56.43 MB / 1.417 GB Notification: Performance of collectInitialEqns (initialization): time 0.007562/48.3, allocations: 6.23 MB / 12.55 GB, free: 55.35 MB / 1.417 GB Notification: Performance of collectInitialBindings (initialization): time 0.002596/48.3, allocations: 1.738 MB / 12.55 GB, free: 54.43 MB / 1.417 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0008304/48.3, allocations: 145.3 kB / 12.55 GB, free: 54.43 MB / 1.417 GB Notification: Performance of setup shared object (initialization): time 0.0003978/48.3, allocations: 0.5961 MB / 12.55 GB, free: 54.12 MB / 1.417 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.006113/48.31, allocations: 3.946 MB / 12.56 GB, free: 54.09 MB / 1.417 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.008564/48.32, allocations: 6.856 MB / 12.56 GB, free: 50.75 MB / 1.417 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.008043/48.32, allocations: 4.726 MB / 12.57 GB, free: 50.58 MB / 1.417 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.971e-05/48.32, allocations: 18.25 kB / 12.57 GB, free: 50.58 MB / 1.417 GB Notification: Performance of matching and sorting (n=957) (initialization): time 0.03152/48.35, allocations: 13.96 MB / 12.58 GB, free: 49.53 MB / 1.417 GB Notification: Performance of prepare postOptimizeDAE: time 0.01641/48.37, allocations: 38.59 MB / 12.62 GB, free: 41.68 MB / 1.448 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0002949/48.37, allocations: 63.34 kB / 12.62 GB, free: 41.68 MB / 1.448 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.007748/48.38, allocations: 3.41 MB / 12.62 GB, free: 41.59 MB / 1.448 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0114/48.39, allocations: 1.905 MB / 12.62 GB, free: 41.59 MB / 1.448 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01352/48.4, allocations: 12.31 MB / 12.64 GB, free: 34.86 MB / 1.448 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.01834/48.42, allocations: 1.243 MB / 12.64 GB, free: 34.8 MB / 1.448 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.002762/48.43, allocations: 493.2 kB / 12.64 GB, free: 34.8 MB / 1.448 GB Notification: Performance of prepare postOptimizeDAE: time 1.646e-05/48.43, allocations: 3.875 kB / 12.64 GB, free: 34.8 MB / 1.448 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.02387/48.45, allocations: 12.94 MB / 12.65 GB, free: 34.45 MB / 1.448 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0002642/48.45, allocations: 63.19 kB / 12.65 GB, free: 34.45 MB / 1.448 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.008391/48.46, allocations: 3.648 MB / 12.65 GB, free: 34.37 MB / 1.448 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.01004/48.47, allocations: 1.896 MB / 12.66 GB, free: 34.37 MB / 1.448 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.02668/48.49, allocations: 16.62 MB / 12.67 GB, free: 44.79 MB / 1.464 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.01579/48.51, allocations: 1.215 MB / 12.67 GB, free: 44.74 MB / 1.464 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.002088/48.51, allocations: 448.1 kB / 12.67 GB, free: 44.74 MB / 1.464 GB 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 (742): * Single equations (assignments): 725 * 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: 6 * 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: 6 {1 4,1 2,1 2,1 2,6 79,7 78} Notification: Performance of prepare postOptimizeDAE: time 0.002597/48.52, allocations: 0.541 MB / 12.67 GB, free: 44.59 MB / 1.464 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.004015/48.52, allocations: 1.212 MB / 12.68 GB, free: 43.92 MB / 1.464 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0251/48.54, allocations: 12.41 MB / 12.69 GB, free: 43.32 MB / 1.464 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.463e-05/48.54, allocations: 64.59 kB / 12.69 GB, free: 43.32 MB / 1.464 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.328e-05/48.54, allocations: 2.859 kB / 12.69 GB, free: 43.32 MB / 1.464 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.01894/48.56, allocations: 9.783 MB / 12.7 GB, free: 42.73 MB / 1.464 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.0519/48.62, allocations: 24.52 MB / 12.72 GB, free: 40.66 MB / 1.464 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.992e-05/48.62, allocations: 5.906 kB / 12.72 GB, free: 40.66 MB / 1.464 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.006546/48.62, allocations: 1.209 MB / 12.72 GB, free: 40.66 MB / 1.464 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.005274/48.63, allocations: 2.393 MB / 12.73 GB, free: 40.58 MB / 1.464 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.001171/48.63, allocations: 172.5 kB / 12.73 GB, free: 40.58 MB / 1.464 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01003/48.64, allocations: 10.99 MB / 12.74 GB, free: 33.86 MB / 1.464 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.15e-05/48.64, allocations: 14.66 kB / 12.74 GB, free: 33.86 MB / 1.464 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.03176/48.67, allocations: 19.1 MB / 12.75 GB, free: 29.55 MB / 1.464 GB Notification: Performance of postOpt removeConstants (simulation): time 0.01005/48.68, allocations: 2.575 MB / 12.76 GB, free: 28.75 MB / 1.464 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.004533/48.69, allocations: 112.6 kB / 12.76 GB, free: 28.75 MB / 1.464 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.01305/48.7, allocations: 1.033 MB / 12.76 GB, free: 28.71 MB / 1.464 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.001446/48.7, allocations: 391.9 kB / 12.76 GB, free: 28.7 MB / 1.464 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0007516/48.7, allocations: 256 kB / 12.76 GB, free: 28.7 MB / 1.464 GB Notification: Performance of sorting global known variables: time 0.01911/48.72, allocations: 9.279 MB / 12.77 GB, free: 28.28 MB / 1.464 GB Notification: Performance of sort global known variables: time 6.41e-07/48.72, allocations: 2.406 kB / 12.77 GB, free: 28.28 MB / 1.464 GB Notification: Performance of remove unused functions: time 0.03928/48.76, allocations: 6.037 MB / 12.77 GB, free: 28.23 MB / 1.464 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 (441): * Single equations (assignments): 416 * 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: 6 * 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: 6 {8 73,1 4,1 2,1 2,1 2,8 77} Notification: Performance of Backend phase and start with SimCode phase: time 0.0345/48.79, allocations: 24.19 MB / 12.8 GB, free: 37.65 MB / 1.479 GB Notification: Performance of simCode: created initialization part: time 0.02987/48.82, allocations: 16.87 MB / 12.81 GB, free: 36.92 MB / 1.479 GB Notification: Performance of simCode: created event and clocks part: time 1.369e-05/48.82, allocations: 3.812 kB / 12.81 GB, free: 36.92 MB / 1.479 GB Notification: Performance of simCode: created simulation system equations: time 0.007999/48.83, allocations: 4.672 MB / 12.82 GB, free: 36.74 MB / 1.479 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.02975/48.86, allocations: 5.901 MB / 12.82 GB, free: 36.39 MB / 1.479 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.05847/48.92, allocations: 22.8 MB / 12.85 GB, free: 31.67 MB / 1.479 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.009364/48.93, allocations: 7.138 MB / 12.85 GB, free: 30.54 MB / 1.479 GB Notification: Performance of simCode: alias equations: time 0.02956/48.96, allocations: 6.535 MB / 12.86 GB, free: 29.7 MB / 1.479 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.009276/48.97, allocations: 5.804 MB / 12.87 GB, free: 28.31 MB / 1.479 GB Notification: Performance of SimCode: time 1.052e-06/48.97, allocations: 4 kB / 12.87 GB, free: 28.3 MB / 1.479 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 1.683/50.65, allocations: 419.9 MB / 13.28 GB, free: 144 MB / 1.495 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001704/50.65, allocations: 225.8 kB / 13.28 GB, free: 143.8 MB / 1.495 GB Notification: Performance of buildModelFMU: Generate platform static: time 23.16/73.82, allocations: 0 / 13.28 GB, free: 143.8 MB / 1.495 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