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.3-maint.9.1.x/package.mo", uses=false) Using package Buildings with version 9.1.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.1.3-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.001473/0.001473, allocations: 106 kB / 15.99 MB, free: 6.352 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.001554/0.001554, allocations: 193 kB / 16.91 MB, free: 6.184 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.364/1.364, allocations: 222.9 MB / 240.6 MB, free: 15.45 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.1.3-maint.9.1.x/package.mo): time 2.224/2.224, allocations: 390.3 MB / 0.665 GB, free: 0.9141 MB / 0.5294 GB Notification: Performance of FrontEnd - loaded program: time 0.001269/0.001269, allocations: 63.09 kB / 0.8127 GB, free: 33.13 MB / 0.6231 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3001/0.3013, allocations: 140.4 MB / 0.9498 GB, free: 9.27 MB / 0.7325 GB Notification: Performance of NFInst.instantiate(Buildings.Fluid.Sensors.Examples.Density): time 0.7714/1.073, allocations: 182.6 MB / 1.128 GB, free: 5.734 MB / 0.8575 GB Notification: Performance of NFInst.instExpressions: time 0.009964/1.083, allocations: 6.924 MB / 1.135 GB, free: 5.57 MB / 0.8575 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.001627/1.085, allocations: 25.38 kB / 1.135 GB, free: 5.57 MB / 0.8575 GB Notification: Performance of NFTyping.typeComponents: time 0.001384/1.086, allocations: 349.1 kB / 1.135 GB, free: 5.566 MB / 0.8575 GB Notification: Performance of NFTyping.typeBindings: time 0.004359/1.09, allocations: 1.362 MB / 1.137 GB, free: 5.488 MB / 0.8575 GB Notification: Performance of NFTyping.typeClassSections: time 0.00358/1.094, allocations: 1.068 MB / 1.138 GB, free: 5.445 MB / 0.8575 GB Notification: Performance of NFFlatten.flatten: time 0.00322/1.097, allocations: 1.942 MB / 1.14 GB, free: 5.336 MB / 0.8575 GB Notification: Performance of NFFlatten.resolveConnections: time 0.001061/1.098, allocations: 0.642 MB / 1.14 GB, free: 5.238 MB / 0.8575 GB Notification: Performance of NFEvalConstants.evaluate: time 0.002122/1.1, allocations: 0.8184 MB / 1.141 GB, free: 5.145 MB / 0.8575 GB Notification: Performance of NFSimplifyModel.simplify: time 0.001653/1.102, allocations: 0.6343 MB / 1.142 GB, free: 5.113 MB / 0.8575 GB Notification: Performance of NFPackage.collectConstants: time 0.0001551/1.102, allocations: 73.22 kB / 1.142 GB, free: 5.109 MB / 0.8575 GB Notification: Performance of NFFlatten.collectFunctions: time 0.004545/1.107, allocations: 1.996 MB / 1.144 GB, free: 4.914 MB / 0.8575 GB Notification: Performance of NFScalarize.scalarize: time 0.0004195/1.107, allocations: 294 kB / 1.144 GB, free: 4.879 MB / 0.8575 GB Notification: Performance of NFVerifyModel.verify: time 0.0007284/1.108, allocations: 436.1 kB / 1.144 GB, free: 4.762 MB / 0.8575 GB Notification: Performance of NFConvertDAE.convert: time 0.002449/1.11, allocations: 1.28 MB / 1.146 GB, free: 4.664 MB / 0.8575 GB Notification: Performance of FrontEnd - DAE generated: time 6.352e-06/1.11, allocations: 0 / 1.146 GB, free: 4.664 MB / 0.8575 GB Notification: Performance of FrontEnd: time 1.614e-06/1.11, allocations: 3.938 kB / 1.146 GB, free: 4.66 MB / 0.8575 GB Notification: Performance of Transformations before backend: time 1.282e-05/1.11, allocations: 1.312 kB / 1.146 GB, free: 4.66 MB / 0.8575 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.002285/1.113, allocations: 1.159 MB / 1.147 GB, free: 19.96 MB / 0.8731 GB Notification: Performance of prepare preOptimizeDAE: time 4.346e-05/1.113, allocations: 8.188 kB / 1.147 GB, free: 19.96 MB / 0.8731 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.002015/1.115, allocations: 274.3 kB / 1.147 GB, free: 19.92 MB / 0.8731 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001051/1.116, allocations: 0.5839 MB / 1.148 GB, free: 19.62 MB / 0.8731 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.055e-05/1.116, allocations: 42.53 kB / 1.148 GB, free: 19.62 MB / 0.8731 GB Notification: Performance of preOpt expandDerOperator (simulation): time 9.717e-05/1.116, allocations: 54.66 kB / 1.148 GB, free: 19.62 MB / 0.8731 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001182/1.117, allocations: 0.6301 MB / 1.148 GB, free: 19.54 MB / 0.8731 GB Notification: Performance of preOpt findStateOrder (simulation): time 2.156e-05/1.117, allocations: 1.375 kB / 1.148 GB, free: 19.54 MB / 0.8731 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.463e-05/1.117, allocations: 33.22 kB / 1.148 GB, free: 19.53 MB / 0.8731 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.185e-05/1.117, allocations: 19.22 kB / 1.148 GB, free: 19.53 MB / 0.8731 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0009077/1.118, allocations: 0.5251 MB / 1.149 GB, free: 19.5 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.003058/1.121, allocations: 2.452 MB / 1.151 GB, free: 17.73 MB / 0.8731 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0006319/1.122, allocations: 362.7 kB / 1.152 GB, free: 17.58 MB / 0.8731 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003634/1.122, allocations: 238.9 kB / 1.152 GB, free: 17.5 MB / 0.8731 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0005868/1.123, allocations: 304.1 kB / 1.152 GB, free: 17.21 MB / 0.8731 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.006e-05/1.123, allocations: 36.89 kB / 1.152 GB, free: 17.17 MB / 0.8731 GB Notification: Performance of pre-optimization done (n=39): time 1.874e-06/1.123, allocations: 5.062 kB / 1.152 GB, free: 17.16 MB / 0.8731 GB Notification: Performance of matching and sorting (n=39): time 0.001389/1.124, allocations: 0.6133 MB / 1.153 GB, free: 16.93 MB / 0.8731 GB Notification: Performance of inlineWhenForInitialization (initialization): time 5.281e-05/1.124, allocations: 54.97 kB / 1.153 GB, free: 16.87 MB / 0.8731 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0005497/1.125, allocations: 0.4932 MB / 1.153 GB, free: 16.64 MB / 0.8731 GB Notification: Performance of collectPreVariables (initialization): time 5.135e-05/1.125, allocations: 37.05 kB / 1.153 GB, free: 16.61 MB / 0.8731 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001802/1.125, allocations: 331.4 kB / 1.154 GB, free: 16.34 MB / 0.8731 GB Notification: Performance of collectInitialBindings (initialization): time 0.0001053/1.125, allocations: 135.4 kB / 1.154 GB, free: 16.24 MB / 0.8731 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001502/1.126, allocations: 92.28 kB / 1.154 GB, free: 16.19 MB / 0.8731 GB Notification: Performance of setup shared object (initialization): time 0.0001668/1.126, allocations: 372.7 kB / 1.154 GB, free: 15.85 MB / 0.8731 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003234/1.126, allocations: 171.3 kB / 1.154 GB, free: 15.79 MB / 0.8731 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003963/1.126, allocations: 282.8 kB / 1.155 GB, free: 15.61 MB / 0.8731 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0006811/1.127, allocations: 457.3 kB / 1.155 GB, free: 15.36 MB / 0.8731 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.699e-06/1.127, allocations: 5.281 kB / 1.155 GB, free: 15.36 MB / 0.8731 GB Notification: Performance of matching and sorting (n=53) (initialization): time 0.0009277/1.128, allocations: 0.5148 MB / 1.156 GB, free: 15.14 MB / 0.8731 GB Notification: Performance of prepare postOptimizeDAE: time 2.124e-05/1.128, allocations: 5.656 kB / 1.156 GB, free: 15.14 MB / 0.8731 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.819e-06/1.128, allocations: 5.203 kB / 1.156 GB, free: 15.14 MB / 0.8731 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.147e-05/1.128, allocations: 4.531 kB / 1.156 GB, free: 15.14 MB / 0.8731 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0007183/1.129, allocations: 133.6 kB / 1.156 GB, free: 15.13 MB / 0.8731 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0004023/1.129, allocations: 0.597 MB / 1.156 GB, free: 14.53 MB / 0.8731 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0007192/1.13, allocations: 91.98 kB / 1.156 GB, free: 14.49 MB / 0.8731 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.606e-05/1.13, allocations: 17.22 kB / 1.156 GB, free: 14.49 MB / 0.8731 GB Notification: Performance of preBalanceInitialSystem (initialization_lambda0): time 0.0005389/1.131, allocations: 352.7 kB / 1.157 GB, free: 14.31 MB / 0.8731 GB Notification: Performance of partitionIndependentBlocks (initialization_lambda0): time 0.0003656/1.131, allocations: 286.6 kB / 1.157 GB, free: 14.13 MB / 0.8731 GB Notification: Performance of analyzeInitialSystem (initialization_lambda0): time 0.0006481/1.132, allocations: 451.7 kB / 1.157 GB, free: 13.89 MB / 0.8731 GB Notification: Performance of solveInitialSystemEqSystem (initialization_lambda0): time 2.966e-06/1.132, allocations: 1.344 kB / 1.157 GB, free: 13.89 MB / 0.8731 GB Notification: Performance of matching and sorting (n=53) (initialization_lambda0): time 0.0008854/1.133, allocations: 0.5253 MB / 1.158 GB, free: 13.67 MB / 0.8731 GB Notification: Performance of prepare postOptimizeDAE: time 1.45e-05/1.133, allocations: 8.156 kB / 1.158 GB, free: 13.67 MB / 0.8731 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.298e-06/1.133, allocations: 2.75 kB / 1.158 GB, free: 13.67 MB / 0.8731 GB Notification: Performance of postOpt tearingSystem (initialization): time 8.085e-06/1.133, allocations: 8.062 kB / 1.158 GB, free: 13.66 MB / 0.8731 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004903/1.133, allocations: 120.6 kB / 1.158 GB, free: 13.65 MB / 0.8731 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.876e-06/1.133, allocations: 5.172 kB / 1.158 GB, free: 13.65 MB / 0.8731 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0006891/1.134, allocations: 72.66 kB / 1.158 GB, free: 13.62 MB / 0.8731 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.014e-05/1.134, allocations: 21 kB / 1.158 GB, free: 13.62 MB / 0.8731 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 (not torn): 1 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Equation system details (not torn): * Constant Jacobian (size): 0 systems * Linear Jacobian (size,density): 0 systems * Non-linear Jacobian (size): 1 system {1} * Without analytic Jacobian (size): 0 systems Notification: Performance of prepare postOptimizeDAE: time 0.0002263/1.134, allocations: 212 kB / 1.158 GB, free: 13.41 MB / 0.8731 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001101/1.134, allocations: 56.97 kB / 1.158 GB, free: 13.39 MB / 0.8731 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0009289/1.135, allocations: 489.5 kB / 1.159 GB, free: 13.18 MB / 0.8731 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.653e-06/1.135, allocations: 4.688 kB / 1.159 GB, free: 13.18 MB / 0.8731 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.42e-06/1.135, allocations: 0 / 1.159 GB, free: 13.18 MB / 0.8731 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.0008302/1.136, allocations: 0.7104 MB / 1.16 GB, free: 12.62 MB / 0.8731 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002153/1.138, allocations: 1.293 MB / 1.161 GB, free: 11.9 MB / 0.8731 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.461e-06/1.138, allocations: 1.344 kB / 1.161 GB, free: 11.9 MB / 0.8731 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0006149/1.139, allocations: 116.2 kB / 1.161 GB, free: 11.9 MB / 0.8731 GB Notification: Performance of postOpt tearingSystem (simulation): time 8.777e-06/1.139, allocations: 2.75 kB / 1.161 GB, free: 11.9 MB / 0.8731 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.247e-05/1.139, allocations: 16.39 kB / 1.161 GB, free: 11.89 MB / 0.8731 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0003505/1.139, allocations: 0.5978 MB / 1.162 GB, free: 11.29 MB / 0.8731 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.957e-06/1.139, allocations: 3.375 kB / 1.162 GB, free: 11.29 MB / 0.8731 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001346/1.141, allocations: 0.7885 MB / 1.162 GB, free: 10.87 MB / 0.8731 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0003297/1.141, allocations: 184.1 kB / 1.162 GB, free: 10.71 MB / 0.8731 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 8.877e-05/1.141, allocations: 15.53 kB / 1.162 GB, free: 10.71 MB / 0.8731 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000509/1.142, allocations: 47.48 kB / 1.163 GB, free: 10.7 MB / 0.8731 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.525e-05/1.142, allocations: 39.23 kB / 1.163 GB, free: 10.68 MB / 0.8731 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.627e-05/1.142, allocations: 10.59 kB / 1.163 GB, free: 10.68 MB / 0.8731 GB Notification: Performance of sorting global known variables: time 0.0004501/1.142, allocations: 358.8 kB / 1.163 GB, free: 10.52 MB / 0.8731 GB Notification: Performance of sort global known variables: time 1.51e-07/1.142, allocations: 1.25 kB / 1.163 GB, free: 10.52 MB / 0.8731 GB Notification: Performance of remove unused functions: time 0.001116/1.143, allocations: 363.9 kB / 1.163 GB, free: 10.45 MB / 0.8731 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 (not torn): 1 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Equation system details (not torn): * Constant Jacobian (size): 0 systems * Linear Jacobian (size,density): 0 systems * Non-linear Jacobian (size): 1 system {1} * Without analytic Jacobian (size): 0 systems Notification: Performance of Backend phase and start with SimCode phase: time 0.0005026/1.144, allocations: 207.5 kB / 1.163 GB, free: 10.32 MB / 0.8731 GB Notification: Performance of simCode: created initialization part: time 0.001695/1.145, allocations: 0.6993 MB / 1.164 GB, free: 10.11 MB / 0.8731 GB Notification: Performance of simCode: created event and clocks part: time 4.439e-06/1.146, allocations: 384 / 1.164 GB, free: 10.11 MB / 0.8731 GB Notification: Performance of simCode: created simulation system equations: time 0.0004224/1.146, allocations: 227.5 kB / 1.164 GB, free: 10.04 MB / 0.8731 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001662/1.148, allocations: 360.3 kB / 1.165 GB, free: 9.926 MB / 0.8731 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0026/1.15, allocations: 1.689 MB / 1.166 GB, free: 8.812 MB / 0.8731 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005765/1.151, allocations: 0.9471 MB / 1.167 GB, free: 8.086 MB / 0.8731 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002005/1.151, allocations: 53.66 kB / 1.167 GB, free: 8.074 MB / 0.8731 GB Notification: Performance of SimCode: time 3.21e-07/1.151, allocations: 0 / 1.167 GB, free: 8.074 MB / 0.8731 GB Notification: Performance of Templates: time 0.02014/1.171, allocations: 12.97 MB / 1.18 GB, free: 3.477 MB / 0.8731 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","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_9_Buildings.Fluid.Sensors.Examples.Density.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches