Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Buildings_latest_Buildings.Fluid.Sensors.Examples.Density.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 10.0.0-master/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 10.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 10.0.0-master/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_latest_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_latest_Buildings.Fluid.Sensors.Examples.Density") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 10.0.0-master/package.mo): time 2.619/2.619, allocations: 393.5 MB / 408.4 MB, free: 10.99 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.001454/0.001454, allocations: 178.5 kB / 0.4902 GB, free: 2.238 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.647/1.647, allocations: 223.1 MB / 0.7992 GB, free: 14.71 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.0013/0.0013, allocations: 104.2 kB / 0.9396 GB, free: 1.871 MB / 0.6823 GB Notification: Performance of FrontEnd - loaded program: time 0.0003467/0.0003467, allocations: 10.72 kB / 1.09 GB, free: 216.1 MB / 0.823 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3366/0.337, allocations: 143 MB / 1.229 GB, free: 105.7 MB / 0.823 GB Notification: Performance of FrontEnd - scodeFlatten: time 5.221/5.558, allocations: 1.926 GB / 3.156 GB, free: 26.25 MB / 1.167 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003584/5.558, allocations: 91.09 kB / 3.156 GB, free: 26.21 MB / 1.167 GB Notification: Performance of FrontEnd - DAE generated: time 1.987/7.545, allocations: 491.9 MB / 3.636 GB, free: 4.375 MB / 1.167 GB Notification: Performance of FrontEnd: time 1.433e-06/7.546, allocations: 0 / 3.636 GB, free: 4.375 MB / 1.167 GB Notification: Performance of Transformations before backend: time 0.0001206/7.546, allocations: 27.92 kB / 3.636 GB, free: 4.348 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.003849/7.55, allocations: 1.137 MB / 3.637 GB, free: 3.156 MB / 1.167 GB Notification: Performance of prepare preOptimizeDAE: time 5.002e-05/7.55, allocations: 8.031 kB / 3.637 GB, free: 3.148 MB / 1.167 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.002362/7.552, allocations: 267.1 kB / 3.638 GB, free: 2.887 MB / 1.167 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001798/7.554, allocations: 0.6146 MB / 3.638 GB, free: 2.23 MB / 1.167 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.796e-05/7.554, allocations: 41.31 kB / 3.638 GB, free: 2.191 MB / 1.167 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002141/7.554, allocations: 60 kB / 3.638 GB, free: 2.133 MB / 1.167 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001158/7.555, allocations: 0.6089 MB / 3.639 GB, free: 1.508 MB / 1.167 GB Notification: Performance of preOpt findStateOrder (simulation): time 2.247e-05/7.555, allocations: 4 kB / 3.639 GB, free: 1.504 MB / 1.167 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.287e-05/7.555, allocations: 20 kB / 3.639 GB, free: 1.484 MB / 1.167 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.327e-05/7.555, allocations: 21.3 kB / 3.639 GB, free: 1.461 MB / 1.167 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0007794/7.556, allocations: 0.5125 MB / 3.639 GB, free: 0.9492 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 1/8.556, allocations: 2.42 MB / 3.642 GB, free: 303.5 MB / 1.167 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0007473/8.557, allocations: 355.7 kB / 3.642 GB, free: 303.5 MB / 1.167 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0006025/8.558, allocations: 299.3 kB / 3.642 GB, free: 303.2 MB / 1.167 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.317e-05/8.558, allocations: 41.02 kB / 3.642 GB, free: 303.1 MB / 1.167 GB Notification: Performance of pre-optimization done (n=39): time 5.821e-06/8.558, allocations: 0.5156 kB / 3.642 GB, free: 303.1 MB / 1.167 GB Notification: Performance of matching and sorting (n=39): time 0.00159/8.56, allocations: 0.6175 MB / 3.643 GB, free: 303.1 MB / 1.167 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.569e-05/8.56, allocations: 54.38 kB / 3.643 GB, free: 303 MB / 1.167 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0005756/8.56, allocations: 444.4 kB / 3.643 GB, free: 302.9 MB / 1.167 GB Notification: Performance of collectPreVariables (initialization): time 5.297e-05/8.56, allocations: 36.61 kB / 3.643 GB, free: 302.9 MB / 1.167 GB Notification: Performance of collectInitialEqns (initialization): time 0.0002596/8.56, allocations: 329.6 kB / 3.644 GB, free: 302.7 MB / 1.167 GB Notification: Performance of collectInitialBindings (initialization): time 0.0001317/8.561, allocations: 139.3 kB / 3.644 GB, free: 302.7 MB / 1.167 GB Notification: Performance of simplifyInitialFunctions (initialization): time 2.531e-05/8.561, allocations: 8.406 kB / 3.644 GB, free: 302.7 MB / 1.167 GB Notification: Performance of setup shared object (initialization): time 0.0001552/8.561, allocations: 365.1 kB / 3.644 GB, free: 302.3 MB / 1.167 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003265/8.561, allocations: 171.1 kB / 3.644 GB, free: 302.3 MB / 1.167 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004314/8.562, allocations: 283.9 kB / 3.645 GB, free: 302.2 MB / 1.167 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004043/8.562, allocations: 210.9 kB / 3.645 GB, free: 302.2 MB / 1.167 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.588e-06/8.562, allocations: 1.594 kB / 3.645 GB, free: 302.2 MB / 1.167 GB Notification: Performance of matching and sorting (n=53) (initialization): time 0.00109/8.563, allocations: 0.5229 MB / 3.645 GB, free: 302.2 MB / 1.167 GB Notification: Performance of prepare postOptimizeDAE: time 0.0002949/8.563, allocations: 0.8731 MB / 3.646 GB, free: 301.2 MB / 1.167 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.11e-05/8.563, allocations: 6.25 kB / 3.646 GB, free: 301.2 MB / 1.167 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.968e-05/8.563, allocations: 7.203 kB / 3.646 GB, free: 301.2 MB / 1.167 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0006843/8.564, allocations: 105.7 kB / 3.646 GB, free: 301.2 MB / 1.167 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0003914/8.565, allocations: 0.5963 MB / 3.647 GB, free: 300.7 MB / 1.167 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0008298/8.565, allocations: 90.83 kB / 3.647 GB, free: 300.6 MB / 1.167 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.088e-05/8.565, allocations: 21.91 kB / 3.647 GB, free: 300.6 MB / 1.167 GB Notification: Performance of prepare postOptimizeDAE: time 1.142e-05/8.566, allocations: 3.594 kB / 3.647 GB, free: 300.6 MB / 1.167 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.001022/8.567, allocations: 455.1 kB / 3.648 GB, free: 300.6 MB / 1.167 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.454e-06/8.567, allocations: 4.906 kB / 3.648 GB, free: 300.6 MB / 1.167 GB Notification: Performance of postOpt tearingSystem (initialization): time 9.568e-06/8.567, allocations: 5.703 kB / 3.648 GB, free: 300.6 MB / 1.167 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004762/8.567, allocations: 102.2 kB / 3.648 GB, free: 300.6 MB / 1.167 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.1e-05/8.567, allocations: 6.984 kB / 3.648 GB, free: 300.6 MB / 1.167 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005713/8.568, allocations: 82.91 kB / 3.648 GB, free: 300.6 MB / 1.167 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.855e-05/8.568, allocations: 22.2 kB / 3.648 GB, free: 300.6 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.0004639/8.568, allocations: 311.9 kB / 3.648 GB, free: 300.4 MB / 1.167 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.000122/8.568, allocations: 56.61 kB / 3.648 GB, free: 300.4 MB / 1.167 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.00118/8.569, allocations: 488.3 kB / 3.649 GB, free: 300.4 MB / 1.167 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.131e-05/8.57, allocations: 4.281 kB / 3.649 GB, free: 300.4 MB / 1.167 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.065e-06/8.57, allocations: 1.078 kB / 3.649 GB, free: 300.4 MB / 1.167 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.001057/8.571, allocations: 0.7111 MB / 3.649 GB, free: 299.9 MB / 1.167 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002645/8.573, allocations: 1.275 MB / 3.651 GB, free: 299.5 MB / 1.167 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.011e-06/8.573, allocations: 2.109 kB / 3.651 GB, free: 299.5 MB / 1.167 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.00062/8.574, allocations: 111.5 kB / 3.651 GB, free: 299.5 MB / 1.167 GB Notification: Performance of postOpt tearingSystem (simulation): time 9.408e-06/8.574, allocations: 3.094 kB / 3.651 GB, free: 299.5 MB / 1.167 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.203e-05/8.574, allocations: 9.031 kB / 3.651 GB, free: 299.5 MB / 1.167 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0003169/8.574, allocations: 0.5951 MB / 3.651 GB, free: 299 MB / 1.167 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.232e-06/8.574, allocations: 4.656 kB / 3.651 GB, free: 299 MB / 1.167 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.00155/8.576, allocations: 0.8706 MB / 3.652 GB, free: 298.6 MB / 1.167 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0003172/8.576, allocations: 188 kB / 3.652 GB, free: 298.5 MB / 1.167 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 8.386e-05/8.576, allocations: 13.58 kB / 3.652 GB, free: 298.5 MB / 1.167 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0005287/8.577, allocations: 44.98 kB / 3.652 GB, free: 298.5 MB / 1.167 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001184/8.577, allocations: 27 kB / 3.652 GB, free: 298.5 MB / 1.167 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.347e-05/8.577, allocations: 25.12 kB / 3.652 GB, free: 298.5 MB / 1.167 GB Notification: Performance of sorting global known variables: time 0.0005811/8.578, allocations: 351.7 kB / 3.653 GB, free: 298.4 MB / 1.167 GB Notification: Performance of sort global known variables: time 1.2e-07/8.578, allocations: 0 / 3.653 GB, free: 298.4 MB / 1.167 GB Notification: Performance of remove unused functions: time 0.002243/8.58, allocations: 494.4 kB / 3.653 GB, free: 298.4 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.003245/8.583, allocations: 1.373 MB / 3.654 GB, free: 298 MB / 1.167 GB Notification: Performance of simCode: created initialization part: time 0.001855/8.585, allocations: 0.664 MB / 3.655 GB, free: 298 MB / 1.167 GB Notification: Performance of simCode: created event and clocks part: time 4.598e-06/8.585, allocations: 0 / 3.655 GB, free: 298 MB / 1.167 GB Notification: Performance of simCode: created simulation system equations: time 0.000494/8.586, allocations: 213.9 kB / 3.655 GB, free: 298 MB / 1.167 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001804/8.587, allocations: 345.9 kB / 3.656 GB, free: 298 MB / 1.167 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003123/8.59, allocations: 1.727 MB / 3.657 GB, free: 297.3 MB / 1.167 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000631/8.591, allocations: 0.9602 MB / 3.658 GB, free: 296.6 MB / 1.167 GB Notification: Performance of simCode: alias equations: time 0.0008657/8.592, allocations: 206.3 kB / 3.658 GB, free: 296.6 MB / 1.167 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001633/8.592, allocations: 48.38 kB / 3.659 GB, free: 296.6 MB / 1.167 GB Notification: Performance of SimCode: time 4.11e-07/8.592, allocations: 0 / 3.659 GB, free: 296.6 MB / 1.167 GB Notification: Performance of Templates: time 0.05078/8.643, allocations: 27.65 MB / 3.686 GB, free: 296.2 MB / 1.167 GB make -j1 -f Buildings_latest_Buildings.Fluid.Sensors.Examples.Density.makefile (rm -f Buildings_latest_Buildings.Fluid.Sensors.Examples.Density.pipe ; mkfifo Buildings_latest_Buildings.Fluid.Sensors.Examples.Density.pipe ; head -c 1048576 < Buildings_latest_Buildings.Fluid.Sensors.Examples.Density.pipe >> ../files/Buildings_latest_Buildings.Fluid.Sensors.Examples.Density.sim & ./Buildings_latest_Buildings.Fluid.Sensors.Examples.Density -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Buildings_latest_Buildings.Fluid.Sensors.Examples.Density.pipe 2>&1) diffSimulationResults("Buildings_latest_Buildings.Fluid.Sensors.Examples.Density_res.mat","/mnt/ReferenceFiles/Buildings/csv/master/Buildings_Fluid_Sensors_Examples_Density.csv","../files/Buildings_latest_Buildings.Fluid.Sensors.Examples.Density.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches