Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Buildings_9_Buildings.Fluid.Sensors.Examples.Density.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.Sensors.Examples.Density,fileNamePrefix="Buildings_9_Buildings_Fluid_Sensors_Examples_Density",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Fluid.Sensors.Examples.Density,fileNamePrefix="Buildings_9_Buildings_Fluid_Sensors_Examples_Density",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.234/2.234, allocations: 390.3 MB / 405.3 MB, free: 13.36 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.001164/0.001165, allocations: 174.2 kB / 498.1 MB, free: 5.602 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.503/1.503, allocations: 223.1 MB / 0.7948 GB, free: 17.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.0008599/0.0008599, allocations: 104.2 kB / 0.9346 GB, free: 6.191 MB / 0.6823 GB Notification: Performance of FrontEnd - loaded program: time 0.0003466/0.0003466, allocations: 7.656 kB / 1.084 GB, free: 221 MB / 0.823 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2613/0.2616, allocations: 142.3 MB / 1.223 GB, free: 114.1 MB / 0.823 GB Notification: Performance of FrontEnd - scodeFlatten: time 3.491/3.753, allocations: 1.926 GB / 3.149 GB, free: 87.39 MB / 1.167 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.000311/3.753, allocations: 96.94 kB / 3.149 GB, free: 87.3 MB / 1.167 GB Notification: Performance of FrontEnd - DAE generated: time 1.566/5.319, allocations: 491.9 MB / 3.629 GB, free: 61.02 MB / 1.167 GB Notification: Performance of FrontEnd: time 2.465e-06/5.319, allocations: 0 / 3.629 GB, free: 61.02 MB / 1.167 GB Notification: Performance of Transformations before backend: time 9.048e-05/5.319, allocations: 19.98 kB / 3.629 GB, free: 61 MB / 1.167 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 131 * Number of variables: 131 Notification: Performance of Generate backend data structure: time 0.003033/5.323, allocations: 1.157 MB / 3.63 GB, free: 59.79 MB / 1.167 GB Notification: Performance of prepare preOptimizeDAE: time 4.244e-05/5.323, allocations: 12.03 kB / 3.63 GB, free: 59.78 MB / 1.167 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0002635/5.323, allocations: 94.52 kB / 3.63 GB, free: 59.68 MB / 1.167 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.002087/5.325, allocations: 258.8 kB / 3.631 GB, free: 59.42 MB / 1.167 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001701/5.327, allocations: 0.6227 MB / 3.631 GB, free: 58.75 MB / 1.167 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.774e-05/5.327, allocations: 45.31 kB / 3.631 GB, free: 58.71 MB / 1.167 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.00016/5.327, allocations: 52 kB / 3.631 GB, free: 58.66 MB / 1.167 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001233/5.328, allocations: 0.6167 MB / 3.632 GB, free: 58.03 MB / 1.167 GB Notification: Performance of preOpt findStateOrder (simulation): time 2.774e-05/5.328, allocations: 0 / 3.632 GB, free: 58.03 MB / 1.167 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.304e-05/5.328, allocations: 24 kB / 3.632 GB, free: 58 MB / 1.167 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.274e-05/5.328, allocations: 21.31 kB / 3.632 GB, free: 57.98 MB / 1.167 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0009914/5.329, allocations: 0.5009 MB / 3.632 GB, free: 57.48 MB / 1.167 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.003807/5.333, allocations: 2.432 MB / 3.635 GB, free: 54.84 MB / 1.167 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0007314/5.334, allocations: 347.5 kB / 3.635 GB, free: 54.49 MB / 1.167 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0006374/5.334, allocations: 311.6 kB / 3.635 GB, free: 54.13 MB / 1.167 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.719e-05/5.335, allocations: 34.89 kB / 3.635 GB, free: 54.09 MB / 1.167 GB Notification: Performance of pre-optimization done (n=39): time 4.328e-06/5.335, allocations: 0 / 3.635 GB, free: 54.09 MB / 1.167 GB Notification: Performance of matching and sorting (n=39): time 0.001506/5.336, allocations: 0.6186 MB / 3.636 GB, free: 53.47 MB / 1.167 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.325e-05/5.336, allocations: 55.41 kB / 3.636 GB, free: 53.4 MB / 1.167 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0005839/5.337, allocations: 450 kB / 3.636 GB, free: 52.95 MB / 1.167 GB Notification: Performance of collectPreVariables (initialization): time 5.788e-05/5.337, allocations: 33.7 kB / 3.637 GB, free: 52.91 MB / 1.167 GB Notification: Performance of collectInitialEqns (initialization): time 0.0002036/5.337, allocations: 324.4 kB / 3.637 GB, free: 52.59 MB / 1.167 GB Notification: Performance of collectInitialBindings (initialization): time 0.0001138/5.337, allocations: 142 kB / 3.637 GB, free: 52.45 MB / 1.167 GB Notification: Performance of simplifyInitialFunctions (initialization): time 1.999e-05/5.337, allocations: 4 kB / 3.637 GB, free: 52.45 MB / 1.167 GB Notification: Performance of setup shared object (initialization): time 0.0001186/5.337, allocations: 370.7 kB / 3.637 GB, free: 52.08 MB / 1.167 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002837/5.338, allocations: 172.8 kB / 3.637 GB, free: 51.91 MB / 1.167 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003942/5.338, allocations: 285.1 kB / 3.638 GB, free: 51.58 MB / 1.167 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003513/5.338, allocations: 212.6 kB / 3.638 GB, free: 51.38 MB / 1.167 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.3e-06/5.338, allocations: 4 kB / 3.638 GB, free: 51.37 MB / 1.167 GB Notification: Performance of matching and sorting (n=53) (initialization): time 0.0008669/5.339, allocations: 0.5163 MB / 3.638 GB, free: 50.85 MB / 1.167 GB Notification: Performance of prepare postOptimizeDAE: time 0.0002675/5.34, allocations: 0.885 MB / 3.639 GB, free: 49.89 MB / 1.167 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.223e-05/5.34, allocations: 0 / 3.639 GB, free: 49.89 MB / 1.167 GB Notification: Performance of postOpt tearingSystem (initialization): time 3.092e-05/5.34, allocations: 4 kB / 3.639 GB, free: 49.89 MB / 1.167 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0006108/5.34, allocations: 111.8 kB / 3.639 GB, free: 49.78 MB / 1.167 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0003577/5.341, allocations: 0.5939 MB / 3.64 GB, free: 49.16 MB / 1.167 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0008206/5.341, allocations: 95.52 kB / 3.64 GB, free: 49.07 MB / 1.167 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.604e-05/5.341, allocations: 16 kB / 3.64 GB, free: 49.05 MB / 1.167 GB Notification: Performance of prepare postOptimizeDAE: time 1.356e-05/5.341, allocations: 4 kB / 3.64 GB, free: 49.05 MB / 1.167 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.0007458/5.342, allocations: 447.5 kB / 3.641 GB, free: 48.61 MB / 1.167 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.106e-05/5.342, allocations: 7.984 kB / 3.641 GB, free: 48.61 MB / 1.167 GB Notification: Performance of postOpt tearingSystem (initialization): time 6.973e-06/5.342, allocations: 7.938 kB / 3.641 GB, free: 48.6 MB / 1.167 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003906/5.343, allocations: 99.89 kB / 3.641 GB, free: 48.5 MB / 1.167 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.377e-06/5.343, allocations: 12.3 kB / 3.641 GB, free: 48.49 MB / 1.167 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0006927/5.343, allocations: 83.55 kB / 3.641 GB, free: 48.41 MB / 1.167 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.405e-05/5.343, allocations: 31.91 kB / 3.641 GB, free: 48.38 MB / 1.167 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 10 * Number of states: 0 () * Number of discrete variables: 0 () * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (53): * Single equations (assignments): 52 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 1 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Equation system details: * Constant Jacobian: 0 * Linear Jacobian (size,density): 0 * Non-linear Jacobian: 1 {1} * Without analytic Jacobian: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0003716/5.344, allocations: 305 kB / 3.641 GB, free: 48.07 MB / 1.167 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001235/5.344, allocations: 63.28 kB / 3.641 GB, free: 48 MB / 1.167 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0007738/5.345, allocations: 482.7 kB / 3.642 GB, free: 47.52 MB / 1.167 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.179e-06/5.345, allocations: 4 kB / 3.642 GB, free: 47.52 MB / 1.167 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.36e-06/5.345, allocations: 0 / 3.642 GB, free: 47.52 MB / 1.167 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.0006358/5.345, allocations: 0.7033 MB / 3.642 GB, free: 46.73 MB / 1.167 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001924/5.347, allocations: 1.28 MB / 3.644 GB, free: 45.37 MB / 1.167 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.579e-06/5.347, allocations: 4 kB / 3.644 GB, free: 45.37 MB / 1.167 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0005261/5.348, allocations: 103.9 kB / 3.644 GB, free: 45.27 MB / 1.167 GB Notification: Performance of postOpt tearingSystem (simulation): time 8.095e-06/5.348, allocations: 4.219 kB / 3.644 GB, free: 45.26 MB / 1.167 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.454e-05/5.348, allocations: 19.98 kB / 3.644 GB, free: 45.24 MB / 1.167 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0002086/5.348, allocations: 0.5898 MB / 3.644 GB, free: 44.63 MB / 1.167 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.885e-06/5.348, allocations: 4.031 kB / 3.644 GB, free: 44.62 MB / 1.167 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001049/5.349, allocations: 0.8801 MB / 3.645 GB, free: 43.66 MB / 1.167 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0003124/5.35, allocations: 180.3 kB / 3.645 GB, free: 43.46 MB / 1.167 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 9.549e-05/5.35, allocations: 8 kB / 3.645 GB, free: 43.46 MB / 1.167 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0005554/5.35, allocations: 55.86 kB / 3.645 GB, free: 43.4 MB / 1.167 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.53e-05/5.35, allocations: 23.97 kB / 3.645 GB, free: 43.38 MB / 1.167 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.312e-05/5.35, allocations: 15.98 kB / 3.645 GB, free: 43.36 MB / 1.167 GB Notification: Performance of sorting global known variables: time 0.0003631/5.351, allocations: 346.8 kB / 3.646 GB, free: 43.03 MB / 1.167 GB Notification: Performance of sort global known variables: time 2.1e-07/5.351, allocations: 0 / 3.646 GB, free: 43.03 MB / 1.167 GB Notification: Performance of remove unused functions: time 0.001577/5.352, allocations: 495.1 kB / 3.646 GB, free: 42.54 MB / 1.167 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 8 * Number of states: 4 (vol.dynBal.medium.Xi[1],vol.dynBal.U,vol.dynBal.m,senDenFlo.d) * Number of discrete variables: 0 () * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (39): * Single equations (assignments): 38 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 1 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Equation system details: * Constant Jacobian: 0 * Linear Jacobian (size,density): 0 * Non-linear Jacobian: 1 {1} * Without analytic Jacobian: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.003321/5.356, allocations: 3.18 MB / 3.649 GB, free: 39.25 MB / 1.167 GB Notification: Performance of simCode: created initialization part: time 0.001298/5.357, allocations: 0.6568 MB / 3.65 GB, free: 38.6 MB / 1.167 GB Notification: Performance of simCode: created event and clocks part: time 4.018e-06/5.357, allocations: 4 kB / 3.65 GB, free: 38.59 MB / 1.167 GB Notification: Performance of simCode: created simulation system equations: time 0.0003572/5.357, allocations: 219.7 kB / 3.65 GB, free: 38.38 MB / 1.167 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001531/5.359, allocations: 354 kB / 3.65 GB, free: 38.03 MB / 1.167 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.005479/5.364, allocations: 5.162 MB / 3.656 GB, free: 32.76 MB / 1.167 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003797/5.365, allocations: 0.9616 MB / 3.656 GB, free: 31.77 MB / 1.167 GB Notification: Performance of simCode: alias equations: time 0.0007319/5.366, allocations: 201 kB / 3.657 GB, free: 31.57 MB / 1.167 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002985/5.366, allocations: 227.4 kB / 3.657 GB, free: 31.35 MB / 1.167 GB Notification: Performance of SimCode: time 1.263e-06/5.366, allocations: 0 / 3.657 GB, free: 31.35 MB / 1.167 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.6968/6.063, allocations: 38.18 MB / 3.694 GB, free: 311.2 MB / 1.167 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001723/6.063, allocations: 239.4 kB / 3.694 GB, free: 311 MB / 1.167 GB Notification: Performance of buildModelFMU: Generate platform static: time 3.246/9.309, allocations: 0 / 3.694 GB, free: 311 MB / 1.167 GB (rm -f Buildings_9_Buildings.Fluid.Sensors.Examples.Density.pipe ; mkfifo Buildings_9_Buildings.Fluid.Sensors.Examples.Density.pipe ; head -c 1048576 < Buildings_9_Buildings.Fluid.Sensors.Examples.Density.pipe >> ../files/Buildings_9_Buildings.Fluid.Sensors.Examples.Density.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Buildings_9_Buildings.Fluid.Sensors.Examples.Density_res.mat --tempDir=temp_Buildings_9_Buildings_Fluid_Sensors_Examples_Density_fmu --startTime=0 --stopTime=60 --timeout=50 --tolerance=1e-06 Buildings_9_Buildings_Fluid_Sensors_Examples_Density.fmu > Buildings_9_Buildings.Fluid.Sensors.Examples.Density.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result Buildings_9_Buildings.Fluid.Sensors.Examples.Density_res.mat does not exist to compare? outputFormat=mat