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.0008538/0.0008537, allocations: 90.52 kB / 15.36 MB, free: 0.7383 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.005491/0.005491, allocations: 171.1 kB / 16.26 MB, free: 6.613 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.412/1.412, allocations: 223.3 MB / 240.3 MB, free: 5.352 MB / 190.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.412/2.412, allocations: 390.9 MB / 0.6663 GB, free: 2.363 MB / 0.5137 GB Notification: Performance of FrontEnd - loaded program: time 0.0003412/0.0003412, allocations: 12 kB / 0.816 GB, free: 13.23 MB / 0.67 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.762/0.7623, allocations: 142.4 MB / 0.955 GB, free: 7.746 MB / 0.7169 GB Notification: Performance of NFInst.instantiate(Buildings.Fluid.Sensors.Examples.Density): time 0.2086/0.971, allocations: 180.4 MB / 1.131 GB, free: 10.32 MB / 0.8887 GB Notification: Performance of NFInst.instExpressions: time 0.01169/0.9827, allocations: 6.969 MB / 1.138 GB, free: 3.34 MB / 0.8887 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.001361/0.9841, allocations: 23.81 kB / 1.138 GB, free: 3.316 MB / 0.8887 GB Notification: Performance of NFTyping.typeComponents: time 0.00131/0.9854, allocations: 338.2 kB / 1.138 GB, free: 2.984 MB / 0.8887 GB Notification: Performance of NFTyping.typeBindings: time 0.004071/0.9895, allocations: 1.358 MB / 1.14 GB, free: 1.621 MB / 0.8887 GB Notification: Performance of NFTyping.typeClassSections: time 0.003357/0.9929, allocations: 1.057 MB / 1.141 GB, free: 0.5664 MB / 0.8887 GB Notification: Performance of NFFlatten.flatten: time 0.003775/0.9967, allocations: 2.713 MB / 1.143 GB, free: 13.84 MB / 0.9044 GB Notification: Performance of NFFlatten.resolveConnections: time 0.001147/0.9979, allocations: 0.5434 MB / 1.144 GB, free: 13.29 MB / 0.9044 GB Notification: Performance of NFEvalConstants.evaluate: time 0.001788/0.9997, allocations: 0.7119 MB / 1.145 GB, free: 12.57 MB / 0.9044 GB Notification: Performance of NFSimplifyModel.simplify: time 0.001631/1.001, allocations: 0.5928 MB / 1.145 GB, free: 11.98 MB / 0.9044 GB Notification: Performance of NFPackage.collectConstants: time 0.000145/1.001, allocations: 35.94 kB / 1.145 GB, free: 11.94 MB / 0.9044 GB Notification: Performance of NFFlatten.collectFunctions: time 0.004202/1.006, allocations: 2.186 MB / 1.147 GB, free: 9.75 MB / 0.9044 GB Notification: Performance of NFScalarize.scalarize: time 0.0004287/1.006, allocations: 247.3 kB / 1.148 GB, free: 9.508 MB / 0.9044 GB Notification: Performance of NFVerifyModel.verify: time 0.0006165/1.007, allocations: 407.7 kB / 1.148 GB, free: 9.102 MB / 0.9044 GB Notification: Performance of NFConvertDAE.convert: time 0.003752/1.011, allocations: 1.819 MB / 1.15 GB, free: 7.277 MB / 0.9044 GB Notification: Performance of FrontEnd - DAE generated: time 5.3e-06/1.011, allocations: 0 / 1.15 GB, free: 7.277 MB / 0.9044 GB Notification: Performance of FrontEnd: time 1.863e-06/1.011, allocations: 0 / 1.15 GB, free: 7.277 MB / 0.9044 GB Notification: Performance of Transformations before backend: time 1.023e-05/1.011, allocations: 4 kB / 1.15 GB, free: 7.273 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.0019/1.012, allocations: 1.013 MB / 1.151 GB, free: 6.211 MB / 0.9044 GB Notification: Performance of prepare preOptimizeDAE: time 4.551e-05/1.013, allocations: 12.03 kB / 1.151 GB, free: 6.199 MB / 0.9044 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001938/1.014, allocations: 270.8 kB / 1.151 GB, free: 5.934 MB / 0.9044 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001078/1.016, allocations: 0.5792 MB / 1.152 GB, free: 5.312 MB / 0.9044 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.529e-05/1.016, allocations: 45.31 kB / 1.152 GB, free: 5.27 MB / 0.9044 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001021/1.016, allocations: 55.91 kB / 1.152 GB, free: 5.215 MB / 0.9044 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001179/1.017, allocations: 0.6478 MB / 1.152 GB, free: 4.551 MB / 0.9044 GB Notification: Performance of preOpt findStateOrder (simulation): time 2.053e-05/1.017, allocations: 0 / 1.152 GB, free: 4.551 MB / 0.9044 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.749e-05/1.017, allocations: 20 kB / 1.152 GB, free: 4.531 MB / 0.9044 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.691e-05/1.017, allocations: 25.31 kB / 1.152 GB, free: 4.508 MB / 0.9044 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0009898/1.018, allocations: 0.5282 MB / 1.153 GB, free: 3.977 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.00326/1.021, allocations: 2.461 MB / 1.155 GB, free: 1.297 MB / 0.9044 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0007479/1.022, allocations: 363.5 kB / 1.156 GB, free: 0.9336 MB / 0.9044 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004083/1.023, allocations: 241.4 kB / 1.156 GB, free: 0.6953 MB / 0.9044 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0006401/1.023, allocations: 315.6 kB / 1.156 GB, free: 340 kB / 0.9044 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.232e-05/1.023, allocations: 38.89 kB / 1.156 GB, free: 292 kB / 0.9044 GB Notification: Performance of pre-optimization done (n=39): time 1.974e-06/1.023, allocations: 3.938 kB / 1.156 GB, free: 288 kB / 0.9044 GB Notification: Performance of matching and sorting (n=39): time 0.00145/1.025, allocations: 0.6302 MB / 1.157 GB, free: 15.64 MB / 0.92 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.245e-05/1.025, allocations: 55.41 kB / 1.157 GB, free: 15.57 MB / 0.92 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0006097/1.025, allocations: 0.5027 MB / 1.157 GB, free: 15.06 MB / 0.92 GB Notification: Performance of collectPreVariables (initialization): time 4.748e-05/1.025, allocations: 37.7 kB / 1.157 GB, free: 15.02 MB / 0.92 GB Notification: Performance of collectInitialEqns (initialization): time 0.0002714/1.026, allocations: 320.5 kB / 1.158 GB, free: 14.7 MB / 0.92 GB Notification: Performance of collectInitialBindings (initialization): time 0.0001339/1.026, allocations: 137.9 kB / 1.158 GB, free: 14.57 MB / 0.92 GB Notification: Performance of simplifyInitialFunctions (initialization): time 6.576e-05/1.026, allocations: 41.7 kB / 1.158 GB, free: 14.52 MB / 0.92 GB Notification: Performance of setup shared object (initialization): time 0.0001817/1.026, allocations: 370.8 kB / 1.158 GB, free: 14.15 MB / 0.92 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004366/1.027, allocations: 176.7 kB / 1.158 GB, free: 13.98 MB / 0.92 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0006089/1.027, allocations: 287.3 kB / 1.159 GB, free: 13.66 MB / 0.92 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.001133/1.028, allocations: 468.2 kB / 1.159 GB, free: 13.17 MB / 0.92 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.49e-06/1.028, allocations: 0 / 1.159 GB, free: 13.17 MB / 0.92 GB Notification: Performance of matching and sorting (n=53) (initialization): time 0.001509/1.03, allocations: 0.532 MB / 1.16 GB, free: 12.63 MB / 0.92 GB Notification: Performance of prepare postOptimizeDAE: time 0.0001422/1.03, allocations: 160.7 kB / 1.16 GB, free: 12.44 MB / 0.92 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.086e-05/1.03, allocations: 4 kB / 1.16 GB, free: 12.44 MB / 0.92 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.958e-05/1.03, allocations: 7.938 kB / 1.16 GB, free: 12.43 MB / 0.92 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001061/1.031, allocations: 143.8 kB / 1.16 GB, free: 12.29 MB / 0.92 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0005498/1.032, allocations: 0.5899 MB / 1.16 GB, free: 11.68 MB / 0.92 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001031/1.033, allocations: 91.5 kB / 1.161 GB, free: 11.59 MB / 0.92 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.057e-05/1.033, allocations: 16 kB / 1.161 GB, free: 11.57 MB / 0.92 GB Notification: Performance of prepare postOptimizeDAE: time 1.578e-05/1.033, allocations: 8 kB / 1.161 GB, free: 11.56 MB / 0.92 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.001299/1.034, allocations: 464.1 kB / 1.161 GB, free: 11.11 MB / 0.92 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.276e-06/1.034, allocations: 4 kB / 1.161 GB, free: 11.11 MB / 0.92 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.194e-05/1.034, allocations: 7.938 kB / 1.161 GB, free: 11.1 MB / 0.92 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0008044/1.035, allocations: 127.8 kB / 1.161 GB, free: 10.97 MB / 0.92 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.112e-05/1.035, allocations: 4 kB / 1.161 GB, free: 10.97 MB / 0.92 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001015/1.036, allocations: 79.67 kB / 1.161 GB, free: 10.89 MB / 0.92 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.22e-05/1.036, allocations: 23.98 kB / 1.161 GB, free: 10.87 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.0006197/1.037, allocations: 308.9 kB / 1.162 GB, free: 10.55 MB / 0.92 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001357/1.037, allocations: 59.25 kB / 1.162 GB, free: 10.5 MB / 0.92 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0009542/1.038, allocations: 0.4883 MB / 1.162 GB, free: 10 MB / 0.92 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.917e-06/1.038, allocations: 4 kB / 1.162 GB, free: 9.996 MB / 0.92 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.978e-06/1.038, allocations: 3.984 kB / 1.162 GB, free: 9.992 MB / 0.92 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.000835/1.039, allocations: 0.7186 MB / 1.163 GB, free: 9.188 MB / 0.92 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002025/1.041, allocations: 1.297 MB / 1.164 GB, free: 7.812 MB / 0.92 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.749e-06/1.041, allocations: 0 / 1.164 GB, free: 7.812 MB / 0.92 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0006457/1.042, allocations: 140 kB / 1.164 GB, free: 7.676 MB / 0.92 GB Notification: Performance of postOpt tearingSystem (simulation): time 8.165e-06/1.042, allocations: 4 kB / 1.164 GB, free: 7.672 MB / 0.92 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.436e-05/1.042, allocations: 12 kB / 1.164 GB, free: 7.66 MB / 0.92 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0003246/1.042, allocations: 0.5937 MB / 1.165 GB, free: 7.043 MB / 0.92 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.297e-06/1.042, allocations: 0 / 1.165 GB, free: 7.043 MB / 0.92 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001191/1.043, allocations: 0.8173 MB / 1.166 GB, free: 6.188 MB / 0.92 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0002861/1.043, allocations: 176.4 kB / 1.166 GB, free: 5.996 MB / 0.92 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 7.858e-05/1.044, allocations: 11.98 kB / 1.166 GB, free: 5.984 MB / 0.92 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0005141/1.044, allocations: 55.84 kB / 1.166 GB, free: 5.93 MB / 0.92 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.297e-05/1.044, allocations: 35.89 kB / 1.166 GB, free: 5.895 MB / 0.92 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.949e-05/1.044, allocations: 12 kB / 1.166 GB, free: 5.883 MB / 0.92 GB Notification: Performance of sorting global known variables: time 0.0004232/1.045, allocations: 354.8 kB / 1.166 GB, free: 5.539 MB / 0.92 GB Notification: Performance of sort global known variables: time 3.91e-07/1.045, allocations: 0 / 1.166 GB, free: 5.539 MB / 0.92 GB Notification: Performance of remove unused functions: time 0.001051/1.046, allocations: 363.1 kB / 1.167 GB, free: 5.184 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.00051/1.046, allocations: 209 kB / 1.167 GB, free: 4.98 MB / 0.92 GB Notification: Performance of simCode: created initialization part: time 0.001535/1.048, allocations: 0.6805 MB / 1.167 GB, free: 4.301 MB / 0.92 GB Notification: Performance of simCode: created event and clocks part: time 5.741e-06/1.048, allocations: 4 kB / 1.167 GB, free: 4.297 MB / 0.92 GB Notification: Performance of simCode: created simulation system equations: time 0.0004228/1.048, allocations: 220.8 kB / 1.168 GB, free: 4.082 MB / 0.92 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002003/1.05, allocations: 365 kB / 1.168 GB, free: 3.734 MB / 0.92 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002668/1.053, allocations: 1.738 MB / 1.17 GB, free: 1.945 MB / 0.92 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005503/1.053, allocations: 0.9496 MB / 1.171 GB, free: 0.9688 MB / 0.92 GB Notification: Performance of simCode: alias equations: time 0.000756/1.054, allocations: 209 kB / 1.171 GB, free: 0.7656 MB / 0.92 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001413/1.054, allocations: 51.44 kB / 1.171 GB, free: 0.7148 MB / 0.92 GB Notification: Performance of SimCode: time 7.62e-07/1.054, allocations: 0 / 1.171 GB, free: 0.7148 MB / 0.92 GB Notification: Performance of Templates: time 0.02144/1.076, allocations: 11.88 MB / 1.182 GB, free: 5.016 MB / 0.9356 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/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_9_Buildings.Fluid.Sensors.Examples.Density.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches