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: "" <> buildModelFMU(Buildings.Fluid.Sensors.Examples.Density,fileNamePrefix="Buildings_9_Buildings_Fluid_Sensors_Examples_Density",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Fluid.Sensors.Examples.Density,fileNamePrefix="Buildings_9_Buildings_Fluid_Sensors_Examples_Density",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0008665/0.0008663, allocations: 98.27 kB / 15.36 MB, free: 0.7344 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.005326/0.005326, allocations: 171.2 kB / 16.27 MB, free: 6.652 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.212/1.212, allocations: 223.3 MB / 240.3 MB, free: 5.355 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.147/2.147, allocations: 390.9 MB / 0.6664 GB, free: 2.363 MB / 0.5137 GB Notification: Performance of FrontEnd - loaded program: time 0.0003785/0.0003782, allocations: 12 kB / 0.8161 GB, free: 13.14 MB / 0.67 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.6469/0.6473, allocations: 142.4 MB / 0.9552 GB, free: 7.613 MB / 0.7169 GB Notification: Performance of NFInst.instantiate(Buildings.Fluid.Sensors.Examples.Density): time 0.17/0.8173, allocations: 180.4 MB / 1.131 GB, free: 10.27 MB / 0.8887 GB Notification: Performance of NFInst.instExpressions: time 0.009165/0.8265, allocations: 6.955 MB / 1.138 GB, free: 3.293 MB / 0.8887 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.000946/0.8275, allocations: 27.81 kB / 1.138 GB, free: 3.266 MB / 0.8887 GB Notification: Performance of NFTyping.typeComponents: time 0.00107/0.8285, allocations: 338.2 kB / 1.138 GB, free: 2.934 MB / 0.8887 GB Notification: Performance of NFTyping.typeBindings: time 0.003318/0.8319, allocations: 1.373 MB / 1.14 GB, free: 1.555 MB / 0.8887 GB Notification: Performance of NFTyping.typeClassSections: time 0.002632/0.8345, allocations: 1.049 MB / 1.141 GB, free: 0.5078 MB / 0.8887 GB Notification: Performance of NFFlatten.flatten: time 0.002832/0.8374, allocations: 2.713 MB / 1.144 GB, free: 13.79 MB / 0.9044 GB Notification: Performance of NFFlatten.resolveConnections: time 0.00089/0.8383, allocations: 0.5473 MB / 1.144 GB, free: 13.22 MB / 0.9044 GB Notification: Performance of NFEvalConstants.evaluate: time 0.001485/0.8398, allocations: 0.7001 MB / 1.145 GB, free: 12.52 MB / 0.9044 GB Notification: Performance of NFSimplifyModel.simplify: time 0.001383/0.8412, allocations: 0.5975 MB / 1.145 GB, free: 11.92 MB / 0.9044 GB Notification: Performance of NFPackage.collectConstants: time 0.0001296/0.8413, allocations: 36 kB / 1.145 GB, free: 11.89 MB / 0.9044 GB Notification: Performance of NFFlatten.collectFunctions: time 0.003358/0.8447, allocations: 2.186 MB / 1.147 GB, free: 9.695 MB / 0.9044 GB Notification: Performance of NFScalarize.scalarize: time 0.0003354/0.845, allocations: 251.1 kB / 1.148 GB, free: 9.449 MB / 0.9044 GB Notification: Performance of NFVerifyModel.verify: time 0.0005743/0.8456, allocations: 403.8 kB / 1.148 GB, free: 9.047 MB / 0.9044 GB Notification: Performance of NFConvertDAE.convert: time 0.002683/0.8483, allocations: 1.819 MB / 1.15 GB, free: 7.223 MB / 0.9044 GB Notification: Performance of FrontEnd - DAE generated: time 3.206e-06/0.8483, allocations: 0 / 1.15 GB, free: 7.223 MB / 0.9044 GB Notification: Performance of FrontEnd: time 1.573e-06/0.8483, allocations: 0 / 1.15 GB, free: 7.223 MB / 0.9044 GB Notification: Performance of Transformations before backend: time 3.418e-05/0.8484, allocations: 0 / 1.15 GB, free: 7.223 MB / 0.9044 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.001771/0.8501, allocations: 1.017 MB / 1.151 GB, free: 6.156 MB / 0.9044 GB Notification: Performance of prepare preOptimizeDAE: time 3.841e-05/0.8502, allocations: 8.031 kB / 1.151 GB, free: 6.148 MB / 0.9044 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001547/0.8503, allocations: 94.52 kB / 1.151 GB, free: 6.047 MB / 0.9044 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001905/0.8523, allocations: 274.8 kB / 1.151 GB, free: 5.777 MB / 0.9044 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000933/0.8532, allocations: 0.5869 MB / 1.152 GB, free: 5.148 MB / 0.9044 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.298e-05/0.8532, allocations: 37.31 kB / 1.152 GB, free: 5.113 MB / 0.9044 GB Notification: Performance of preOpt expandDerOperator (simulation): time 9.781e-05/0.8533, allocations: 71.92 kB / 1.152 GB, free: 5.043 MB / 0.9044 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.00106/0.8544, allocations: 0.6362 MB / 1.153 GB, free: 4.391 MB / 0.9044 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.686e-05/0.8544, allocations: 0 / 1.153 GB, free: 4.391 MB / 0.9044 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.356e-05/0.8545, allocations: 27.98 kB / 1.153 GB, free: 4.363 MB / 0.9044 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.602e-05/0.8545, allocations: 17.31 kB / 1.153 GB, free: 4.348 MB / 0.9044 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0009351/0.8555, allocations: 0.5321 MB / 1.153 GB, free: 3.812 MB / 0.9044 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.002877/0.8584, allocations: 2.457 MB / 1.155 GB, free: 1.137 MB / 0.9044 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0006169/0.859, allocations: 363.5 kB / 1.156 GB, free: 0.7734 MB / 0.9044 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003736/0.8594, allocations: 249.4 kB / 1.156 GB, free: 0.5273 MB / 0.9044 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0005374/0.8599, allocations: 315.6 kB / 1.156 GB, free: 168 kB / 0.9044 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.648e-05/0.86, allocations: 38.89 kB / 1.156 GB, free: 120 kB / 0.9044 GB Notification: Performance of pre-optimization done (n=39): time 1.563e-06/0.86, allocations: 4 kB / 1.156 GB, free: 116 kB / 0.9044 GB Notification: Performance of matching and sorting (n=39): time 0.001324/0.8613, allocations: 0.6302 MB / 1.157 GB, free: 15.47 MB / 0.92 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.924e-05/0.8613, allocations: 59.34 kB / 1.157 GB, free: 15.4 MB / 0.92 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0005326/0.8619, allocations: 0.4989 MB / 1.158 GB, free: 14.89 MB / 0.92 GB Notification: Performance of collectPreVariables (initialization): time 4.398e-05/0.8619, allocations: 37.69 kB / 1.158 GB, free: 14.85 MB / 0.92 GB Notification: Performance of collectInitialEqns (initialization): time 0.0002107/0.8622, allocations: 324.5 kB / 1.158 GB, free: 14.53 MB / 0.92 GB Notification: Performance of collectInitialBindings (initialization): time 0.0001178/0.8623, allocations: 141.9 kB / 1.158 GB, free: 14.39 MB / 0.92 GB Notification: Performance of simplifyInitialFunctions (initialization): time 5.838e-05/0.8624, allocations: 37.7 kB / 1.158 GB, free: 14.35 MB / 0.92 GB Notification: Performance of setup shared object (initialization): time 0.0001294/0.8625, allocations: 366.8 kB / 1.158 GB, free: 13.98 MB / 0.92 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003275/0.8628, allocations: 176.8 kB / 1.159 GB, free: 13.81 MB / 0.92 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003902/0.8632, allocations: 291.4 kB / 1.159 GB, free: 13.49 MB / 0.92 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.00069/0.8639, allocations: 460.2 kB / 1.159 GB, free: 13.01 MB / 0.92 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.657e-06/0.8639, allocations: 8 kB / 1.159 GB, free: 13 MB / 0.92 GB Notification: Performance of matching and sorting (n=53) (initialization): time 0.0008986/0.8648, allocations: 0.5358 MB / 1.16 GB, free: 12.46 MB / 0.92 GB Notification: Performance of prepare postOptimizeDAE: time 8.601e-05/0.8649, allocations: 156.7 kB / 1.16 GB, free: 12.27 MB / 0.92 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.424e-06/0.8649, allocations: 3.938 kB / 1.16 GB, free: 12.27 MB / 0.92 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.573e-05/0.865, allocations: 4 kB / 1.16 GB, free: 12.26 MB / 0.92 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000682/0.8657, allocations: 147.8 kB / 1.16 GB, free: 12.12 MB / 0.92 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0003321/0.866, allocations: 0.5822 MB / 1.161 GB, free: 11.51 MB / 0.92 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0006302/0.8666, allocations: 87.58 kB / 1.161 GB, free: 11.43 MB / 0.92 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.267e-05/0.8667, allocations: 19.98 kB / 1.161 GB, free: 11.41 MB / 0.92 GB Notification: Performance of prepare postOptimizeDAE: time 7.935e-06/0.8667, allocations: 4 kB / 1.161 GB, free: 11.4 MB / 0.92 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.0007645/0.8675, allocations: 467.8 kB / 1.161 GB, free: 10.95 MB / 0.92 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.692e-06/0.8675, allocations: 4.281 kB / 1.161 GB, free: 10.94 MB / 0.92 GB Notification: Performance of postOpt tearingSystem (initialization): time 7.414e-06/0.8675, allocations: 11.94 kB / 1.161 GB, free: 10.93 MB / 0.92 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004836/0.868, allocations: 123.9 kB / 1.161 GB, free: 10.81 MB / 0.92 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.686e-06/0.868, allocations: 7.938 kB / 1.161 GB, free: 10.8 MB / 0.92 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005838/0.8686, allocations: 79.58 kB / 1.161 GB, free: 10.72 MB / 0.92 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.762e-05/0.8687, allocations: 27.98 kB / 1.162 GB, free: 10.7 MB / 0.92 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.0003091/0.869, allocations: 301 kB / 1.162 GB, free: 10.39 MB / 0.92 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001057/0.8691, allocations: 59.25 kB / 1.162 GB, free: 10.33 MB / 0.92 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0008819/0.87, allocations: 0.4921 MB / 1.162 GB, free: 9.832 MB / 0.92 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.981e-06/0.87, allocations: 4 kB / 1.162 GB, free: 9.828 MB / 0.92 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.69e-06/0.87, allocations: 0 / 1.162 GB, free: 9.828 MB / 0.92 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.0007798/0.8708, allocations: 0.7186 MB / 1.163 GB, free: 9.023 MB / 0.92 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001859/0.8727, allocations: 1.301 MB / 1.164 GB, free: 7.645 MB / 0.92 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.717e-06/0.8727, allocations: 0 / 1.164 GB, free: 7.645 MB / 0.92 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0006015/0.8733, allocations: 136.1 kB / 1.164 GB, free: 7.512 MB / 0.92 GB Notification: Performance of postOpt tearingSystem (simulation): time 8.486e-06/0.8733, allocations: 4 kB / 1.164 GB, free: 7.508 MB / 0.92 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.401e-05/0.8733, allocations: 15.92 kB / 1.164 GB, free: 7.492 MB / 0.92 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0002617/0.8736, allocations: 0.5975 MB / 1.165 GB, free: 6.871 MB / 0.92 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.967e-06/0.8736, allocations: 4.031 kB / 1.165 GB, free: 6.867 MB / 0.92 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001113/0.8747, allocations: 0.8095 MB / 1.166 GB, free: 6.02 MB / 0.92 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0002326/0.875, allocations: 176.4 kB / 1.166 GB, free: 5.828 MB / 0.92 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 7.707e-05/0.8751, allocations: 15.92 kB / 1.166 GB, free: 5.812 MB / 0.92 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004882/0.8756, allocations: 51.81 kB / 1.166 GB, free: 5.762 MB / 0.92 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.328e-05/0.8756, allocations: 31.95 kB / 1.166 GB, free: 5.73 MB / 0.92 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.512e-05/0.8757, allocations: 12 kB / 1.166 GB, free: 5.719 MB / 0.92 GB Notification: Performance of sorting global known variables: time 0.0003627/0.876, allocations: 354.8 kB / 1.166 GB, free: 5.375 MB / 0.92 GB Notification: Performance of sort global known variables: time 1.1e-07/0.8761, allocations: 0 / 1.166 GB, free: 5.375 MB / 0.92 GB Notification: Performance of remove unused functions: time 0.0008973/0.877, allocations: 363.2 kB / 1.167 GB, free: 5.02 MB / 0.92 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.00172/0.8787, allocations: 1.473 MB / 1.168 GB, free: 3.508 MB / 0.92 GB Notification: Performance of simCode: created initialization part: time 0.001366/0.8801, allocations: 0.6886 MB / 1.169 GB, free: 2.82 MB / 0.92 GB Notification: Performance of simCode: created event and clocks part: time 4.238e-06/0.8801, allocations: 0 / 1.169 GB, free: 2.82 MB / 0.92 GB Notification: Performance of simCode: created simulation system equations: time 0.0004036/0.8805, allocations: 223.7 kB / 1.169 GB, free: 2.602 MB / 0.92 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001878/0.8824, allocations: 361.8 kB / 1.169 GB, free: 2.254 MB / 0.92 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.006953/0.8893, allocations: 5.479 MB / 1.175 GB, free: 12.59 MB / 0.9356 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004872/0.8898, allocations: 0.9494 MB / 1.176 GB, free: 11.61 MB / 0.9356 GB Notification: Performance of simCode: alias equations: time 0.0006854/0.8905, allocations: 212.9 kB / 1.176 GB, free: 11.4 MB / 0.9356 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002972/0.8908, allocations: 223.4 kB / 1.176 GB, free: 11.18 MB / 0.9356 GB Notification: Performance of SimCode: time 4.21e-07/0.8908, allocations: 0 / 1.176 GB, free: 11.18 MB / 0.9356 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 5.126/6.016, allocations: 16.94 MB / 1.193 GB, free: 10.57 MB / 0.9512 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002556/6.017, allocations: 261.7 kB / 1.193 GB, free: 10.27 MB / 0.9512 GB Notification: Performance of buildModelFMU: Generate platform static: time 2.269/8.285, allocations: 0 / 1.193 GB, free: 10.27 MB / 0.9512 GB (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 & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Buildings_9_Buildings.Fluid.Sensors.Examples.Density_res.mat --tempDir=temp_Buildings_9_Buildings_Fluid_Sensors_Examples_Density_fmu --startTime=0 --stopTime=60 --timeout=50 --tolerance=1e-06 Buildings_9_Buildings_Fluid_Sensors_Examples_Density.fmu > 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