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: translateModel(Buildings.Fluid.Sensors.Examples.Density,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|masFloRat.ports.1..m_flow|senDenVol.d|senDenFlo.d",fileNamePrefix="Buildings_9_Buildings.Fluid.Sensors.Examples.Density") translateModel(Buildings.Fluid.Sensors.Examples.Density,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|masFloRat.ports.1..m_flow|senDenVol.d|senDenFlo.d",fileNamePrefix="Buildings_9_Buildings.Fluid.Sensors.Examples.Density") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.1.1-maint.9.1.x/package.mo): time 2.291/2.291, allocations: 390.3 MB / 405.3 MB, free: 13.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.001062/0.001062, allocations: 171 kB / 498.1 MB, free: 5.703 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.679/1.679, allocations: 223.2 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.0009704/0.0009707, allocations: 100.3 kB / 0.9346 GB, free: 6.234 MB / 0.6823 GB Notification: Performance of FrontEnd - loaded program: time 0.0003901/0.0003904, allocations: 13.19 kB / 1.084 GB, free: 221.3 MB / 0.823 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3317/0.3321, allocations: 142.3 MB / 1.223 GB, free: 114.3 MB / 0.823 GB Notification: Performance of FrontEnd - scodeFlatten: time 4.398/4.73, allocations: 1.926 GB / 3.149 GB, free: 87.77 MB / 1.167 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003117/4.731, allocations: 98.8 kB / 3.149 GB, free: 87.67 MB / 1.167 GB Notification: Performance of FrontEnd - DAE generated: time 1.684/6.414, allocations: 491.9 MB / 3.629 GB, free: 61.41 MB / 1.167 GB Notification: Performance of FrontEnd: time 1.603e-06/6.414, allocations: 4 kB / 3.629 GB, free: 61.4 MB / 1.167 GB Notification: Performance of Transformations before backend: time 6.474e-05/6.414, allocations: 23.98 kB / 3.629 GB, free: 61.38 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.002416/6.417, allocations: 1.141 MB / 3.63 GB, free: 60.19 MB / 1.167 GB Notification: Performance of prepare preOptimizeDAE: time 4.498e-05/6.417, allocations: 8.031 kB / 3.63 GB, free: 60.18 MB / 1.167 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001671/6.419, allocations: 266.8 kB / 3.63 GB, free: 59.92 MB / 1.167 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.00107/6.42, allocations: 0.6189 MB / 3.631 GB, free: 59.25 MB / 1.167 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.209e-05/6.42, allocations: 37.31 kB / 3.631 GB, free: 59.22 MB / 1.167 GB Notification: Performance of preOpt expandDerOperator (simulation): time 8.574e-05/6.42, allocations: 56 kB / 3.631 GB, free: 59.16 MB / 1.167 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0009558/6.421, allocations: 0.6284 MB / 3.632 GB, free: 58.52 MB / 1.167 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.992e-05/6.421, allocations: 0 / 3.632 GB, free: 58.52 MB / 1.167 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.104e-05/6.421, allocations: 20 kB / 3.632 GB, free: 58.5 MB / 1.167 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.43e-05/6.421, allocations: 17.31 kB / 3.632 GB, free: 58.48 MB / 1.167 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.000757/6.422, allocations: 0.5086 MB / 3.632 GB, free: 57.98 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.002552/6.424, allocations: 2.428 MB / 3.635 GB, free: 55.34 MB / 1.167 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0005739/6.425, allocations: 348.6 kB / 3.635 GB, free: 54.99 MB / 1.167 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0004759/6.425, allocations: 311.5 kB / 3.635 GB, free: 54.63 MB / 1.167 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.403e-05/6.425, allocations: 38.89 kB / 3.635 GB, free: 54.58 MB / 1.167 GB Notification: Performance of pre-optimization done (n=39): time 2.745e-06/6.425, allocations: 0 / 3.635 GB, free: 54.58 MB / 1.167 GB Notification: Performance of matching and sorting (n=39): time 0.001207/6.427, allocations: 0.6107 MB / 3.636 GB, free: 53.97 MB / 1.167 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.422e-05/6.427, allocations: 63.41 kB / 3.636 GB, free: 53.89 MB / 1.167 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004322/6.427, allocations: 442.1 kB / 3.636 GB, free: 53.46 MB / 1.167 GB Notification: Performance of collectPreVariables (initialization): time 3.764e-05/6.427, allocations: 33.7 kB / 3.636 GB, free: 53.42 MB / 1.167 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001695/6.427, allocations: 328.4 kB / 3.637 GB, free: 53.09 MB / 1.167 GB Notification: Performance of collectInitialBindings (initialization): time 9.404e-05/6.427, allocations: 138 kB / 3.637 GB, free: 52.95 MB / 1.167 GB Notification: Performance of simplifyInitialFunctions (initialization): time 2.249e-05/6.427, allocations: 12 kB / 3.637 GB, free: 52.94 MB / 1.167 GB Notification: Performance of setup shared object (initialization): time 0.0001162/6.428, allocations: 366.7 kB / 3.637 GB, free: 52.57 MB / 1.167 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002686/6.428, allocations: 176.7 kB / 3.637 GB, free: 52.4 MB / 1.167 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003319/6.428, allocations: 285.1 kB / 3.638 GB, free: 52.07 MB / 1.167 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003335/6.428, allocations: 212.5 kB / 3.638 GB, free: 51.87 MB / 1.167 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.895e-06/6.429, allocations: 0 / 3.638 GB, free: 51.87 MB / 1.167 GB Notification: Performance of matching and sorting (n=53) (initialization): time 0.0007288/6.429, allocations: 0.5164 MB / 3.638 GB, free: 51.34 MB / 1.167 GB Notification: Performance of prepare postOptimizeDAE: time 0.0001869/6.429, allocations: 0.8811 MB / 3.639 GB, free: 50.39 MB / 1.167 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.298e-06/6.429, allocations: 4 kB / 3.639 GB, free: 50.39 MB / 1.167 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.085e-05/6.429, allocations: 4 kB / 3.639 GB, free: 50.39 MB / 1.167 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005456/6.43, allocations: 107.8 kB / 3.639 GB, free: 50.28 MB / 1.167 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0002929/6.43, allocations: 0.6016 MB / 3.64 GB, free: 49.66 MB / 1.167 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0006622/6.431, allocations: 83.58 kB / 3.64 GB, free: 49.57 MB / 1.167 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.679e-05/6.431, allocations: 27.94 kB / 3.64 GB, free: 49.55 MB / 1.167 GB Notification: Performance of prepare postOptimizeDAE: time 8.256e-06/6.431, allocations: 4 kB / 3.64 GB, free: 49.54 MB / 1.167 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.0006643/6.432, allocations: 443.6 kB / 3.64 GB, free: 49.11 MB / 1.167 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.457e-06/6.432, allocations: 4 kB / 3.64 GB, free: 49.11 MB / 1.167 GB Notification: Performance of postOpt tearingSystem (initialization): time 4.969e-06/6.432, allocations: 4 kB / 3.64 GB, free: 49.1 MB / 1.167 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003728/6.432, allocations: 104.1 kB / 3.641 GB, free: 49 MB / 1.167 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.47e-06/6.432, allocations: 11.98 kB / 3.641 GB, free: 48.99 MB / 1.167 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005174/6.433, allocations: 79.55 kB / 3.641 GB, free: 48.91 MB / 1.167 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.571e-05/6.433, allocations: 23.94 kB / 3.641 GB, free: 48.89 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.0003727/6.433, allocations: 312.9 kB / 3.641 GB, free: 48.57 MB / 1.167 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.389e-05/6.433, allocations: 63.3 kB / 3.641 GB, free: 48.51 MB / 1.167 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.00076/6.434, allocations: 482.7 kB / 3.641 GB, free: 48.03 MB / 1.167 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.97e-06/6.434, allocations: 4 kB / 3.641 GB, free: 48.03 MB / 1.167 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.646e-06/6.434, allocations: 3.984 kB / 3.641 GB, free: 48.02 MB / 1.167 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.000619/6.435, allocations: 0.7072 MB / 3.642 GB, free: 47.23 MB / 1.167 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001743/6.436, allocations: 1.273 MB / 3.643 GB, free: 45.88 MB / 1.167 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.926e-06/6.436, allocations: 0 / 3.643 GB, free: 45.88 MB / 1.167 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000493/6.437, allocations: 107.9 kB / 3.643 GB, free: 45.77 MB / 1.167 GB Notification: Performance of postOpt tearingSystem (simulation): time 5.931e-06/6.437, allocations: 8.219 kB / 3.644 GB, free: 45.77 MB / 1.167 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.129e-05/6.437, allocations: 12 kB / 3.644 GB, free: 45.75 MB / 1.167 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0002221/6.437, allocations: 0.5898 MB / 3.644 GB, free: 45.14 MB / 1.167 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.936e-06/6.437, allocations: 4.031 kB / 3.644 GB, free: 45.14 MB / 1.167 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0009467/6.438, allocations: 0.8842 MB / 3.645 GB, free: 44.17 MB / 1.167 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0002335/6.438, allocations: 180.3 kB / 3.645 GB, free: 43.97 MB / 1.167 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 7.411e-05/6.438, allocations: 19.94 kB / 3.645 GB, free: 43.95 MB / 1.167 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004607/6.439, allocations: 43.95 kB / 3.645 GB, free: 43.91 MB / 1.167 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.154e-05/6.439, allocations: 27.97 kB / 3.645 GB, free: 43.88 MB / 1.167 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.916e-05/6.439, allocations: 12 kB / 3.645 GB, free: 43.87 MB / 1.167 GB Notification: Performance of sorting global known variables: time 0.0003426/6.439, allocations: 354.8 kB / 3.646 GB, free: 43.53 MB / 1.167 GB Notification: Performance of sort global known variables: time 1.2e-07/6.439, allocations: 0 / 3.646 GB, free: 43.53 MB / 1.167 GB Notification: Performance of remove unused functions: time 0.001485/6.441, allocations: 491.1 kB / 3.646 GB, free: 43.05 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.001858/6.443, allocations: 1.385 MB / 3.647 GB, free: 41.62 MB / 1.167 GB Notification: Performance of simCode: created initialization part: time 0.001231/6.444, allocations: 0.6567 MB / 3.648 GB, free: 40.96 MB / 1.167 GB Notification: Performance of simCode: created event and clocks part: time 3.727e-06/6.444, allocations: 0 / 3.648 GB, free: 40.96 MB / 1.167 GB Notification: Performance of simCode: created simulation system equations: time 0.000367/6.444, allocations: 225.1 kB / 3.648 GB, free: 40.74 MB / 1.167 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.00149/6.446, allocations: 362.1 kB / 3.649 GB, free: 40.39 MB / 1.167 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002363/6.448, allocations: 1.717 MB / 3.65 GB, free: 38.62 MB / 1.167 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004341/6.449, allocations: 0.9616 MB / 3.651 GB, free: 37.64 MB / 1.167 GB Notification: Performance of simCode: alias equations: time 0.0007212/6.449, allocations: 201 kB / 3.651 GB, free: 37.44 MB / 1.167 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001296/6.45, allocations: 47.44 kB / 3.651 GB, free: 37.39 MB / 1.167 GB Notification: Performance of SimCode: time 5.31e-07/6.45, allocations: 0 / 3.651 GB, free: 37.39 MB / 1.167 GB Notification: Performance of Templates: time 0.03635/6.486, allocations: 27.62 MB / 3.678 GB, free: 9.91 MB / 1.167 GB make -j1 -f Buildings_9_Buildings.Fluid.Sensors.Examples.Density.makefile (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 & ./Buildings_9_Buildings.Fluid.Sensors.Examples.Density -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Buildings_9_Buildings.Fluid.Sensors.Examples.Density.pipe 2>&1) diffSimulationResults("Buildings_9_Buildings.Fluid.Sensors.Examples.Density_res.mat","/mnt/ReferenceFiles/Buildings/csv/maint_9.1.x/Buildings_Fluid_Sensors_Examples_Density.csv","../files/Buildings_9_Buildings.Fluid.Sensors.Examples.Density.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches