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.374/2.374, allocations: 390.3 MB / 402.8 MB, free: 6.668 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.001045/0.001045, allocations: 176.5 kB / 496.1 MB, free: 12.86 MB / 410.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.447/1.447, allocations: 221.3 MB / 0.7915 GB, free: 5.395 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.0009588/0.0009588, allocations: 99.61 kB / 0.9317 GB, free: 5.703 MB / 0.698 GB Notification: Performance of FrontEnd - loaded program: time 3.064e-05/3.067e-05, allocations: 8 kB / 1.079 GB, free: 140.5 MB / 0.7292 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2379/0.238, allocations: 143 MB / 1.219 GB, free: 13.53 MB / 0.7448 GB Notification: Performance of FrontEnd - scodeFlatten: time 5.451/5.689, allocations: 1.926 GB / 3.145 GB, free: 332.3 MB / 1.167 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002804/5.689, allocations: 88.95 kB / 3.145 GB, free: 332.3 MB / 1.167 GB Notification: Performance of FrontEnd - DAE generated: time 1.825/7.515, allocations: 491.5 MB / 3.625 GB, free: 300.8 MB / 1.167 GB Notification: Performance of FrontEnd: time 2.264e-06/7.515, allocations: 0 / 3.625 GB, free: 300.8 MB / 1.167 GB Notification: Performance of Transformations before backend: time 6.249e-05/7.515, allocations: 20.52 kB / 3.625 GB, free: 300.8 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.002189/7.517, allocations: 1.033 MB / 3.626 GB, free: 300 MB / 1.167 GB Notification: Performance of prepare preOptimizeDAE: time 4.652e-05/7.517, allocations: 11.5 kB / 3.626 GB, free: 300 MB / 1.167 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.00187/7.519, allocations: 267 kB / 3.626 GB, free: 299.9 MB / 1.167 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001271/7.52, allocations: 0.6114 MB / 3.627 GB, free: 299.4 MB / 1.167 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.057e-05/7.52, allocations: 46.19 kB / 3.627 GB, free: 299.4 MB / 1.167 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001145/7.52, allocations: 53.5 kB / 3.627 GB, free: 299.4 MB / 1.167 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001063/7.521, allocations: 0.5875 MB / 3.628 GB, free: 299 MB / 1.167 GB Notification: Performance of preOpt findStateOrder (simulation): time 2.514e-05/7.521, allocations: 0 / 3.628 GB, free: 299 MB / 1.167 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.826e-05/7.521, allocations: 23.38 kB / 3.628 GB, free: 299 MB / 1.167 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.29e-05/7.522, allocations: 15.94 kB / 3.628 GB, free: 299 MB / 1.167 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0007551/7.522, allocations: 475.4 kB / 3.628 GB, free: 298.8 MB / 1.167 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.003345/7.526, allocations: 2.434 MB / 3.631 GB, free: 296.7 MB / 1.167 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0006441/7.526, allocations: 334.5 kB / 3.631 GB, free: 296.6 MB / 1.167 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003174/7.527, allocations: 215.8 kB / 3.631 GB, free: 296.5 MB / 1.167 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0005364/7.527, allocations: 304.9 kB / 3.631 GB, free: 296.1 MB / 1.167 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.375e-05/7.527, allocations: 34.89 kB / 3.631 GB, free: 296.1 MB / 1.167 GB Notification: Performance of pre-optimization done (n=39): time 2.174e-06/7.527, allocations: 0 / 3.631 GB, free: 296.1 MB / 1.167 GB Notification: Performance of matching and sorting (n=39): time 0.001016/7.528, allocations: 429.7 kB / 3.632 GB, free: 295.9 MB / 1.167 GB Notification: Performance of inlineWhenForInitialization (initialization): time 5.462e-05/7.528, allocations: 67.19 kB / 3.632 GB, free: 295.8 MB / 1.167 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000527/7.529, allocations: 435 kB / 3.632 GB, free: 295.6 MB / 1.167 GB Notification: Performance of collectPreVariables (initialization): time 4.107e-05/7.529, allocations: 37.7 kB / 3.632 GB, free: 295.5 MB / 1.167 GB Notification: Performance of collectInitialEqns (initialization): time 0.0002336/7.529, allocations: 325.8 kB / 3.633 GB, free: 295.3 MB / 1.167 GB Notification: Performance of collectInitialBindings (initialization): time 0.000122/7.529, allocations: 143.3 kB / 3.633 GB, free: 295.1 MB / 1.167 GB Notification: Performance of simplifyInitialFunctions (initialization): time 2.248e-05/7.529, allocations: 11.97 kB / 3.633 GB, free: 295.1 MB / 1.167 GB Notification: Performance of setup shared object (initialization): time 0.0001288/7.529, allocations: 370.2 kB / 3.633 GB, free: 294.8 MB / 1.167 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002127/7.53, allocations: 144.4 kB / 3.633 GB, free: 294.7 MB / 1.167 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003304/7.53, allocations: 267.6 kB / 3.634 GB, free: 294.5 MB / 1.167 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002999/7.53, allocations: 186.4 kB / 3.634 GB, free: 294.4 MB / 1.167 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.36e-06/7.53, allocations: 3.344 kB / 3.634 GB, free: 294.4 MB / 1.167 GB Notification: Performance of matching and sorting (n=53) (initialization): time 0.0007056/7.531, allocations: 493.1 kB / 3.634 GB, free: 294.2 MB / 1.167 GB Notification: Performance of prepare postOptimizeDAE: time 0.0003212/7.531, allocations: 0.8797 MB / 3.635 GB, free: 293.2 MB / 1.167 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.045e-05/7.531, allocations: 3.625 kB / 3.635 GB, free: 293.2 MB / 1.167 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.504e-05/7.531, allocations: 3.719 kB / 3.635 GB, free: 293.2 MB / 1.167 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0006012/7.532, allocations: 109.5 kB / 3.635 GB, free: 293.2 MB / 1.167 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0003598/7.532, allocations: 0.5919 MB / 3.636 GB, free: 292.6 MB / 1.167 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0007026/7.533, allocations: 87.44 kB / 3.636 GB, free: 292.6 MB / 1.167 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.881e-05/7.533, allocations: 22.31 kB / 3.636 GB, free: 292.5 MB / 1.167 GB Notification: Performance of prepare postOptimizeDAE: time 1.379e-05/7.533, allocations: 9.328 kB / 3.636 GB, free: 292.5 MB / 1.167 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.0005936/7.534, allocations: 401.9 kB / 3.636 GB, free: 292.4 MB / 1.167 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.038e-06/7.534, allocations: 7.844 kB / 3.636 GB, free: 292.4 MB / 1.167 GB Notification: Performance of postOpt tearingSystem (initialization): time 5.43e-06/7.534, allocations: 7.938 kB / 3.636 GB, free: 292.4 MB / 1.167 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004207/7.534, allocations: 105.3 kB / 3.636 GB, free: 292.3 MB / 1.167 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.454e-06/7.534, allocations: 7.641 kB / 3.636 GB, free: 292.3 MB / 1.167 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005476/7.535, allocations: 83.2 kB / 3.636 GB, free: 292.3 MB / 1.167 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.42e-05/7.535, allocations: 18.62 kB / 3.636 GB, free: 292.3 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 () * 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.0001863/7.535, allocations: 139.5 kB / 3.637 GB, free: 292.1 MB / 1.167 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001133/7.535, allocations: 65.86 kB / 3.637 GB, free: 292.1 MB / 1.167 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0007897/7.536, allocations: 439.8 kB / 3.637 GB, free: 291.9 MB / 1.167 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.134e-06/7.536, allocations: 6.656 kB / 3.637 GB, free: 291.9 MB / 1.167 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.125e-06/7.536, allocations: 0 / 3.637 GB, free: 291.9 MB / 1.167 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.0006117/7.537, allocations: 0.6745 MB / 3.638 GB, free: 291.3 MB / 1.167 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001915/7.539, allocations: 1.245 MB / 3.639 GB, free: 290.4 MB / 1.167 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.985e-06/7.539, allocations: 0 / 3.639 GB, free: 290.4 MB / 1.167 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0005234/7.539, allocations: 101.7 kB / 3.639 GB, free: 290.4 MB / 1.167 GB Notification: Performance of postOpt tearingSystem (simulation): time 7.344e-06/7.539, allocations: 3.344 kB / 3.639 GB, free: 290.4 MB / 1.167 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.401e-05/7.539, allocations: 17.64 kB / 3.639 GB, free: 290.3 MB / 1.167 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0003605/7.54, allocations: 0.5949 MB / 3.64 GB, free: 289.7 MB / 1.167 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.263e-06/7.54, allocations: 7.828 kB / 3.64 GB, free: 289.7 MB / 1.167 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0009642/7.541, allocations: 0.8075 MB / 3.64 GB, free: 289.1 MB / 1.167 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0002478/7.541, allocations: 183.6 kB / 3.641 GB, free: 289 MB / 1.167 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 7.528e-05/7.541, allocations: 15.83 kB / 3.641 GB, free: 289 MB / 1.167 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004626/7.541, allocations: 47.08 kB / 3.641 GB, free: 288.9 MB / 1.167 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.552e-05/7.541, allocations: 31.45 kB / 3.641 GB, free: 288.9 MB / 1.167 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.819e-05/7.541, allocations: 11.56 kB / 3.641 GB, free: 288.9 MB / 1.167 GB Notification: Performance of sorting global known variables: time 0.0003958/7.542, allocations: 345.3 kB / 3.641 GB, free: 288.7 MB / 1.167 GB Notification: Performance of sort global known variables: time 2e-07/7.542, allocations: 0 / 3.641 GB, free: 288.7 MB / 1.167 GB Notification: Performance of remove unused functions: time 0.001902/7.544, allocations: 0.4887 MB / 3.642 GB, free: 288.6 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 () * 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.002041/7.546, allocations: 1.377 MB / 3.643 GB, free: 287.8 MB / 1.167 GB Notification: Performance of simCode: created initialization part: time 0.001227/7.547, allocations: 0.6276 MB / 3.644 GB, free: 287.6 MB / 1.167 GB Notification: Performance of simCode: created event and clocks part: time 4.228e-06/7.547, allocations: 0 / 3.644 GB, free: 287.6 MB / 1.167 GB Notification: Performance of simCode: created simulation system equations: time 0.0002974/7.547, allocations: 200.1 kB / 3.644 GB, free: 287.5 MB / 1.167 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001603/7.549, allocations: 348.6 kB / 3.644 GB, free: 287.3 MB / 1.167 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0018/7.551, allocations: 1.102 MB / 3.645 GB, free: 286.6 MB / 1.167 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003982/7.551, allocations: 0.9625 MB / 3.646 GB, free: 285.8 MB / 1.167 GB Notification: Performance of simCode: alias equations: time 0.0008324/7.552, allocations: 252.6 kB / 3.646 GB, free: 285.6 MB / 1.167 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.00011/7.552, allocations: 48.78 kB / 3.646 GB, free: 285.6 MB / 1.167 GB Notification: Performance of SimCode: time 5.01e-07/7.552, allocations: 0 / 3.646 GB, free: 285.6 MB / 1.167 GB Notification: Performance of Templates: time 0.04021/7.592, allocations: 32.32 MB / 3.678 GB, free: 254.7 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