Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Buildings_maint.7.0.x_Buildings.Fluid.Sensors.Examples.Density.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 7.0.3-maint.7.0.x/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo", uses=false) Using package ModelicaServices with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo) Using package Modelica with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo) Using package Complex with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo) Using package Buildings with version 7.0.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 7.0.3-maint.7.0.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_maint.7.0.x_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_maint.7.0.x_Buildings.Fluid.Sensors.Examples.Density") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 7.0.3-maint.7.0.x/package.mo): time 1.551/1.551, allocations: 249.3 MB / 261.8 MB, free: 5.918 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.0009927/0.0009926, allocations: 178.6 kB / 321.3 MB, free: 14.64 MB / 266.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.452/1.452, allocations: 205.2 MB / 0.572 GB, free: 10.68 MB / 426.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.0009497/0.0009497, allocations: 94.47 kB / 0.6764 GB, free: 15.66 MB / 0.5261 GB Notification: Performance of FrontEnd - loaded program: time 4.133e-05/4.135e-05, allocations: 4 kB / 0.7879 GB, free: 97.11 MB / 0.5417 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2315/0.2315, allocations: 106.3 MB / 0.8918 GB, free: 6.676 MB / 0.5573 GB Notification: Performance of FrontEnd - scodeFlatten: time 6.205/6.436, allocations: 2.198 GB / 3.09 GB, free: 171.2 MB / 0.8698 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.000231/6.437, allocations: 87.95 kB / 3.09 GB, free: 171.1 MB / 0.8698 GB Notification: Performance of FrontEnd - DAE generated: time 1.607/8.043, allocations: 470.3 MB / 3.549 GB, free: 36.79 MB / 0.8698 GB Notification: Performance of FrontEnd: time 2.004e-06/8.044, allocations: 0 / 3.549 GB, free: 36.79 MB / 0.8698 GB Notification: Performance of Transformations before backend: time 0.0001196/8.044, allocations: 23.98 kB / 3.549 GB, free: 36.77 MB / 0.8698 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 133 * Number of variables: 133 Notification: Performance of Generate backend data structure: time 0.003148/8.047, allocations: 1.024 MB / 3.55 GB, free: 35.7 MB / 0.8698 GB Notification: Performance of prepare preOptimizeDAE: time 5.351e-05/8.047, allocations: 8.031 kB / 3.55 GB, free: 35.69 MB / 0.8698 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.002277/8.049, allocations: 266.8 kB / 3.551 GB, free: 35.43 MB / 0.8698 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001667/8.051, allocations: 0.6068 MB / 3.551 GB, free: 34.79 MB / 0.8698 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.426e-05/8.051, allocations: 45.31 kB / 3.551 GB, free: 34.74 MB / 0.8698 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001853/8.051, allocations: 60 kB / 3.551 GB, free: 34.68 MB / 0.8698 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001198/8.052, allocations: 0.5972 MB / 3.552 GB, free: 34.07 MB / 0.8698 GB Notification: Performance of preOpt findStateOrder (simulation): time 2.448e-05/8.052, allocations: 0 / 3.552 GB, free: 34.07 MB / 0.8698 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.775e-05/8.052, allocations: 24.34 kB / 3.552 GB, free: 34.04 MB / 0.8698 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.427e-05/8.052, allocations: 21.27 kB / 3.552 GB, free: 34.02 MB / 0.8698 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0008341/8.053, allocations: 477 kB / 3.552 GB, free: 33.56 MB / 0.8698 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.003222/8.057, allocations: 2.416 MB / 3.555 GB, free: 30.93 MB / 0.8698 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0004883/8.057, allocations: 347.8 kB / 3.555 GB, free: 30.58 MB / 0.8698 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002622/8.057, allocations: 205.5 kB / 3.555 GB, free: 30.38 MB / 0.8698 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0004961/8.058, allocations: 303.6 kB / 3.556 GB, free: 30.03 MB / 0.8698 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.7e-05/8.058, allocations: 42.84 kB / 3.556 GB, free: 29.98 MB / 0.8698 GB Notification: Performance of pre-optimization done (n=39): time 2.054e-06/8.058, allocations: 0 / 3.556 GB, free: 29.98 MB / 0.8698 GB Notification: Performance of matching and sorting (n=39): time 0.0009754/8.059, allocations: 431.2 kB / 3.556 GB, free: 29.55 MB / 0.8698 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.75e-05/8.059, allocations: 63.28 kB / 3.556 GB, free: 29.48 MB / 0.8698 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0005142/8.059, allocations: 432.8 kB / 3.556 GB, free: 29.05 MB / 0.8698 GB Notification: Performance of collectPreVariables (initialization): time 5.201e-05/8.06, allocations: 37.7 kB / 3.557 GB, free: 29 MB / 0.8698 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001737/8.06, allocations: 328.4 kB / 3.557 GB, free: 28.68 MB / 0.8698 GB Notification: Performance of collectInitialBindings (initialization): time 0.000121/8.06, allocations: 142 kB / 3.557 GB, free: 28.54 MB / 0.8698 GB Notification: Performance of simplifyInitialFunctions (initialization): time 2.023e-05/8.06, allocations: 8 kB / 3.557 GB, free: 28.53 MB / 0.8698 GB Notification: Performance of setup shared object (initialization): time 0.0001156/8.06, allocations: 362.8 kB / 3.557 GB, free: 28.17 MB / 0.8698 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000228/8.06, allocations: 148.8 kB / 3.557 GB, free: 28.02 MB / 0.8698 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002712/8.06, allocations: 261.7 kB / 3.558 GB, free: 27.72 MB / 0.8698 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002741/8.061, allocations: 183.8 kB / 3.558 GB, free: 27.54 MB / 0.8698 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.14e-06/8.061, allocations: 0 / 3.558 GB, free: 27.54 MB / 0.8698 GB Notification: Performance of matching and sorting (n=53) (initialization): time 0.0007151/8.061, allocations: 492.5 kB / 3.558 GB, free: 27.05 MB / 0.8698 GB Notification: Performance of prepare postOptimizeDAE: time 0.0002266/8.062, allocations: 0.881 MB / 3.559 GB, free: 26.11 MB / 0.8698 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.058e-05/8.062, allocations: 0 / 3.559 GB, free: 26.11 MB / 0.8698 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.623e-05/8.062, allocations: 4 kB / 3.559 GB, free: 26.1 MB / 0.8698 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0006212/8.062, allocations: 107.9 kB / 3.559 GB, free: 26 MB / 0.8698 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0003519/8.063, allocations: 0.6054 MB / 3.56 GB, free: 25.37 MB / 0.8698 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0007476/8.064, allocations: 79.64 kB / 3.56 GB, free: 25.29 MB / 0.8698 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.752e-05/8.064, allocations: 19.98 kB / 3.56 GB, free: 25.27 MB / 0.8698 GB Notification: Performance of prepare postOptimizeDAE: time 1.281e-05/8.064, allocations: 4 kB / 3.56 GB, free: 25.27 MB / 0.8698 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.0005746/8.064, allocations: 416.1 kB / 3.56 GB, free: 24.86 MB / 0.8698 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.103e-06/8.064, allocations: 8 kB / 3.56 GB, free: 24.85 MB / 0.8698 GB Notification: Performance of postOpt tearingSystem (initialization): time 7.794e-06/8.064, allocations: 4 kB / 3.56 GB, free: 24.85 MB / 0.8698 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003695/8.065, allocations: 99.89 kB / 3.561 GB, free: 24.75 MB / 0.8698 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.075e-06/8.065, allocations: 7.938 kB / 3.561 GB, free: 24.74 MB / 0.8698 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0006675/8.065, allocations: 71.61 kB / 3.561 GB, free: 24.67 MB / 0.8698 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.354e-05/8.065, allocations: 23.98 kB / 3.561 GB, free: 24.65 MB / 0.8698 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.0001734/8.066, allocations: 132.9 kB / 3.561 GB, free: 24.51 MB / 0.8698 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001256/8.066, allocations: 63.25 kB / 3.561 GB, free: 24.45 MB / 0.8698 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0007431/8.066, allocations: 434.8 kB / 3.561 GB, free: 24.01 MB / 0.8698 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.52e-06/8.066, allocations: 4 kB / 3.561 GB, free: 24.01 MB / 0.8698 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.863e-06/8.066, allocations: 4 kB / 3.561 GB, free: 24 MB / 0.8698 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.0005403/8.067, allocations: 0.6565 MB / 3.562 GB, free: 23.26 MB / 0.8698 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001885/8.069, allocations: 1.228 MB / 3.563 GB, free: 21.96 MB / 0.8698 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.24e-06/8.069, allocations: 4 kB / 3.563 GB, free: 21.95 MB / 0.8698 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004841/8.069, allocations: 107.9 kB / 3.563 GB, free: 21.85 MB / 0.8698 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.015e-05/8.069, allocations: 4 kB / 3.563 GB, free: 21.84 MB / 0.8698 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.858e-05/8.069, allocations: 28.16 kB / 3.563 GB, free: 21.82 MB / 0.8698 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0002159/8.07, allocations: 0.586 MB / 3.564 GB, free: 21.21 MB / 0.8698 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.436e-06/8.07, allocations: 3.938 kB / 3.564 GB, free: 21.2 MB / 0.8698 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0008838/8.071, allocations: 0.83 MB / 3.565 GB, free: 20.29 MB / 0.8698 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0003581/8.071, allocations: 188.2 kB / 3.565 GB, free: 20.09 MB / 0.8698 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001069/8.071, allocations: 16 kB / 3.565 GB, free: 20.07 MB / 0.8698 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0005566/8.072, allocations: 51.94 kB / 3.565 GB, free: 20.02 MB / 0.8698 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.723e-05/8.072, allocations: 27.92 kB / 3.565 GB, free: 19.99 MB / 0.8698 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.195e-05/8.072, allocations: 16 kB / 3.565 GB, free: 19.98 MB / 0.8698 GB Notification: Performance of sorting global known variables: time 0.0003831/8.072, allocations: 341.5 kB / 3.565 GB, free: 19.64 MB / 0.8698 GB Notification: Performance of sort global known variables: time 1.9e-07/8.072, allocations: 4 kB / 3.565 GB, free: 19.64 MB / 0.8698 GB Notification: Performance of remove unused functions: time 0.001731/8.074, allocations: 499.1 kB / 3.566 GB, free: 19.15 MB / 0.8698 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 8 * Number of states: 4 (vol.dynBal.U,vol.dynBal.m,vol.dynBal.mXi[1],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.00257/8.077, allocations: 1.385 MB / 3.567 GB, free: 17.71 MB / 0.8698 GB Notification: Performance of simCode: created initialization part: time 0.00122/8.078, allocations: 0.6077 MB / 3.568 GB, free: 17.1 MB / 0.8698 GB Notification: Performance of simCode: created event and clocks part: time 5.09e-06/8.078, allocations: 3.938 kB / 3.568 GB, free: 17.09 MB / 0.8698 GB Notification: Performance of simCode: created simulation system equations: time 0.0003204/8.078, allocations: 205.4 kB / 3.568 GB, free: 16.89 MB / 0.8698 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001694/8.08, allocations: 348.4 kB / 3.568 GB, free: 16.56 MB / 0.8698 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002124/8.082, allocations: 1.084 MB / 3.569 GB, free: 15.43 MB / 0.8698 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004433/8.082, allocations: 0.9626 MB / 3.57 GB, free: 14.44 MB / 0.8698 GB Notification: Performance of simCode: alias equations: time 0.000938/8.083, allocations: 248.8 kB / 3.57 GB, free: 14.2 MB / 0.8698 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001221/8.083, allocations: 43.44 kB / 3.57 GB, free: 14.15 MB / 0.8698 GB Notification: Performance of SimCode: time 7.51e-07/8.083, allocations: 0 / 3.57 GB, free: 14.15 MB / 0.8698 GB Notification: Performance of Templates: time 0.6345/8.718, allocations: 32.34 MB / 3.602 GB, free: 185.1 MB / 0.8698 GB make -j1 -f Buildings_maint.7.0.x_Buildings.Fluid.Sensors.Examples.Density.makefile (rm -f Buildings_maint.7.0.x_Buildings.Fluid.Sensors.Examples.Density.pipe ; mkfifo Buildings_maint.7.0.x_Buildings.Fluid.Sensors.Examples.Density.pipe ; head -c 1048576 < Buildings_maint.7.0.x_Buildings.Fluid.Sensors.Examples.Density.pipe >> ../files/Buildings_maint.7.0.x_Buildings.Fluid.Sensors.Examples.Density.sim & ./Buildings_maint.7.0.x_Buildings.Fluid.Sensors.Examples.Density -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Buildings_maint.7.0.x_Buildings.Fluid.Sensors.Examples.Density.pipe 2>&1) diffSimulationResults("Buildings_maint.7.0.x_Buildings.Fluid.Sensors.Examples.Density_res.mat","/mnt/ReferenceFiles/Buildings/csv/Buildings_Fluid_Sensors_Examples_Density.csv","../files/Buildings_maint.7.0.x_Buildings.Fluid.Sensors.Examples.Density.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches