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.385/1.385, allocations: 251.9 MB / 266.9 MB, free: 11.02 MB / 218.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.001111/0.001111, allocations: 187.7 kB / 326.5 MB, free: 2.254 MB / 250.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.841/1.841, allocations: 205.4 MB / 0.5775 GB, free: 20.57 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.000848/0.000848, allocations: 101.2 kB / 0.6821 GB, free: 13.33 MB / 0.5105 GB Notification: Performance of FrontEnd - loaded program: time 0.0003573/0.0003573, allocations: 7.969 kB / 0.7962 GB, free: 135.3 MB / 0.6042 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2126/0.2129, allocations: 106.4 MB / 0.9001 GB, free: 64.46 MB / 0.6042 GB Notification: Performance of FrontEnd - scodeFlatten: time 5.015/5.228, allocations: 2.198 GB / 3.098 GB, free: 243.5 MB / 0.8855 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002613/5.228, allocations: 95.73 kB / 3.098 GB, free: 243.5 MB / 0.8855 GB Notification: Performance of FrontEnd - DAE generated: time 1.49/6.718, allocations: 470.8 MB / 3.558 GB, free: 202.7 MB / 0.8855 GB Notification: Performance of FrontEnd: time 3.086e-06/6.718, allocations: 4 kB / 3.558 GB, free: 202.7 MB / 0.8855 GB Notification: Performance of Transformations before backend: time 0.0001254/6.718, allocations: 22.89 kB / 3.558 GB, free: 202.7 MB / 0.8855 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.004168/6.722, allocations: 1.137 MB / 3.559 GB, free: 201.5 MB / 0.8855 GB Notification: Performance of prepare preOptimizeDAE: time 4.693e-05/6.722, allocations: 8.031 kB / 3.559 GB, free: 201.5 MB / 0.8855 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.00234/6.724, allocations: 266.7 kB / 3.56 GB, free: 201.2 MB / 0.8855 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001636/6.726, allocations: 0.6151 MB / 3.56 GB, free: 200.6 MB / 0.8855 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.377e-05/6.726, allocations: 41.66 kB / 3.56 GB, free: 200.6 MB / 0.8855 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001677/6.726, allocations: 59.95 kB / 3.56 GB, free: 200.5 MB / 0.8855 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001233/6.728, allocations: 0.6205 MB / 3.561 GB, free: 199.9 MB / 0.8855 GB Notification: Performance of preOpt findStateOrder (simulation): time 2.353e-05/6.728, allocations: 3.938 kB / 3.561 GB, free: 199.9 MB / 0.8855 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.492e-05/6.728, allocations: 24 kB / 3.561 GB, free: 199.8 MB / 0.8855 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.214e-05/6.728, allocations: 21.31 kB / 3.561 GB, free: 199.8 MB / 0.8855 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0009325/6.729, allocations: 0.5009 MB / 3.561 GB, free: 199.3 MB / 0.8855 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.003206/6.732, allocations: 2.427 MB / 3.564 GB, free: 196.7 MB / 0.8855 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0004943/6.732, allocations: 362.1 kB / 3.564 GB, free: 196.4 MB / 0.8855 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0004698/6.733, allocations: 307.3 kB / 3.564 GB, free: 196 MB / 0.8855 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.479e-05/6.733, allocations: 42.88 kB / 3.564 GB, free: 196 MB / 0.8855 GB Notification: Performance of pre-optimization done (n=39): time 2.845e-06/6.733, allocations: 0 / 3.564 GB, free: 196 MB / 0.8855 GB Notification: Performance of matching and sorting (n=39): time 0.001249/6.734, allocations: 0.6023 MB / 3.565 GB, free: 195.3 MB / 0.8855 GB Notification: Performance of inlineWhenForInitialization (initialization): time 2.815e-05/6.734, allocations: 63.41 kB / 3.565 GB, free: 195.3 MB / 0.8855 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004311/6.735, allocations: 442 kB / 3.565 GB, free: 194.8 MB / 0.8855 GB Notification: Performance of collectPreVariables (initialization): time 4.274e-05/6.735, allocations: 33.7 kB / 3.566 GB, free: 194.8 MB / 0.8855 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001675/6.735, allocations: 332.4 kB / 3.566 GB, free: 194.5 MB / 0.8855 GB Notification: Performance of collectInitialBindings (initialization): time 9.586e-05/6.735, allocations: 133.8 kB / 3.566 GB, free: 194.3 MB / 0.8855 GB Notification: Performance of simplifyInitialFunctions (initialization): time 1.835e-05/6.735, allocations: 11.94 kB / 3.566 GB, free: 194.3 MB / 0.8855 GB Notification: Performance of setup shared object (initialization): time 8.745e-05/6.735, allocations: 370.8 kB / 3.566 GB, free: 194 MB / 0.8855 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002676/6.735, allocations: 164.8 kB / 3.566 GB, free: 193.8 MB / 0.8855 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003274/6.736, allocations: 281.1 kB / 3.567 GB, free: 193.5 MB / 0.8855 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003142/6.736, allocations: 203.9 kB / 3.567 GB, free: 193.3 MB / 0.8855 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.807e-06/6.736, allocations: 3.953 kB / 3.567 GB, free: 193.3 MB / 0.8855 GB Notification: Performance of matching and sorting (n=53) (initialization): time 0.0007518/6.737, allocations: 0.5202 MB / 3.567 GB, free: 192.7 MB / 0.8855 GB Notification: Performance of prepare postOptimizeDAE: time 0.0001764/6.737, allocations: 0.873 MB / 3.568 GB, free: 191.8 MB / 0.8855 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.135e-06/6.737, allocations: 4 kB / 3.568 GB, free: 191.8 MB / 0.8855 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.039e-05/6.737, allocations: 4 kB / 3.568 GB, free: 191.8 MB / 0.8855 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0006027/6.738, allocations: 111.8 kB / 3.568 GB, free: 191.7 MB / 0.8855 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0002981/6.738, allocations: 0.5977 MB / 3.569 GB, free: 191.1 MB / 0.8855 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0006969/6.739, allocations: 83.56 kB / 3.569 GB, free: 191 MB / 0.8855 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.018e-05/6.739, allocations: 20 kB / 3.569 GB, free: 191 MB / 0.8855 GB Notification: Performance of prepare postOptimizeDAE: time 7.675e-06/6.739, allocations: 4 kB / 3.569 GB, free: 191 MB / 0.8855 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.0006708/6.739, allocations: 451.8 kB / 3.57 GB, free: 190.5 MB / 0.8855 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.045e-06/6.739, allocations: 0 / 3.57 GB, free: 190.5 MB / 0.8855 GB Notification: Performance of postOpt tearingSystem (initialization): time 6.472e-06/6.739, allocations: 7.953 kB / 3.57 GB, free: 190.5 MB / 0.8855 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003741/6.74, allocations: 103.8 kB / 3.57 GB, free: 190.4 MB / 0.8855 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.72e-06/6.74, allocations: 8.266 kB / 3.57 GB, free: 190.4 MB / 0.8855 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005613/6.74, allocations: 83.55 kB / 3.57 GB, free: 190.3 MB / 0.8855 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.39e-05/6.74, allocations: 16 kB / 3.57 GB, free: 190.3 MB / 0.8855 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.0003945/6.741, allocations: 312.9 kB / 3.57 GB, free: 190 MB / 0.8855 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.785e-05/6.741, allocations: 59.34 kB / 3.57 GB, free: 189.9 MB / 0.8855 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.000768/6.742, allocations: 474.6 kB / 3.571 GB, free: 189.5 MB / 0.8855 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.604e-06/6.742, allocations: 7.953 kB / 3.571 GB, free: 189.5 MB / 0.8855 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.202e-06/6.742, allocations: 0 / 3.571 GB, free: 189.5 MB / 0.8855 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.0006296/6.742, allocations: 0.7032 MB / 3.571 GB, free: 188.7 MB / 0.8855 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001832/6.744, allocations: 1.267 MB / 3.572 GB, free: 187.3 MB / 0.8855 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.042e-06/6.744, allocations: 4 kB / 3.573 GB, free: 187.3 MB / 0.8855 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0005085/6.745, allocations: 107.8 kB / 3.573 GB, free: 187.2 MB / 0.8855 GB Notification: Performance of postOpt tearingSystem (simulation): time 6.802e-06/6.745, allocations: 4 kB / 3.573 GB, free: 187.2 MB / 0.8855 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.226e-05/6.745, allocations: 15.98 kB / 3.573 GB, free: 187.2 MB / 0.8855 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0002107/6.745, allocations: 0.594 MB / 3.573 GB, free: 186.6 MB / 0.8855 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.793e-06/6.745, allocations: 0 / 3.573 GB, free: 186.6 MB / 0.8855 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0009829/6.746, allocations: 0.9 MB / 3.574 GB, free: 185.6 MB / 0.8855 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0002713/6.746, allocations: 184.3 kB / 3.574 GB, free: 185.4 MB / 0.8855 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 7.002e-05/6.746, allocations: 8 kB / 3.574 GB, free: 185.4 MB / 0.8855 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004977/6.747, allocations: 59.86 kB / 3.574 GB, free: 185.3 MB / 0.8855 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.616e-05/6.747, allocations: 35.86 kB / 3.574 GB, free: 185.3 MB / 0.8855 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.929e-05/6.747, allocations: 11.98 kB / 3.574 GB, free: 185.3 MB / 0.8855 GB Notification: Performance of sorting global known variables: time 0.0003332/6.747, allocations: 346.8 kB / 3.575 GB, free: 185 MB / 0.8855 GB Notification: Performance of sort global known variables: time 2e-07/6.747, allocations: 0 / 3.575 GB, free: 185 MB / 0.8855 GB Notification: Performance of remove unused functions: time 0.001551/6.749, allocations: 499.1 kB / 3.575 GB, free: 184.5 MB / 0.8855 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 () * 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.001908/6.751, allocations: 1.379 MB / 3.577 GB, free: 183.3 MB / 0.8855 GB Notification: Performance of simCode: created initialization part: time 0.001301/6.752, allocations: 0.6484 MB / 3.577 GB, free: 182.6 MB / 0.8855 GB Notification: Performance of simCode: created event and clocks part: time 4.609e-06/6.752, allocations: 0 / 3.577 GB, free: 182.6 MB / 0.8855 GB Notification: Performance of simCode: created simulation system equations: time 0.0003381/6.752, allocations: 216.6 kB / 3.577 GB, free: 182.4 MB / 0.8855 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001495/6.754, allocations: 355.5 kB / 3.578 GB, free: 182.1 MB / 0.8855 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002148/6.756, allocations: 1.728 MB / 3.579 GB, free: 180.3 MB / 0.8855 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003562/6.757, allocations: 0.9577 MB / 3.58 GB, free: 179.3 MB / 0.8855 GB Notification: Performance of simCode: alias equations: time 0.0007133/6.757, allocations: 200.6 kB / 3.581 GB, free: 179.1 MB / 0.8855 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001198/6.757, allocations: 47.44 kB / 3.581 GB, free: 179.1 MB / 0.8855 GB Notification: Performance of SimCode: time 1.092e-06/6.757, allocations: 0 / 3.581 GB, free: 179.1 MB / 0.8855 GB Notification: Performance of Templates: time 0.03717/6.795, allocations: 27.68 MB / 3.608 GB, free: 151.7 MB / 0.8855 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