Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_10_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 10.1.0-maint.10.0.x/package.mo", uses=false) Using package Buildings with version 10.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 10.1.0-maint.10.0.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_10_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_10_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.0009672/0.0009671, allocations: 86.09 kB / 15.06 MB, free: 1.09 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.0009868/0.0009869, allocations: 168.7 kB / 15.95 MB, free: 204 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.357/1.357, allocations: 223.3 MB / 240 MB, free: 5.426 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 10.1.0-maint.10.0.x/package.mo): time 2.59/2.59, allocations: 437.7 MB / 0.7117 GB, free: 7.094 MB / 0.5606 GB Notification: Performance of FrontEnd - loaded program: time 0.0003519/0.000352, allocations: 11.94 kB / 0.8722 GB, free: 3.73 MB / 0.7169 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.6083/0.6086, allocations: 153.8 MB / 1.022 GB, free: 104 kB / 0.7637 GB Notification: Performance of NFInst.instantiate(Buildings.Fluid.Sensors.Examples.Density): time 0.172/0.7807, allocations: 168.3 MB / 1.187 GB, free: 7.316 MB / 0.9356 GB Notification: Performance of NFInst.instExpressions: time 0.008696/0.7895, allocations: 6.533 MB / 1.193 GB, free: 0.7695 MB / 0.9356 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0007733/0.7903, allocations: 19.88 kB / 1.193 GB, free: 0.75 MB / 0.9356 GB Notification: Performance of NFTyping.typeComponents: time 0.000898/0.7912, allocations: 274.2 kB / 1.193 GB, free: 492 kB / 0.9356 GB Notification: Performance of NFTyping.typeBindings: time 0.002732/0.7939, allocations: 1.065 MB / 1.194 GB, free: 15.41 MB / 0.9512 GB Notification: Performance of NFTyping.typeClassSections: time 0.002277/0.7962, allocations: 0.8251 MB / 1.195 GB, free: 14.59 MB / 0.9512 GB Notification: Performance of NFFlatten.flatten: time 0.002498/0.7987, allocations: 2.291 MB / 1.198 GB, free: 12.29 MB / 0.9512 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0008209/0.7996, allocations: 0.492 MB / 1.198 GB, free: 11.79 MB / 0.9512 GB Notification: Performance of NFEvalConstants.evaluate: time 0.001355/0.8009, allocations: 0.6924 MB / 1.199 GB, free: 11.09 MB / 0.9512 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0009046/0.8018, allocations: 0.5681 MB / 1.199 GB, free: 10.52 MB / 0.9512 GB Notification: Performance of NFPackage.collectConstants: time 9.583e-05/0.8019, allocations: 28 kB / 1.199 GB, free: 10.5 MB / 0.9512 GB Notification: Performance of NFFlatten.collectFunctions: time 0.002367/0.8043, allocations: 1.138 MB / 1.2 GB, free: 9.352 MB / 0.9512 GB Notification: Performance of NFScalarize.scalarize: time 0.0003149/0.8047, allocations: 251.2 kB / 1.201 GB, free: 9.105 MB / 0.9512 GB Notification: Performance of NFVerifyModel.verify: time 0.0002224/0.8049, allocations: 173.3 kB / 1.201 GB, free: 8.93 MB / 0.9512 GB Notification: Performance of NFConvertDAE.convert: time 0.001425/0.8063, allocations: 1.142 MB / 1.202 GB, free: 7.785 MB / 0.9512 GB Notification: Performance of FrontEnd - DAE generated: time 3.938e-06/0.8063, allocations: 0 / 1.202 GB, free: 7.785 MB / 0.9512 GB Notification: Performance of FrontEnd: time 1.263e-06/0.8063, allocations: 0 / 1.202 GB, free: 7.785 MB / 0.9512 GB Notification: Performance of Transformations before backend: time 2.121e-05/0.8064, allocations: 0 / 1.202 GB, free: 7.785 MB / 0.9512 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.001679/0.808, allocations: 1.03 MB / 1.203 GB, free: 6.703 MB / 0.9512 GB Notification: Performance of prepare preOptimizeDAE: time 3.432e-05/0.8081, allocations: 8.031 kB / 1.203 GB, free: 6.695 MB / 0.9512 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001875/0.81, allocations: 266.8 kB / 1.203 GB, free: 6.434 MB / 0.9512 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0009112/0.8109, allocations: 0.5679 MB / 1.204 GB, free: 5.824 MB / 0.9512 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.528e-05/0.8109, allocations: 45.31 kB / 1.204 GB, free: 5.781 MB / 0.9512 GB Notification: Performance of preOpt expandDerOperator (simulation): time 8.807e-05/0.811, allocations: 55.94 kB / 1.204 GB, free: 5.727 MB / 0.9512 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001078/0.8121, allocations: 0.64 MB / 1.204 GB, free: 5.07 MB / 0.9512 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.624e-05/0.8122, allocations: 0 / 1.204 GB, free: 5.07 MB / 0.9512 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.517e-05/0.8122, allocations: 23.98 kB / 1.204 GB, free: 5.047 MB / 0.9512 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.752e-05/0.8123, allocations: 17.31 kB / 1.204 GB, free: 5.027 MB / 0.9512 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0009493/0.8132, allocations: 0.5321 MB / 1.205 GB, free: 4.496 MB / 0.9512 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.002885/0.8161, allocations: 2.449 MB / 1.207 GB, free: 1.836 MB / 0.9512 GB Notification: Performance of preOpt comSubExp (simulation): time 0.000659/0.8168, allocations: 371.4 kB / 1.208 GB, free: 1.465 MB / 0.9512 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003809/0.8172, allocations: 239.2 kB / 1.208 GB, free: 1.23 MB / 0.9512 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0005421/0.8177, allocations: 327.5 kB / 1.208 GB, free: 0.8555 MB / 0.9512 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.398e-05/0.8178, allocations: 38.89 kB / 1.208 GB, free: 0.8086 MB / 0.9512 GB Notification: Performance of pre-optimization done (n=39): time 3.366e-06/0.8178, allocations: 0 / 1.208 GB, free: 0.8086 MB / 0.9512 GB Notification: Performance of matching and sorting (n=39): time 0.001329/0.8191, allocations: 0.631 MB / 1.209 GB, free: 176 kB / 0.9512 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.069e-05/0.8191, allocations: 59.41 kB / 1.209 GB, free: 104 kB / 0.9512 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0005534/0.8197, allocations: 0.4911 MB / 1.209 GB, free: 15.6 MB / 0.9669 GB Notification: Performance of collectPreVariables (initialization): time 3.864e-05/0.8198, allocations: 29.7 kB / 1.209 GB, free: 15.56 MB / 0.9669 GB Notification: Performance of collectInitialEqns (initialization): time 0.0002129/0.82, allocations: 324.5 kB / 1.21 GB, free: 15.24 MB / 0.9669 GB Notification: Performance of collectInitialBindings (initialization): time 0.0001204/0.8201, allocations: 145.9 kB / 1.21 GB, free: 15.1 MB / 0.9669 GB Notification: Performance of simplifyInitialFunctions (initialization): time 2.331e-05/0.8201, allocations: 4 kB / 1.21 GB, free: 15.09 MB / 0.9669 GB Notification: Performance of setup shared object (initialization): time 0.000129/0.8203, allocations: 366.8 kB / 1.21 GB, free: 14.73 MB / 0.9669 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003287/0.8206, allocations: 176.8 kB / 1.21 GB, free: 14.55 MB / 0.9669 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003916/0.821, allocations: 287 kB / 1.211 GB, free: 14.24 MB / 0.9669 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003707/0.8214, allocations: 215.8 kB / 1.211 GB, free: 14.03 MB / 0.9669 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.735e-06/0.8214, allocations: 0 / 1.211 GB, free: 14.03 MB / 0.9669 GB Notification: Performance of matching and sorting (n=53) (initialization): time 0.0008947/0.8223, allocations: 0.5435 MB / 1.211 GB, free: 13.48 MB / 0.9669 GB Notification: Performance of prepare postOptimizeDAE: time 8.409e-05/0.8224, allocations: 148.8 kB / 1.212 GB, free: 13.3 MB / 0.9669 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.275e-06/0.8224, allocations: 4 kB / 1.212 GB, free: 13.3 MB / 0.9669 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.626e-05/0.8224, allocations: 4 kB / 1.212 GB, free: 13.29 MB / 0.9669 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000693/0.8231, allocations: 143.9 kB / 1.212 GB, free: 13.15 MB / 0.9669 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0003345/0.8235, allocations: 0.5977 MB / 1.212 GB, free: 12.53 MB / 0.9669 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005606/0.824, allocations: 87.56 kB / 1.212 GB, free: 12.45 MB / 0.9669 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.038e-05/0.8241, allocations: 20 kB / 1.212 GB, free: 12.43 MB / 0.9669 GB Notification: Performance of prepare postOptimizeDAE: time 7.804e-06/0.8241, allocations: 5.875 kB / 1.212 GB, free: 12.42 MB / 0.9669 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.0008199/0.8249, allocations: 463.7 kB / 1.213 GB, free: 11.97 MB / 0.9669 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.32e-06/0.825, allocations: 4 kB / 1.213 GB, free: 11.96 MB / 0.9669 GB Notification: Performance of postOpt tearingSystem (initialization): time 8.445e-06/0.825, allocations: 7.984 kB / 1.213 GB, free: 11.96 MB / 0.9669 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000488/0.8255, allocations: 123.9 kB / 1.213 GB, free: 11.84 MB / 0.9669 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.844e-06/0.8255, allocations: 7.938 kB / 1.213 GB, free: 11.83 MB / 0.9669 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005144/0.826, allocations: 83.62 kB / 1.213 GB, free: 11.75 MB / 0.9669 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.524e-05/0.826, allocations: 16 kB / 1.213 GB, free: 11.73 MB / 0.9669 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.000286/0.8263, allocations: 309 kB / 1.213 GB, free: 11.42 MB / 0.9669 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 9.264e-05/0.8264, allocations: 59.25 kB / 1.213 GB, free: 11.36 MB / 0.9669 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0008753/0.8273, allocations: 0.4911 MB / 1.214 GB, free: 10.86 MB / 0.9669 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.21e-06/0.8273, allocations: 4 kB / 1.214 GB, free: 10.86 MB / 0.9669 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.529e-06/0.8273, allocations: 0 / 1.214 GB, free: 10.86 MB / 0.9669 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.0007504/0.8281, allocations: 0.7066 MB / 1.215 GB, free: 10.06 MB / 0.9669 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001863/0.83, allocations: 1.3 MB / 1.216 GB, free: 8.684 MB / 0.9669 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.708e-06/0.83, allocations: 4 kB / 1.216 GB, free: 8.68 MB / 0.9669 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0005965/0.8306, allocations: 140 kB / 1.216 GB, free: 8.543 MB / 0.9669 GB Notification: Performance of postOpt tearingSystem (simulation): time 6.262e-06/0.8306, allocations: 4 kB / 1.216 GB, free: 8.539 MB / 0.9669 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.178e-05/0.8307, allocations: 8 kB / 1.216 GB, free: 8.531 MB / 0.9669 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0002607/0.8309, allocations: 0.5899 MB / 1.217 GB, free: 7.918 MB / 0.9669 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.352e-06/0.8309, allocations: 11.95 kB / 1.217 GB, free: 7.906 MB / 0.9669 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001116/0.8321, allocations: 0.8179 MB / 1.217 GB, free: 7.051 MB / 0.9669 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0002173/0.8323, allocations: 184.3 kB / 1.218 GB, free: 6.852 MB / 0.9669 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 8.007e-05/0.8324, allocations: 12 kB / 1.218 GB, free: 6.84 MB / 0.9669 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004615/0.8328, allocations: 55.8 kB / 1.218 GB, free: 6.785 MB / 0.9669 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.679e-05/0.8329, allocations: 31.97 kB / 1.218 GB, free: 6.754 MB / 0.9669 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.157e-05/0.833, allocations: 16 kB / 1.218 GB, free: 6.738 MB / 0.9669 GB Notification: Performance of sorting global known variables: time 0.0003686/0.8333, allocations: 350.8 kB / 1.218 GB, free: 6.398 MB / 0.9669 GB Notification: Performance of sort global known variables: time 1.41e-07/0.8333, allocations: 0 / 1.218 GB, free: 6.398 MB / 0.9669 GB Notification: Performance of remove unused functions: time 0.0008871/0.8342, allocations: 355.2 kB / 1.218 GB, free: 6.051 MB / 0.9669 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.0004312/0.8347, allocations: 202.5 kB / 1.219 GB, free: 5.848 MB / 0.9669 GB Notification: Performance of simCode: created initialization part: time 0.001351/0.836, allocations: 0.6724 MB / 1.219 GB, free: 5.176 MB / 0.9669 GB Notification: Performance of simCode: created event and clocks part: time 2.865e-06/0.8361, allocations: 0 / 1.219 GB, free: 5.176 MB / 0.9669 GB Notification: Performance of simCode: created simulation system equations: time 0.0004191/0.8365, allocations: 233 kB / 1.219 GB, free: 4.949 MB / 0.9669 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001611/0.8381, allocations: 358.9 kB / 1.22 GB, free: 4.602 MB / 0.9669 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00226/0.8404, allocations: 1.732 MB / 1.222 GB, free: 2.82 MB / 0.9669 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004931/0.8409, allocations: 0.9573 MB / 1.222 GB, free: 1.836 MB / 0.9669 GB Notification: Performance of simCode: alias equations: time 0.000696/0.8416, allocations: 208.9 kB / 1.223 GB, free: 1.633 MB / 0.9669 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001358/0.8417, allocations: 51.44 kB / 1.223 GB, free: 1.582 MB / 0.9669 GB Notification: Performance of SimCode: time 2.3e-07/0.8417, allocations: 0 / 1.223 GB, free: 1.582 MB / 0.9669 GB Notification: Performance of Templates: time 0.01898/0.8607, allocations: 11.51 MB / 1.234 GB, free: 6.246 MB / 0.9825 GB make -j1 -f Buildings_10_Buildings.Fluid.Sensors.Examples.Density.makefile (rm -f Buildings_10_Buildings.Fluid.Sensors.Examples.Density.pipe ; mkfifo Buildings_10_Buildings.Fluid.Sensors.Examples.Density.pipe ; head -c 1048576 < Buildings_10_Buildings.Fluid.Sensors.Examples.Density.pipe >> ../files/Buildings_10_Buildings.Fluid.Sensors.Examples.Density.sim & ./Buildings_10_Buildings.Fluid.Sensors.Examples.Density -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Buildings_10_Buildings.Fluid.Sensors.Examples.Density.pipe 2>&1) diffSimulationResults("Buildings_10_Buildings.Fluid.Sensors.Examples.Density_res.mat","/mnt/ReferenceFiles/Buildings/csv/maint_10.0.x/Buildings_Fluid_Sensors_Examples_Density.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_10_Buildings.Fluid.Sensors.Examples.Density.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches