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/ModelicaServices 4.0.0+maint.om/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/Buildings 9.1.2-maint.9.1.x/package.mo", uses=false) Using package Buildings with version 9.1.2 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.1.2-maint.9.1.x/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 ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/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/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001031/0.001031, allocations: 99.86 kB / 15.05 MB, free: 1.105 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001199/0.001199, allocations: 177.3 kB / 15.94 MB, free: 228 kB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.422/1.422, allocations: 223.2 MB / 239.9 MB, free: 5.238 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.1.2-maint.9.1.x/package.mo): time 2.422/2.422, allocations: 390.3 MB / 0.6653 GB, free: 2.859 MB / 0.5137 GB Notification: Performance of FrontEnd - loaded program: time 0.0006361/0.0006362, allocations: 8 kB / 0.8145 GB, free: 14.23 MB / 0.67 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.7766/0.7773, allocations: 142.3 MB / 0.9535 GB, free: 8.047 MB / 0.7169 GB Notification: Performance of NFInst.instantiate(Buildings.Fluid.Sensors.Examples.Density): time 0.1838/0.9611, allocations: 154 MB / 1.104 GB, free: 5.75 MB / 0.8575 GB Notification: Performance of NFInst.instExpressions: time 0.01092/0.9721, allocations: 6.514 MB / 1.11 GB, free: 15.22 MB / 0.8731 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.001/0.9731, allocations: 27.75 kB / 1.11 GB, free: 15.2 MB / 0.8731 GB Notification: Performance of NFTyping.typeComponents: time 0.001309/0.9745, allocations: 414.1 kB / 1.111 GB, free: 14.79 MB / 0.8731 GB Notification: Performance of NFTyping.typeBindings: time 0.003946/0.9784, allocations: 1.317 MB / 1.112 GB, free: 13.47 MB / 0.8731 GB Notification: Performance of NFTyping.typeClassSections: time 0.003271/0.9817, allocations: 1.031 MB / 1.113 GB, free: 12.45 MB / 0.8731 GB Notification: Performance of NFFlatten.flatten: time 0.001608/0.9833, allocations: 1.124 MB / 1.114 GB, free: 11.32 MB / 0.8731 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0007105/0.984, allocations: 0.5041 MB / 1.115 GB, free: 10.8 MB / 0.8731 GB Notification: Performance of NFEvalConstants.evaluate: time 0.001101/0.9852, allocations: 0.6152 MB / 1.115 GB, free: 10.18 MB / 0.8731 GB Notification: Performance of NFSimplifyModel.simplify: time 0.000519/0.9857, allocations: 378.5 kB / 1.116 GB, free: 9.812 MB / 0.8731 GB Notification: Performance of NFPackage.collectConstants: time 6.755e-05/0.9858, allocations: 32 kB / 1.116 GB, free: 9.781 MB / 0.8731 GB Notification: Performance of NFFlatten.collectFunctions: time 0.00197/0.9877, allocations: 0.8853 MB / 1.116 GB, free: 8.895 MB / 0.8731 GB Notification: Performance of NFScalarize.scalarize: time 0.0002409/0.988, allocations: 227.4 kB / 1.117 GB, free: 8.672 MB / 0.8731 GB Notification: Performance of NFVerifyModel.verify: time 0.0001715/0.9882, allocations: 173.3 kB / 1.117 GB, free: 8.496 MB / 0.8731 GB Notification: Performance of NFConvertDAE.convert: time 0.001211/0.9894, allocations: 1.013 MB / 1.118 GB, free: 7.484 MB / 0.8731 GB Notification: Performance of FrontEnd - DAE generated: time 2.655e-06/0.9894, allocations: 0 / 1.118 GB, free: 7.484 MB / 0.8731 GB Notification: Performance of FrontEnd: time 1.653e-06/0.9894, allocations: 0 / 1.118 GB, free: 7.484 MB / 0.8731 GB Notification: Performance of Transformations before backend: time 1.059e-05/0.9894, allocations: 0 / 1.118 GB, free: 7.484 MB / 0.8731 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.001736/0.9912, allocations: 0.9816 MB / 1.119 GB, free: 6.453 MB / 0.8731 GB Notification: Performance of prepare preOptimizeDAE: time 4.502e-05/0.9912, allocations: 8.031 kB / 1.119 GB, free: 6.445 MB / 0.8731 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001857/0.9931, allocations: 282.7 kB / 1.119 GB, free: 6.168 MB / 0.8731 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0009875/0.9941, allocations: 0.5601 MB / 1.12 GB, free: 5.566 MB / 0.8731 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.587e-05/0.9941, allocations: 41.31 kB / 1.12 GB, free: 5.527 MB / 0.8731 GB Notification: Performance of preOpt expandDerOperator (simulation): time 9.124e-05/0.9942, allocations: 63.91 kB / 1.12 GB, free: 5.465 MB / 0.8731 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001045/0.9953, allocations: 0.6362 MB / 1.12 GB, free: 4.812 MB / 0.8731 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.882e-05/0.9953, allocations: 0 / 1.12 GB, free: 4.812 MB / 0.8731 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.177e-05/0.9954, allocations: 20 kB / 1.12 GB, free: 4.793 MB / 0.8731 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.048e-05/0.9954, allocations: 17.31 kB / 1.12 GB, free: 4.777 MB / 0.8731 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0009244/0.9963, allocations: 0.5321 MB / 1.121 GB, free: 4.246 MB / 0.8731 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.00315/0.9995, allocations: 2.45 MB / 1.123 GB, free: 1.578 MB / 0.8731 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0006771/1, allocations: 375.5 kB / 1.124 GB, free: 1.203 MB / 0.8731 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0003948/1.001, allocations: 145.4 kB / 1.124 GB, free: 1.043 MB / 0.8731 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.875e-05/1.001, allocations: 42.83 kB / 1.124 GB, free: 0.9922 MB / 0.8731 GB Notification: Performance of pre-optimization done (n=39): time 1.683e-06/1.001, allocations: 0 / 1.124 GB, free: 0.9922 MB / 0.8731 GB Notification: Performance of matching and sorting (n=39): time 0.001405/1.002, allocations: 0.6345 MB / 1.124 GB, free: 360 kB / 0.8731 GB Notification: Performance of inlineWhenForInitialization (initialization): time 5.469e-05/1.002, allocations: 55.41 kB / 1.124 GB, free: 292 kB / 0.8731 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0006514/1.003, allocations: 0.4911 MB / 1.125 GB, free: 15.78 MB / 0.8887 GB Notification: Performance of collectPreVariables (initialization): time 4.885e-05/1.003, allocations: 37.7 kB / 1.125 GB, free: 15.74 MB / 0.8887 GB Notification: Performance of collectInitialEqns (initialization): time 0.0002827/1.003, allocations: 320.4 kB / 1.125 GB, free: 15.42 MB / 0.8887 GB Notification: Performance of collectInitialBindings (initialization): time 0.0001418/1.003, allocations: 145.9 kB / 1.125 GB, free: 15.28 MB / 0.8887 GB Notification: Performance of simplifyInitialFunctions (initialization): time 2.415e-05/1.003, allocations: 12 kB / 1.125 GB, free: 15.27 MB / 0.8887 GB Notification: Performance of setup shared object (initialization): time 0.0001945/1.004, allocations: 362.8 kB / 1.126 GB, free: 14.9 MB / 0.8887 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003351/1.004, allocations: 168.8 kB / 1.126 GB, free: 14.74 MB / 0.8887 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004224/1.004, allocations: 283.4 kB / 1.126 GB, free: 14.43 MB / 0.8887 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003797/1.005, allocations: 215.9 kB / 1.126 GB, free: 14.21 MB / 0.8887 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.203e-06/1.005, allocations: 4 kB / 1.126 GB, free: 14.21 MB / 0.8887 GB Notification: Performance of matching and sorting (n=53) (initialization): time 0.0009993/1.006, allocations: 0.5278 MB / 1.127 GB, free: 13.68 MB / 0.8887 GB Notification: Performance of prepare postOptimizeDAE: time 0.0003815/1.006, allocations: 0.881 MB / 1.128 GB, free: 12.73 MB / 0.8887 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.626e-06/1.006, allocations: 0 / 1.128 GB, free: 12.73 MB / 0.8887 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.787e-05/1.006, allocations: 8 kB / 1.128 GB, free: 12.72 MB / 0.8887 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0007177/1.007, allocations: 139.8 kB / 1.128 GB, free: 12.58 MB / 0.8887 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0003997/1.007, allocations: 0.6054 MB / 1.129 GB, free: 11.95 MB / 0.8887 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0006412/1.008, allocations: 83.59 kB / 1.129 GB, free: 11.87 MB / 0.8887 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.508e-05/1.008, allocations: 16 kB / 1.129 GB, free: 11.86 MB / 0.8887 GB Notification: Performance of prepare postOptimizeDAE: time 1.078e-05/1.008, allocations: 4 kB / 1.129 GB, free: 11.85 MB / 0.8887 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.0008013/1.009, allocations: 471.9 kB / 1.129 GB, free: 11.39 MB / 0.8887 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.125e-06/1.009, allocations: 0 / 1.129 GB, free: 11.39 MB / 0.8887 GB Notification: Performance of postOpt tearingSystem (initialization): time 6.392e-06/1.009, allocations: 4 kB / 1.129 GB, free: 11.39 MB / 0.8887 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004959/1.009, allocations: 132 kB / 1.129 GB, free: 11.26 MB / 0.8887 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.253e-06/1.009, allocations: 7.938 kB / 1.129 GB, free: 11.25 MB / 0.8887 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005436/1.01, allocations: 75.64 kB / 1.129 GB, free: 11.18 MB / 0.8887 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.445e-05/1.01, allocations: 19.98 kB / 1.129 GB, free: 11.16 MB / 0.8887 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.0003744/1.01, allocations: 311 kB / 1.13 GB, free: 10.84 MB / 0.8887 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.989e-05/1.01, allocations: 63.23 kB / 1.13 GB, free: 10.78 MB / 0.8887 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0008895/1.011, allocations: 0.4909 MB / 1.13 GB, free: 10.28 MB / 0.8887 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.673e-06/1.011, allocations: 4 kB / 1.13 GB, free: 10.28 MB / 0.8887 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.278e-06/1.011, allocations: 0 / 1.13 GB, free: 10.28 MB / 0.8887 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.0008219/1.012, allocations: 0.716 MB / 1.131 GB, free: 9.477 MB / 0.8887 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002058/1.014, allocations: 1.292 MB / 1.132 GB, free: 8.105 MB / 0.8887 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.246e-06/1.014, allocations: 0 / 1.132 GB, free: 8.105 MB / 0.8887 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0006209/1.015, allocations: 136 kB / 1.132 GB, free: 7.973 MB / 0.8887 GB Notification: Performance of postOpt tearingSystem (simulation): time 7.194e-06/1.015, allocations: 4 kB / 1.132 GB, free: 7.969 MB / 0.8887 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.478e-05/1.015, allocations: 16 kB / 1.132 GB, free: 7.953 MB / 0.8887 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0003691/1.015, allocations: 0.5937 MB / 1.133 GB, free: 7.336 MB / 0.8887 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.549e-06/1.015, allocations: 3.938 kB / 1.133 GB, free: 7.332 MB / 0.8887 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001298/1.017, allocations: 0.8957 MB / 1.134 GB, free: 6.355 MB / 0.8887 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0003138/1.017, allocations: 188.2 kB / 1.134 GB, free: 6.152 MB / 0.8887 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 8.252e-05/1.017, allocations: 12 kB / 1.134 GB, free: 6.141 MB / 0.8887 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004868/1.018, allocations: 43.95 kB / 1.134 GB, free: 6.098 MB / 0.8887 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.92e-05/1.018, allocations: 27.97 kB / 1.134 GB, free: 6.07 MB / 0.8887 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.447e-05/1.018, allocations: 23.89 kB / 1.134 GB, free: 6.047 MB / 0.8887 GB Notification: Performance of sorting global known variables: time 0.0004133/1.018, allocations: 350.8 kB / 1.134 GB, free: 5.707 MB / 0.8887 GB Notification: Performance of sort global known variables: time 1.51e-07/1.018, allocations: 0 / 1.134 GB, free: 5.707 MB / 0.8887 GB Notification: Performance of remove unused functions: time 0.00103/1.019, allocations: 359.1 kB / 1.135 GB, free: 5.355 MB / 0.8887 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 () * 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.0004903/1.02, allocations: 212.1 kB / 1.135 GB, free: 5.152 MB / 0.8887 GB Notification: Performance of simCode: created initialization part: time 0.001481/1.021, allocations: 0.6796 MB / 1.136 GB, free: 4.473 MB / 0.8887 GB Notification: Performance of simCode: created event and clocks part: time 2.935e-06/1.021, allocations: 0 / 1.136 GB, free: 4.473 MB / 0.8887 GB Notification: Performance of simCode: created simulation system equations: time 0.0004129/1.022, allocations: 224.6 kB / 1.136 GB, free: 4.254 MB / 0.8887 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001626/1.023, allocations: 350.1 kB / 1.136 GB, free: 3.918 MB / 0.8887 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002561/1.026, allocations: 1.724 MB / 1.138 GB, free: 2.145 MB / 0.8887 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005971/1.026, allocations: 0.969 MB / 1.139 GB, free: 1.148 MB / 0.8887 GB Notification: Performance of simCode: alias equations: time 0.0007331/1.027, allocations: 213 kB / 1.139 GB, free: 0.9414 MB / 0.8887 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001398/1.027, allocations: 55.31 kB / 1.139 GB, free: 0.8867 MB / 0.8887 GB Notification: Performance of SimCode: time 1.432e-06/1.027, allocations: 0 / 1.139 GB, free: 0.8867 MB / 0.8887 GB Notification: Performance of Templates: time 0.02016/1.047, allocations: 11.5 MB / 1.15 GB, free: 5.566 MB / 0.9044 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