Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Buildings_9_Buildings.Fluid.Sensors.Examples.Density.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.1.1-maint.9.1.x/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 9.1.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.1.1-maint.9.1.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_9_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_9_Buildings.Fluid.Sensors.Examples.Density") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.1.1-maint.9.1.x/package.mo): time 2.001/2.001, allocations: 387.4 MB / 394.9 MB, free: 13.43 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.0009425/0.0009425, allocations: 184.5 kB / 487.4 MB, free: 5.055 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.433/1.433, allocations: 221.5 MB / 0.7824 GB, free: 0.9844 MB / 0.5417 GB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001167/0.001167, allocations: 103.6 kB / 0.9219 GB, free: 2.219 MB / 0.6823 GB Notification: Performance of FrontEnd - loaded program: time 2.358e-05/2.36e-05, allocations: 9.781 kB / 1.067 GB, free: 185.7 MB / 0.7605 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2873/0.2873, allocations: 142.4 MB / 1.206 GB, free: 43.96 MB / 0.7605 GB Notification: Performance of FrontEnd - scodeFlatten: time 4.827/5.114, allocations: 1.925 GB / 3.131 GB, free: 351 MB / 1.151 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002526/5.115, allocations: 90.44 kB / 3.131 GB, free: 351 MB / 1.151 GB Notification: Performance of FrontEnd - DAE generated: time 1.45/6.565, allocations: 486 MB / 3.606 GB, free: 307.4 MB / 1.151 GB Notification: Performance of FrontEnd: time 2.244e-06/6.565, allocations: 0 / 3.606 GB, free: 307.4 MB / 1.151 GB Notification: Performance of Transformations before backend: time 7.986e-05/6.565, allocations: 27.45 kB / 3.606 GB, free: 307.4 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.002298/6.567, allocations: 1.022 MB / 3.607 GB, free: 306.9 MB / 1.151 GB Notification: Performance of prepare preOptimizeDAE: time 4.185e-05/6.567, allocations: 12.25 kB / 3.607 GB, free: 306.9 MB / 1.151 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001973/6.569, allocations: 265.6 kB / 3.607 GB, free: 306.8 MB / 1.151 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001237/6.571, allocations: 0.6203 MB / 3.607 GB, free: 306.6 MB / 1.151 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.765e-05/6.571, allocations: 19.75 kB / 3.607 GB, free: 306.6 MB / 1.151 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.000122/6.571, allocations: 38.34 kB / 3.608 GB, free: 306.6 MB / 1.151 GB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0007444/6.572, allocations: 445.9 kB / 3.608 GB, free: 306.6 MB / 1.151 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0008124/6.572, allocations: 0.5164 MB / 3.608 GB, free: 306.5 MB / 1.151 GB Notification: Performance of preOpt findStateOrder (simulation): time 2.229e-05/6.572, allocations: 4 kB / 3.608 GB, free: 306.5 MB / 1.151 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.727e-05/6.573, allocations: 0 / 3.608 GB, free: 306.5 MB / 1.151 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.587e-05/6.573, allocations: 20.47 kB / 3.608 GB, free: 306.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.002695/6.575, allocations: 2.307 MB / 3.611 GB, free: 305.3 MB / 1.151 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0004691/6.576, allocations: 323 kB / 3.611 GB, free: 305.2 MB / 1.151 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002423/6.576, allocations: 203.8 kB / 3.611 GB, free: 305.2 MB / 1.151 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0004331/6.576, allocations: 309.7 kB / 3.612 GB, free: 304.9 MB / 1.151 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.005e-05/6.576, allocations: 41.98 kB / 3.612 GB, free: 304.9 MB / 1.151 GB Notification: Performance of pre-optimization done (n=39): time 1.794e-06/6.576, allocations: 0 / 3.612 GB, free: 304.9 MB / 1.151 GB Notification: Performance of matching and sorting (n=39): time 0.0009586/6.577, allocations: 429.5 kB / 3.612 GB, free: 304.8 MB / 1.151 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.525e-05/6.577, allocations: 54.25 kB / 3.612 GB, free: 304.8 MB / 1.151 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003869/6.578, allocations: 370.7 kB / 3.612 GB, free: 304.7 MB / 1.151 GB Notification: Performance of collectPreVariables (initialization): time 4.308e-05/6.578, allocations: 29.58 kB / 3.612 GB, free: 304.6 MB / 1.151 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001612/6.578, allocations: 321.8 kB / 3.613 GB, free: 304.5 MB / 1.151 GB Notification: Performance of collectInitialBindings (initialization): time 9.521e-05/6.578, allocations: 135 kB / 3.613 GB, free: 304.4 MB / 1.151 GB Notification: Performance of simplifyInitialFunctions (initialization): time 1.899e-05/6.578, allocations: 0 / 3.613 GB, free: 304.4 MB / 1.151 GB Notification: Performance of setup shared object (initialization): time 8.483e-05/6.578, allocations: 363.4 kB / 3.613 GB, free: 304.1 MB / 1.151 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001844/6.579, allocations: 141.8 kB / 3.613 GB, free: 304.1 MB / 1.151 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002357/6.579, allocations: 255.7 kB / 3.614 GB, free: 304 MB / 1.151 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003305/6.579, allocations: 201.4 kB / 3.614 GB, free: 304 MB / 1.151 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.206e-06/6.579, allocations: 3.75 kB / 3.614 GB, free: 304 MB / 1.151 GB Notification: Performance of matching and sorting (n=53) (initialization): time 0.0006687/6.58, allocations: 473.3 kB / 3.614 GB, free: 303.9 MB / 1.151 GB Notification: Performance of prepare postOptimizeDAE: time 0.0001698/6.58, allocations: 0.883 MB / 3.615 GB, free: 303 MB / 1.151 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.554e-06/6.58, allocations: 3 kB / 3.615 GB, free: 303 MB / 1.151 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.927e-05/6.58, allocations: 2.656 kB / 3.615 GB, free: 303 MB / 1.151 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005585/6.581, allocations: 121 kB / 3.615 GB, free: 303 MB / 1.151 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0002673/6.581, allocations: 0.5929 MB / 3.616 GB, free: 302.4 MB / 1.151 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0006241/6.581, allocations: 71.34 kB / 3.616 GB, free: 302.4 MB / 1.151 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.975e-05/6.582, allocations: 25.06 kB / 3.616 GB, free: 302.4 MB / 1.151 GB Notification: Performance of prepare postOptimizeDAE: time 8.526e-06/6.582, allocations: 3.75 kB / 3.616 GB, free: 302.4 MB / 1.151 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.0005762/6.582, allocations: 396.8 kB / 3.616 GB, free: 302.3 MB / 1.151 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.977e-06/6.582, allocations: 0 / 3.616 GB, free: 302.3 MB / 1.151 GB Notification: Performance of postOpt tearingSystem (initialization): time 6.382e-06/6.582, allocations: 6.781 kB / 3.616 GB, free: 302.3 MB / 1.151 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003651/6.583, allocations: 93.8 kB / 3.616 GB, free: 302.3 MB / 1.151 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.422e-06/6.583, allocations: 6.594 kB / 3.616 GB, free: 302.3 MB / 1.151 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005651/6.583, allocations: 81.77 kB / 3.616 GB, free: 302.3 MB / 1.151 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.659e-05/6.583, allocations: 15.34 kB / 3.616 GB, free: 302.3 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.0001176/6.583, allocations: 116.1 kB / 3.617 GB, free: 302.2 MB / 1.151 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.54e-05/6.583, allocations: 57.69 kB / 3.617 GB, free: 302.2 MB / 1.151 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0006664/6.584, allocations: 438.1 kB / 3.617 GB, free: 302 MB / 1.151 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.671e-06/6.584, allocations: 3.594 kB / 3.617 GB, free: 302 MB / 1.151 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.779e-06/6.584, allocations: 0.75 kB / 3.617 GB, free: 302 MB / 1.151 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.000516/6.585, allocations: 0.6548 MB / 3.618 GB, free: 301.5 MB / 1.151 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001595/6.586, allocations: 1.163 MB / 3.619 GB, free: 300.9 MB / 1.151 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.925e-06/6.586, allocations: 0 / 3.619 GB, free: 300.9 MB / 1.151 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004763/6.587, allocations: 110.1 kB / 3.619 GB, free: 300.8 MB / 1.151 GB Notification: Performance of postOpt tearingSystem (simulation): time 7.644e-06/6.587, allocations: 3.938 kB / 3.619 GB, free: 300.8 MB / 1.151 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.129e-05/6.587, allocations: 15.58 kB / 3.619 GB, free: 300.8 MB / 1.151 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0001936/6.587, allocations: 0.5954 MB / 3.619 GB, free: 300.2 MB / 1.151 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.37e-06/6.587, allocations: 3.938 kB / 3.619 GB, free: 300.2 MB / 1.151 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0008402/6.588, allocations: 0.7976 MB / 3.62 GB, free: 299.7 MB / 1.151 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0002409/6.588, allocations: 181.1 kB / 3.62 GB, free: 299.6 MB / 1.151 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 8.454e-05/6.588, allocations: 7.797 kB / 3.62 GB, free: 299.6 MB / 1.151 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004717/6.589, allocations: 48.73 kB / 3.621 GB, free: 299.6 MB / 1.151 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.503e-05/6.589, allocations: 27.08 kB / 3.621 GB, free: 299.6 MB / 1.151 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.697e-05/6.589, allocations: 17.06 kB / 3.621 GB, free: 299.6 MB / 1.151 GB Notification: Performance of sorting global known variables: time 0.0002471/6.589, allocations: 284.8 kB / 3.621 GB, free: 299.4 MB / 1.151 GB Notification: Performance of sort global known variables: time 1.3e-07/6.589, allocations: 2.469 kB / 3.621 GB, free: 299.4 MB / 1.151 GB Notification: Performance of remove unused functions: time 0.001148/6.59, allocations: 445.1 kB / 3.621 GB, free: 299.3 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.001983/6.592, allocations: 1.545 MB / 3.623 GB, free: 298.9 MB / 1.151 GB Notification: Performance of simCode: created initialization part: time 0.001062/6.593, allocations: 0.5879 MB / 3.623 GB, free: 298.7 MB / 1.151 GB Notification: Performance of simCode: created event and clocks part: time 4.017e-06/6.593, allocations: 3.438 kB / 3.623 GB, free: 298.7 MB / 1.151 GB Notification: Performance of simCode: created simulation system equations: time 0.0002823/6.594, allocations: 190.1 kB / 3.624 GB, free: 298.6 MB / 1.151 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001494/6.595, allocations: 319.3 kB / 3.624 GB, free: 298.6 MB / 1.151 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001874/6.597, allocations: 1.075 MB / 3.625 GB, free: 298.1 MB / 1.151 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000431/6.597, allocations: 0.9624 MB / 3.626 GB, free: 297.4 MB / 1.151 GB Notification: Performance of simCode: alias equations: time 0.0008361/6.598, allocations: 233.2 kB / 3.626 GB, free: 297.4 MB / 1.151 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001128/6.598, allocations: 39.91 kB / 3.626 GB, free: 297.4 MB / 1.151 GB Notification: Performance of SimCode: time 5.41e-07/6.598, allocations: 0 / 3.626 GB, free: 297.4 MB / 1.151 GB Notification: Performance of Templates: time 0.02573/6.624, allocations: 18.74 MB / 3.644 GB, free: 293.4 MB / 1.151 GB make -j1 -f Buildings_9_Buildings.Fluid.Sensors.Examples.Density.makefile (rm -f Buildings_9_Buildings.Fluid.Sensors.Examples.Density.pipe ; mkfifo Buildings_9_Buildings.Fluid.Sensors.Examples.Density.pipe ; head -c 1048576 < Buildings_9_Buildings.Fluid.Sensors.Examples.Density.pipe >> ../files/Buildings_9_Buildings.Fluid.Sensors.Examples.Density.sim & ./Buildings_9_Buildings.Fluid.Sensors.Examples.Density -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Buildings_9_Buildings.Fluid.Sensors.Examples.Density.pipe 2>&1) diffSimulationResults("Buildings_9_Buildings.Fluid.Sensors.Examples.Density_res.mat","/mnt/ReferenceFiles/Buildings/csv/maint_9.1.x/Buildings_Fluid_Sensors_Examples_Density.csv","../files/Buildings_9_Buildings.Fluid.Sensors.Examples.Density.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches