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.001597/0.001597, allocations: 107.2 kB / 16.27 MB, free: 6.355 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.001688/0.001688, allocations: 194.9 kB / 17.2 MB, free: 5.953 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.393/1.393, allocations: 222.9 MB / 240.9 MB, free: 15.27 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.24/2.24, allocations: 390.3 MB / 0.6653 GB, free: 0.7188 MB / 0.5294 GB Notification: Performance of FrontEnd - loaded program: time 0.001296/0.001296, allocations: 66.28 kB / 0.8132 GB, free: 33.13 MB / 0.6231 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3241/0.3254, allocations: 140.4 MB / 0.9503 GB, free: 8.891 MB / 0.7325 GB Notification: Performance of NFInst.instantiate(Buildings.Fluid.Sensors.Examples.Density): time 0.7671/1.093, allocations: 185.1 MB / 1.131 GB, free: 4.477 MB / 0.8575 GB Notification: Performance of NFInst.instExpressions: time 0.01083/1.103, allocations: 6.965 MB / 1.138 GB, free: 4.301 MB / 0.8575 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.001696/1.105, allocations: 31.69 kB / 1.138 GB, free: 4.301 MB / 0.8575 GB Notification: Performance of NFTyping.typeComponents: time 0.001382/1.107, allocations: 399.2 kB / 1.138 GB, free: 4.297 MB / 0.8575 GB Notification: Performance of NFTyping.typeBindings: time 0.004419/1.111, allocations: 1.446 MB / 1.14 GB, free: 4.219 MB / 0.8575 GB Notification: Performance of NFTyping.typeClassSections: time 0.003578/1.115, allocations: 1.167 MB / 1.141 GB, free: 4.148 MB / 0.8575 GB Notification: Performance of NFFlatten.flatten: time 0.003051/1.118, allocations: 1.936 MB / 1.143 GB, free: 3.863 MB / 0.8575 GB Notification: Performance of NFFlatten.resolveConnections: time 0.001075/1.119, allocations: 0.6575 MB / 1.143 GB, free: 3.762 MB / 0.8575 GB Notification: Performance of NFEvalConstants.evaluate: time 0.001803/1.121, allocations: 0.8181 MB / 1.144 GB, free: 3.664 MB / 0.8575 GB Notification: Performance of NFSimplifyModel.simplify: time 0.001388/1.122, allocations: 0.6042 MB / 1.145 GB, free: 3.625 MB / 0.8575 GB Notification: Performance of NFPackage.collectConstants: time 0.0001441/1.122, allocations: 68.06 kB / 1.145 GB, free: 3.625 MB / 0.8575 GB Notification: Performance of NFFlatten.collectFunctions: time 0.00513/1.127, allocations: 1.93 MB / 1.147 GB, free: 3.453 MB / 0.8575 GB Notification: Performance of NFScalarize.scalarize: time 0.0005311/1.128, allocations: 290.3 kB / 1.147 GB, free: 3.418 MB / 0.8575 GB Notification: Performance of NFVerifyModel.verify: time 0.0007848/1.129, allocations: 429.8 kB / 1.147 GB, free: 3.305 MB / 0.8575 GB Notification: Performance of NFConvertDAE.convert: time 0.004895/1.134, allocations: 1.75 MB / 1.149 GB, free: 3.098 MB / 0.8575 GB Notification: Performance of FrontEnd - DAE generated: time 6.231e-06/1.134, allocations: 5.156 kB / 1.149 GB, free: 3.094 MB / 0.8575 GB Notification: Performance of FrontEnd: time 2.215e-06/1.134, allocations: 0 / 1.149 GB, free: 3.094 MB / 0.8575 GB Notification: Performance of Transformations before backend: time 1.756e-05/1.134, allocations: 0 / 1.149 GB, free: 3.094 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.002306/1.136, allocations: 1.159 MB / 1.15 GB, free: 18.39 MB / 0.8731 GB Notification: Performance of prepare preOptimizeDAE: time 4.638e-05/1.136, allocations: 13.14 kB / 1.15 GB, free: 18.39 MB / 0.8731 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001996/1.138, allocations: 270.4 kB / 1.15 GB, free: 18.35 MB / 0.8731 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001076/1.139, allocations: 0.5787 MB / 1.151 GB, free: 18.05 MB / 0.8731 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.298e-05/1.139, allocations: 41.62 kB / 1.151 GB, free: 18.05 MB / 0.8731 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001121/1.139, allocations: 57.19 kB / 1.151 GB, free: 18.05 MB / 0.8731 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001218/1.141, allocations: 0.6402 MB / 1.152 GB, free: 17.96 MB / 0.8731 GB Notification: Performance of preOpt findStateOrder (simulation): time 2.099e-05/1.141, allocations: 0 / 1.152 GB, free: 17.96 MB / 0.8731 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.447e-05/1.141, allocations: 27.44 kB / 1.152 GB, free: 17.96 MB / 0.8731 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.863e-05/1.141, allocations: 18.88 kB / 1.152 GB, free: 17.96 MB / 0.8731 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001009/1.142, allocations: 0.5174 MB / 1.152 GB, free: 17.95 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.003504/1.145, allocations: 2.472 MB / 1.155 GB, free: 16.38 MB / 0.8731 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0006654/1.146, allocations: 359.2 kB / 1.155 GB, free: 16.24 MB / 0.8731 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003763/1.146, allocations: 241.9 kB / 1.155 GB, free: 16.15 MB / 0.8731 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0006216/1.147, allocations: 306.2 kB / 1.156 GB, free: 15.86 MB / 0.8731 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.114e-05/1.147, allocations: 37.58 kB / 1.156 GB, free: 15.82 MB / 0.8731 GB Notification: Performance of pre-optimization done (n=39): time 2.245e-06/1.147, allocations: 1.062 kB / 1.156 GB, free: 15.82 MB / 0.8731 GB Notification: Performance of matching and sorting (n=39): time 0.001466/1.148, allocations: 0.6204 MB / 1.156 GB, free: 15.58 MB / 0.8731 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.853e-05/1.149, allocations: 55.69 kB / 1.156 GB, free: 15.52 MB / 0.8731 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0007128/1.149, allocations: 0.4936 MB / 1.157 GB, free: 15.29 MB / 0.8731 GB Notification: Performance of collectPreVariables (initialization): time 4.765e-05/1.149, allocations: 32.98 kB / 1.157 GB, free: 15.26 MB / 0.8731 GB Notification: Performance of collectInitialEqns (initialization): time 0.0002352/1.15, allocations: 330.3 kB / 1.157 GB, free: 14.99 MB / 0.8731 GB Notification: Performance of collectInitialBindings (initialization): time 0.0001229/1.15, allocations: 137.2 kB / 1.157 GB, free: 14.89 MB / 0.8731 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001468/1.15, allocations: 88.06 kB / 1.157 GB, free: 14.84 MB / 0.8731 GB Notification: Performance of setup shared object (initialization): time 0.0001682/1.15, allocations: 369.7 kB / 1.158 GB, free: 14.5 MB / 0.8731 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003265/1.15, allocations: 176.3 kB / 1.158 GB, free: 14.44 MB / 0.8731 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004185/1.151, allocations: 285.6 kB / 1.158 GB, free: 14.25 MB / 0.8731 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.000701/1.151, allocations: 449.9 kB / 1.158 GB, free: 14.02 MB / 0.8731 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.917e-06/1.152, allocations: 5.094 kB / 1.159 GB, free: 14.01 MB / 0.8731 GB Notification: Performance of matching and sorting (n=53) (initialization): time 0.0009822/1.152, allocations: 0.516 MB / 1.159 GB, free: 13.8 MB / 0.8731 GB Notification: Performance of prepare postOptimizeDAE: time 2.951e-05/1.153, allocations: 6.125 kB / 1.159 GB, free: 13.8 MB / 0.8731 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.471e-05/1.153, allocations: 2.25 kB / 1.159 GB, free: 13.8 MB / 0.8731 GB Notification: Performance of postOpt tearingSystem (initialization): time 3.482e-05/1.153, allocations: 4.625 kB / 1.159 GB, free: 13.8 MB / 0.8731 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0007792/1.153, allocations: 137 kB / 1.159 GB, free: 13.79 MB / 0.8731 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0004403/1.154, allocations: 0.5953 MB / 1.16 GB, free: 13.19 MB / 0.8731 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0006363/1.154, allocations: 48.44 kB / 1.16 GB, free: 13.16 MB / 0.8731 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.561e-05/1.155, allocations: 25.09 kB / 1.16 GB, free: 13.16 MB / 0.8731 GB Notification: Performance of preBalanceInitialSystem (initialization_lambda0): time 0.0006566/1.155, allocations: 358 kB / 1.16 GB, free: 12.97 MB / 0.8731 GB Notification: Performance of partitionIndependentBlocks (initialization_lambda0): time 0.000408/1.156, allocations: 278.7 kB / 1.16 GB, free: 12.8 MB / 0.8731 GB Notification: Performance of analyzeInitialSystem (initialization_lambda0): time 0.0007977/1.156, allocations: 452.4 kB / 1.161 GB, free: 12.56 MB / 0.8731 GB Notification: Performance of solveInitialSystemEqSystem (initialization_lambda0): time 1.753e-06/1.156, allocations: 1.781 kB / 1.161 GB, free: 12.56 MB / 0.8731 GB Notification: Performance of matching and sorting (n=53) (initialization_lambda0): time 0.001036/1.157, allocations: 0.5282 MB / 1.161 GB, free: 12.33 MB / 0.8731 GB Notification: Performance of prepare postOptimizeDAE: time 1.618e-05/1.158, allocations: 5.531 kB / 1.161 GB, free: 12.33 MB / 0.8731 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.47e-06/1.158, allocations: 6.188 kB / 1.161 GB, free: 12.33 MB / 0.8731 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.858e-05/1.158, allocations: 9.25 kB / 1.161 GB, free: 12.32 MB / 0.8731 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004998/1.158, allocations: 114.8 kB / 1.161 GB, free: 12.32 MB / 0.8731 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.203e-06/1.158, allocations: 8.25 kB / 1.161 GB, free: 12.31 MB / 0.8731 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005933/1.159, allocations: 50 kB / 1.162 GB, free: 12.29 MB / 0.8731 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.195e-05/1.159, allocations: 17.78 kB / 1.162 GB, free: 12.28 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.0002292/1.159, allocations: 204.6 kB / 1.162 GB, free: 12.08 MB / 0.8731 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001135/1.159, allocations: 55.69 kB / 1.162 GB, free: 12.05 MB / 0.8731 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0009994/1.16, allocations: 486.5 kB / 1.162 GB, free: 11.85 MB / 0.8731 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.517e-06/1.16, allocations: 6.438 kB / 1.162 GB, free: 11.85 MB / 0.8731 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.567e-06/1.16, allocations: 4 kB / 1.162 GB, free: 11.84 MB / 0.8731 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.0008626/1.161, allocations: 0.7081 MB / 1.163 GB, free: 11.29 MB / 0.8731 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002234/1.163, allocations: 1.288 MB / 1.164 GB, free: 10.57 MB / 0.8731 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.082e-06/1.163, allocations: 5.266 kB / 1.164 GB, free: 10.57 MB / 0.8731 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0006366/1.164, allocations: 128 kB / 1.164 GB, free: 10.55 MB / 0.8731 GB Notification: Performance of postOpt tearingSystem (simulation): time 8.216e-06/1.164, allocations: 4.594 kB / 1.164 GB, free: 10.55 MB / 0.8731 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.754e-05/1.164, allocations: 15.12 kB / 1.164 GB, free: 10.55 MB / 0.8731 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0004053/1.164, allocations: 0.5917 MB / 1.165 GB, free: 9.953 MB / 0.8731 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.146e-06/1.164, allocations: 1.406 kB / 1.165 GB, free: 9.953 MB / 0.8731 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001223/1.166, allocations: 0.793 MB / 1.166 GB, free: 9.527 MB / 0.8731 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0003093/1.166, allocations: 178.7 kB / 1.166 GB, free: 9.379 MB / 0.8731 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 8.609e-05/1.166, allocations: 21.12 kB / 1.166 GB, free: 9.363 MB / 0.8731 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004106/1.166, allocations: 18.03 kB / 1.166 GB, free: 9.359 MB / 0.8731 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001005/1.167, allocations: 33.2 kB / 1.166 GB, free: 9.352 MB / 0.8731 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.709e-05/1.167, allocations: 15.31 kB / 1.166 GB, free: 9.348 MB / 0.8731 GB Notification: Performance of sorting global known variables: time 0.0004647/1.167, allocations: 354.4 kB / 1.166 GB, free: 9.188 MB / 0.8731 GB Notification: Performance of sort global known variables: time 2.41e-07/1.167, allocations: 0 / 1.166 GB, free: 9.188 MB / 0.8731 GB Notification: Performance of remove unused functions: time 0.001305/1.168, allocations: 360.2 kB / 1.167 GB, free: 9.121 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.0005344/1.169, allocations: 207.1 kB / 1.167 GB, free: 9 MB / 0.8731 GB Notification: Performance of simCode: created initialization part: time 0.001723/1.171, allocations: 0.7002 MB / 1.168 GB, free: 8.789 MB / 0.8731 GB Notification: Performance of simCode: created event and clocks part: time 5.581e-06/1.171, allocations: 6.062 kB / 1.168 GB, free: 8.785 MB / 0.8731 GB Notification: Performance of simCode: created simulation system equations: time 0.0003988/1.171, allocations: 223.8 kB / 1.168 GB, free: 8.715 MB / 0.8731 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001673/1.173, allocations: 374.9 kB / 1.168 GB, free: 8.59 MB / 0.8731 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002699/1.175, allocations: 1.45 MB / 1.17 GB, free: 7.719 MB / 0.8731 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0006302/1.176, allocations: 0.9499 MB / 1.17 GB, free: 6.988 MB / 0.8731 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001619/1.176, allocations: 52.72 kB / 1.171 GB, free: 6.98 MB / 0.8731 GB Notification: Performance of SimCode: time 3.31e-07/1.176, allocations: 4 kB / 1.171 GB, free: 6.977 MB / 0.8731 GB Notification: Performance of Templates: time 0.01946/1.196, allocations: 12.95 MB / 1.183 GB, free: 1.422 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