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.433/2.433, allocations: 390.5 MB / 398 MB, free: 10.94 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.001167/0.001167, allocations: 168.8 kB / 491.2 MB, free: 1.555 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.755/1.755, allocations: 221.5 MB / 0.7868 GB, free: 13.36 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.0009045/0.0009045, allocations: 88.75 kB / 0.9269 GB, free: 13.88 MB / 0.698 GB Notification: Performance of FrontEnd - loaded program: time 2.607e-05/2.605e-05, allocations: 4 kB / 1.073 GB, free: 182.1 MB / 0.7605 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3376/0.3377, allocations: 143 MB / 1.212 GB, free: 39.56 MB / 0.7605 GB Notification: Performance of FrontEnd - scodeFlatten: time 5.586/5.924, allocations: 1.926 GB / 3.138 GB, free: 341.7 MB / 1.151 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.000253/5.925, allocations: 90.39 kB / 3.138 GB, free: 341.6 MB / 1.151 GB Notification: Performance of FrontEnd - DAE generated: time 1.865/7.79, allocations: 486 MB / 3.613 GB, free: 300.9 MB / 1.151 GB Notification: Performance of FrontEnd: time 2.284e-06/7.79, allocations: 3 kB / 3.613 GB, free: 300.9 MB / 1.151 GB Notification: Performance of Transformations before backend: time 5.943e-05/7.79, allocations: 21.11 kB / 3.613 GB, free: 300.9 MB / 1.151 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.002/7.792, allocations: 1.03 MB / 3.614 GB, free: 300.3 MB / 1.151 GB Notification: Performance of prepare preOptimizeDAE: time 4.302e-05/7.792, allocations: 7.281 kB / 3.614 GB, free: 300.3 MB / 1.151 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001755/7.793, allocations: 270.5 kB / 3.614 GB, free: 300.2 MB / 1.151 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.00104/7.795, allocations: 0.6113 MB / 3.615 GB, free: 299.8 MB / 1.151 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.231e-05/7.795, allocations: 18.66 kB / 3.615 GB, free: 299.8 MB / 1.151 GB Notification: Performance of preOpt expandDerOperator (simulation): time 7.854e-05/7.795, allocations: 39.64 kB / 3.615 GB, free: 299.8 MB / 1.151 GB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0006701/7.795, allocations: 442.7 kB / 3.615 GB, free: 299.7 MB / 1.151 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0007548/7.796, allocations: 0.5159 MB / 3.616 GB, free: 299.5 MB / 1.151 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.89e-05/7.796, allocations: 0 / 3.616 GB, free: 299.5 MB / 1.151 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.57e-05/7.796, allocations: 2.062 kB / 3.616 GB, free: 299.5 MB / 1.151 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.556e-05/7.796, allocations: 17.88 kB / 3.616 GB, free: 299.5 MB / 1.151 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.002614/7.799, allocations: 2.324 MB / 3.618 GB, free: 297.8 MB / 1.151 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0004741/7.799, allocations: 316.9 kB / 3.618 GB, free: 297.7 MB / 1.151 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002517/7.8, allocations: 205.1 kB / 3.618 GB, free: 297.6 MB / 1.151 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0004647/7.8, allocations: 298.9 kB / 3.619 GB, free: 297.3 MB / 1.151 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.08e-05/7.8, allocations: 38.45 kB / 3.619 GB, free: 297.3 MB / 1.151 GB Notification: Performance of pre-optimization done (n=39): time 1.563e-06/7.8, allocations: 0 / 3.619 GB, free: 297.3 MB / 1.151 GB Notification: Performance of matching and sorting (n=39): time 0.0009355/7.801, allocations: 443.9 kB / 3.619 GB, free: 297.1 MB / 1.151 GB Notification: Performance of inlineWhenForInitialization (initialization): time 2.385e-05/7.801, allocations: 55.16 kB / 3.619 GB, free: 297 MB / 1.151 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003961/7.801, allocations: 366.6 kB / 3.62 GB, free: 296.8 MB / 1.151 GB Notification: Performance of collectPreVariables (initialization): time 3.591e-05/7.802, allocations: 25.7 kB / 3.62 GB, free: 296.8 MB / 1.151 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001706/7.802, allocations: 331.8 kB / 3.62 GB, free: 296.5 MB / 1.151 GB Notification: Performance of collectInitialBindings (initialization): time 9.011e-05/7.802, allocations: 135.9 kB / 3.62 GB, free: 296.4 MB / 1.151 GB Notification: Performance of simplifyInitialFunctions (initialization): time 1.871e-05/7.802, allocations: 0 / 3.62 GB, free: 296.4 MB / 1.151 GB Notification: Performance of setup shared object (initialization): time 9.283e-05/7.802, allocations: 358.1 kB / 3.62 GB, free: 296 MB / 1.151 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001767/7.802, allocations: 144.2 kB / 3.62 GB, free: 296 MB / 1.151 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002672/7.802, allocations: 249.2 kB / 3.621 GB, free: 295.8 MB / 1.151 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003191/7.803, allocations: 197.1 kB / 3.621 GB, free: 295.7 MB / 1.151 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.308e-06/7.803, allocations: 7.25 kB / 3.621 GB, free: 295.7 MB / 1.151 GB Notification: Performance of matching and sorting (n=53) (initialization): time 0.0006532/7.803, allocations: 487 kB / 3.621 GB, free: 295.4 MB / 1.151 GB Notification: Performance of prepare postOptimizeDAE: time 0.000199/7.804, allocations: 0.8787 MB / 3.622 GB, free: 294.5 MB / 1.151 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.374e-06/7.804, allocations: 3.562 kB / 3.622 GB, free: 294.5 MB / 1.151 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.016e-05/7.804, allocations: 7.312 kB / 3.622 GB, free: 294.5 MB / 1.151 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005827/7.804, allocations: 110 kB / 3.622 GB, free: 294.5 MB / 1.151 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0002954/7.805, allocations: 0.598 MB / 3.623 GB, free: 293.9 MB / 1.151 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0006264/7.805, allocations: 70.64 kB / 3.623 GB, free: 293.9 MB / 1.151 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.784e-05/7.805, allocations: 28.78 kB / 3.623 GB, free: 293.8 MB / 1.151 GB Notification: Performance of prepare postOptimizeDAE: time 9.067e-06/7.805, allocations: 2.531 kB / 3.623 GB, free: 293.8 MB / 1.151 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.000592/7.806, allocations: 384.9 kB / 3.623 GB, free: 293.7 MB / 1.151 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.458e-06/7.806, allocations: 3.781 kB / 3.623 GB, free: 293.7 MB / 1.151 GB Notification: Performance of postOpt tearingSystem (initialization): time 6.041e-06/7.806, allocations: 3.781 kB / 3.623 GB, free: 293.7 MB / 1.151 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004352/7.806, allocations: 112.5 kB / 3.623 GB, free: 293.6 MB / 1.151 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.489e-06/7.806, allocations: 3.938 kB / 3.623 GB, free: 293.6 MB / 1.151 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005025/7.807, allocations: 68.48 kB / 3.624 GB, free: 293.6 MB / 1.151 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.579e-05/7.807, allocations: 19.55 kB / 3.624 GB, free: 293.6 MB / 1.151 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 () * 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.0001246/7.807, allocations: 116.6 kB / 3.624 GB, free: 293.5 MB / 1.151 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 9.182e-05/7.807, allocations: 52.16 kB / 3.624 GB, free: 293.5 MB / 1.151 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.000719/7.808, allocations: 434 kB / 3.624 GB, free: 293.2 MB / 1.151 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.129e-06/7.808, allocations: 3.375 kB / 3.624 GB, free: 293.2 MB / 1.151 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.616e-06/7.808, allocations: 7.922 kB / 3.624 GB, free: 293.2 MB / 1.151 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.0005631/7.808, allocations: 0.6579 MB / 3.625 GB, free: 292.6 MB / 1.151 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001523/7.81, allocations: 1.16 MB / 3.626 GB, free: 291.8 MB / 1.151 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.758e-06/7.81, allocations: 6.703 kB / 3.626 GB, free: 291.8 MB / 1.151 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0005078/7.81, allocations: 112.1 kB / 3.626 GB, free: 291.8 MB / 1.151 GB Notification: Performance of postOpt tearingSystem (simulation): time 6.713e-06/7.811, allocations: 3.531 kB / 3.626 GB, free: 291.8 MB / 1.151 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.016e-05/7.811, allocations: 11.03 kB / 3.626 GB, free: 291.8 MB / 1.151 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.000196/7.811, allocations: 0.595 MB / 3.627 GB, free: 291.2 MB / 1.151 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.446e-06/7.811, allocations: 0 / 3.627 GB, free: 291.2 MB / 1.151 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0008225/7.812, allocations: 0.8004 MB / 3.627 GB, free: 290.6 MB / 1.151 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0001983/7.812, allocations: 180.5 kB / 3.628 GB, free: 290.4 MB / 1.151 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 7.215e-05/7.812, allocations: 3.125 kB / 3.628 GB, free: 290.4 MB / 1.151 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004469/7.812, allocations: 51.02 kB / 3.628 GB, free: 290.4 MB / 1.151 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.122e-05/7.812, allocations: 33.91 kB / 3.628 GB, free: 290.4 MB / 1.151 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.869e-05/7.812, allocations: 19.12 kB / 3.628 GB, free: 290.4 MB / 1.151 GB Notification: Performance of sorting global known variables: time 0.0002825/7.813, allocations: 286.7 kB / 3.628 GB, free: 290.2 MB / 1.151 GB Notification: Performance of sort global known variables: time 1.5e-07/7.813, allocations: 0 / 3.628 GB, free: 290.2 MB / 1.151 GB Notification: Performance of remove unused functions: time 0.001252/7.814, allocations: 442.3 kB / 3.628 GB, free: 290.1 MB / 1.151 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 () * 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.002011/7.816, allocations: 1.544 MB / 3.63 GB, free: 289.5 MB / 1.151 GB Notification: Performance of simCode: created initialization part: time 0.001007/7.817, allocations: 0.5813 MB / 3.63 GB, free: 289.3 MB / 1.151 GB Notification: Performance of simCode: created event and clocks part: time 3.176e-06/7.817, allocations: 2.906 kB / 3.63 GB, free: 289.3 MB / 1.151 GB Notification: Performance of simCode: created simulation system equations: time 0.0002635/7.817, allocations: 188.1 kB / 3.631 GB, free: 289.2 MB / 1.151 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001496/7.819, allocations: 316.1 kB / 3.631 GB, free: 289.1 MB / 1.151 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001662/7.821, allocations: 1.068 MB / 3.632 GB, free: 288.4 MB / 1.151 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003643/7.821, allocations: 0.9615 MB / 3.633 GB, free: 287.6 MB / 1.151 GB Notification: Performance of simCode: alias equations: time 0.0007752/7.822, allocations: 234.4 kB / 3.633 GB, free: 287.5 MB / 1.151 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001004/7.822, allocations: 41.97 kB / 3.633 GB, free: 287.5 MB / 1.151 GB Notification: Performance of SimCode: time 4.11e-07/7.822, allocations: 0 / 3.633 GB, free: 287.5 MB / 1.151 GB Notification: Performance of Templates: time 0.02712/7.849, allocations: 18.74 MB / 3.651 GB, free: 275.2 MB / 1.151 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