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.469/1.469, allocations: 249.5 MB / 257 MB, free: 6.988 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.001275/0.001275, allocations: 179.5 kB / 316.3 MB, free: 3.242 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.587/1.587, allocations: 205.3 MB / 0.5671 GB, free: 15.89 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.0008521/0.0008521, allocations: 82.55 kB / 0.6714 GB, free: 5.004 MB / 0.5105 GB Notification: Performance of FrontEnd - loaded program: time 1.75e-05/1.753e-05, allocations: 4 kB / 0.7814 GB, free: 102.7 MB / 0.5417 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2236/0.2236, allocations: 106.3 MB / 0.8852 GB, free: 12.27 MB / 0.5573 GB Notification: Performance of FrontEnd - scodeFlatten: time 6.258/6.481, allocations: 2.198 GB / 3.084 GB, free: 167.5 MB / 0.8698 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002254/6.482, allocations: 87.02 kB / 3.084 GB, free: 167.4 MB / 0.8698 GB Notification: Performance of FrontEnd - DAE generated: time 1.528/8.01, allocations: 464.8 MB / 3.538 GB, free: 49.07 MB / 0.8698 GB Notification: Performance of FrontEnd: time 2.815e-06/8.01, allocations: 0 / 3.538 GB, free: 49.07 MB / 0.8698 GB Notification: Performance of Transformations before backend: time 9.468e-05/8.01, allocations: 23.94 kB / 3.538 GB, free: 49.05 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.00269/8.013, allocations: 1.021 MB / 3.539 GB, free: 47.98 MB / 0.8698 GB Notification: Performance of prepare preOptimizeDAE: time 7.016e-05/8.013, allocations: 12.56 kB / 3.539 GB, free: 47.96 MB / 0.8698 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.002133/8.015, allocations: 270.8 kB / 3.539 GB, free: 47.7 MB / 0.8698 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001321/8.016, allocations: 0.6128 MB / 3.54 GB, free: 47.05 MB / 0.8698 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.668e-05/8.016, allocations: 16 kB / 3.54 GB, free: 47.03 MB / 0.8698 GB Notification: Performance of preOpt expandDerOperator (simulation): time 8.956e-05/8.016, allocations: 36 kB / 3.54 GB, free: 47 MB / 0.8698 GB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0007199/8.017, allocations: 438.5 kB / 3.54 GB, free: 46.57 MB / 0.8698 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0007757/8.018, allocations: 0.5282 MB / 3.54 GB, free: 46.02 MB / 0.8698 GB Notification: Performance of preOpt findStateOrder (simulation): time 2.286e-05/8.018, allocations: 3.984 kB / 3.54 GB, free: 46.02 MB / 0.8698 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.772e-05/8.018, allocations: 3.953 kB / 3.541 GB, free: 46.02 MB / 0.8698 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.731e-05/8.018, allocations: 25.3 kB / 3.541 GB, free: 45.99 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.002551/8.021, allocations: 2.297 MB / 3.543 GB, free: 43.49 MB / 0.8698 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0003919/8.021, allocations: 331.5 kB / 3.543 GB, free: 43.16 MB / 0.8698 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002141/8.021, allocations: 199.9 kB / 3.543 GB, free: 42.96 MB / 0.8698 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0004562/8.022, allocations: 303.6 kB / 3.544 GB, free: 42.61 MB / 0.8698 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.89e-05/8.022, allocations: 38.89 kB / 3.544 GB, free: 42.56 MB / 0.8698 GB Notification: Performance of pre-optimization done (n=39): time 2.394e-06/8.022, allocations: 0 / 3.544 GB, free: 42.56 MB / 0.8698 GB Notification: Performance of matching and sorting (n=39): time 0.0009213/8.023, allocations: 427 kB / 3.544 GB, free: 42.14 MB / 0.8698 GB Notification: Performance of inlineWhenForInitialization (initialization): time 2.377e-05/8.023, allocations: 55.41 kB / 3.544 GB, free: 42.07 MB / 0.8698 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003407/8.023, allocations: 377.3 kB / 3.544 GB, free: 41.7 MB / 0.8698 GB Notification: Performance of collectPreVariables (initialization): time 3.583e-05/8.023, allocations: 25.7 kB / 3.544 GB, free: 41.67 MB / 0.8698 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001791/8.023, allocations: 320.2 kB / 3.545 GB, free: 41.35 MB / 0.8698 GB Notification: Performance of collectInitialBindings (initialization): time 8.868e-05/8.023, allocations: 134 kB / 3.545 GB, free: 41.21 MB / 0.8698 GB Notification: Performance of simplifyInitialFunctions (initialization): time 1.876e-05/8.024, allocations: 0 / 3.545 GB, free: 41.21 MB / 0.8698 GB Notification: Performance of setup shared object (initialization): time 0.0001127/8.024, allocations: 362.8 kB / 3.545 GB, free: 40.85 MB / 0.8698 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001752/8.024, allocations: 136.8 kB / 3.545 GB, free: 40.71 MB / 0.8698 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000248/8.024, allocations: 248.3 kB / 3.546 GB, free: 40.43 MB / 0.8698 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003348/8.024, allocations: 203.8 kB / 3.546 GB, free: 40.23 MB / 0.8698 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.985e-06/8.024, allocations: 0 / 3.546 GB, free: 40.23 MB / 0.8698 GB Notification: Performance of matching and sorting (n=53) (initialization): time 0.0006429/8.025, allocations: 464.8 kB / 3.546 GB, free: 39.77 MB / 0.8698 GB Notification: Performance of prepare postOptimizeDAE: time 0.0002338/8.025, allocations: 0.8899 MB / 3.547 GB, free: 38.81 MB / 0.8698 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.316e-06/8.025, allocations: 0 / 3.547 GB, free: 38.81 MB / 0.8698 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.256e-05/8.025, allocations: 8 kB / 3.547 GB, free: 38.8 MB / 0.8698 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0006295/8.026, allocations: 111.8 kB / 3.547 GB, free: 38.7 MB / 0.8698 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0003303/8.026, allocations: 0.5977 MB / 3.548 GB, free: 38.07 MB / 0.8698 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0006701/8.027, allocations: 71.58 kB / 3.548 GB, free: 38 MB / 0.8698 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.385e-05/8.027, allocations: 24 kB / 3.548 GB, free: 37.98 MB / 0.8698 GB Notification: Performance of prepare postOptimizeDAE: time 8.877e-06/8.027, allocations: 0 / 3.548 GB, free: 37.98 MB / 0.8698 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.000547/8.028, allocations: 387.8 kB / 3.548 GB, free: 37.6 MB / 0.8698 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.027e-06/8.028, allocations: 11.94 kB / 3.548 GB, free: 37.59 MB / 0.8698 GB Notification: Performance of postOpt tearingSystem (initialization): time 5.36e-06/8.028, allocations: 4 kB / 3.548 GB, free: 37.59 MB / 0.8698 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003548/8.028, allocations: 104.1 kB / 3.548 GB, free: 37.48 MB / 0.8698 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 3.878e-06/8.028, allocations: 4 kB / 3.548 GB, free: 37.48 MB / 0.8698 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004869/8.029, allocations: 67.64 kB / 3.548 GB, free: 37.41 MB / 0.8698 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.194e-05/8.029, allocations: 15.98 kB / 3.548 GB, free: 37.4 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.0001192/8.029, allocations: 116.9 kB / 3.549 GB, free: 37.28 MB / 0.8698 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.667e-05/8.029, allocations: 55.34 kB / 3.549 GB, free: 37.22 MB / 0.8698 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0006874/8.029, allocations: 423 kB / 3.549 GB, free: 36.8 MB / 0.8698 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.951e-06/8.03, allocations: 4 kB / 3.549 GB, free: 36.8 MB / 0.8698 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.841e-06/8.03, allocations: 4 kB / 3.549 GB, free: 36.8 MB / 0.8698 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.0005771/8.03, allocations: 0.6559 MB / 3.55 GB, free: 36.05 MB / 0.8698 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001548/8.032, allocations: 1.162 MB / 3.551 GB, free: 34.83 MB / 0.8698 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.524e-06/8.032, allocations: 0 / 3.551 GB, free: 34.83 MB / 0.8698 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004824/8.032, allocations: 107.9 kB / 3.551 GB, free: 34.72 MB / 0.8698 GB Notification: Performance of postOpt tearingSystem (simulation): time 5.541e-06/8.032, allocations: 4 kB / 3.551 GB, free: 34.72 MB / 0.8698 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.255e-05/8.032, allocations: 11.98 kB / 3.551 GB, free: 34.71 MB / 0.8698 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0002065/8.032, allocations: 0.5976 MB / 3.552 GB, free: 34.09 MB / 0.8698 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.138e-06/8.032, allocations: 4.031 kB / 3.552 GB, free: 34.08 MB / 0.8698 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0008085/8.033, allocations: 0.8178 MB / 3.552 GB, free: 33.18 MB / 0.8698 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0001898/8.034, allocations: 180.4 kB / 3.552 GB, free: 32.98 MB / 0.8698 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 7.316e-05/8.034, allocations: 8 kB / 3.552 GB, free: 32.98 MB / 0.8698 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004992/8.034, allocations: 43.95 kB / 3.553 GB, free: 32.93 MB / 0.8698 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.493e-05/8.034, allocations: 27.95 kB / 3.553 GB, free: 32.91 MB / 0.8698 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.185e-05/8.034, allocations: 16 kB / 3.553 GB, free: 32.89 MB / 0.8698 GB Notification: Performance of sorting global known variables: time 0.0002722/8.035, allocations: 290.9 kB / 3.553 GB, free: 32.61 MB / 0.8698 GB Notification: Performance of sort global known variables: time 9.12e-07/8.035, allocations: 0 / 3.553 GB, free: 32.61 MB / 0.8698 GB Notification: Performance of remove unused functions: time 0.001305/8.036, allocations: 454.8 kB / 3.553 GB, free: 32.16 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.001875/8.038, allocations: 1.545 MB / 3.555 GB, free: 30.57 MB / 0.8698 GB Notification: Performance of simCode: created initialization part: time 0.0009952/8.039, allocations: 0.5727 MB / 3.555 GB, free: 29.99 MB / 0.8698 GB Notification: Performance of simCode: created event and clocks part: time 5.761e-06/8.039, allocations: 4 kB / 3.555 GB, free: 29.99 MB / 0.8698 GB Notification: Performance of simCode: created simulation system equations: time 0.0002717/8.039, allocations: 183.8 kB / 3.556 GB, free: 29.81 MB / 0.8698 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0016/8.041, allocations: 324 kB / 3.556 GB, free: 29.5 MB / 0.8698 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001768/8.042, allocations: 1.071 MB / 3.557 GB, free: 28.37 MB / 0.8698 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004222/8.043, allocations: 0.9581 MB / 3.558 GB, free: 27.39 MB / 0.8698 GB Notification: Performance of simCode: alias equations: time 0.0008324/8.044, allocations: 232.6 kB / 3.558 GB, free: 27.16 MB / 0.8698 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000109/8.044, allocations: 35.44 kB / 3.558 GB, free: 27.12 MB / 0.8698 GB Notification: Performance of SimCode: time 7.12e-07/8.044, allocations: 0 / 3.558 GB, free: 27.12 MB / 0.8698 GB Notification: Performance of Templates: time 0.02655/8.07, allocations: 18.79 MB / 3.576 GB, free: 8.434 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