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.001399/0.001405, allocations: 110.7 kB / 16.41 MB, free: 6.496 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.001453/0.001453, allocations: 183 kB / 17.34 MB, free: 5.766 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.341/1.341, allocations: 222.9 MB / 241 MB, free: 15.15 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.271/2.271, allocations: 390.3 MB / 0.6655 GB, free: 0.6211 MB / 0.5294 GB Notification: Performance of FrontEnd - loaded program: time 0.001513/0.001513, allocations: 71.83 kB / 0.9515 GB, free: 7.633 MB / 0.7325 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.8623/0.8639, allocations: 140.4 MB / 1.089 GB, free: 5.512 MB / 0.8575 GB Notification: Performance of NFInst.instantiate(Buildings.Fluid.Sensors.Examples.Density): time 0.2448/1.109, allocations: 185 MB / 1.269 GB, free: 4.609 MB / 0.9981 GB Notification: Performance of NFInst.instExpressions: time 0.01163/1.12, allocations: 6.979 MB / 1.276 GB, free: 13.61 MB / 1.014 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.001303/1.122, allocations: 31.81 kB / 1.276 GB, free: 13.58 MB / 1.014 GB Notification: Performance of NFTyping.typeComponents: time 0.001411/1.123, allocations: 397.5 kB / 1.277 GB, free: 13.19 MB / 1.014 GB Notification: Performance of NFTyping.typeBindings: time 0.004135/1.127, allocations: 1.454 MB / 1.278 GB, free: 11.73 MB / 1.014 GB Notification: Performance of NFTyping.typeClassSections: time 0.003661/1.131, allocations: 1.153 MB / 1.279 GB, free: 10.58 MB / 1.014 GB Notification: Performance of NFFlatten.flatten: time 0.00273/1.134, allocations: 1.941 MB / 1.281 GB, free: 8.633 MB / 1.014 GB Notification: Performance of NFFlatten.resolveConnections: time 0.001128/1.135, allocations: 0.6667 MB / 1.282 GB, free: 7.957 MB / 1.014 GB Notification: Performance of NFEvalConstants.evaluate: time 0.001877/1.137, allocations: 0.8289 MB / 1.282 GB, free: 7.125 MB / 1.014 GB Notification: Performance of NFSimplifyModel.simplify: time 0.001593/1.138, allocations: 0.6081 MB / 1.283 GB, free: 6.52 MB / 1.014 GB Notification: Performance of NFPackage.collectConstants: time 0.0002254/1.139, allocations: 68 kB / 1.283 GB, free: 6.453 MB / 1.014 GB Notification: Performance of NFFlatten.collectFunctions: time 0.004108/1.143, allocations: 1.933 MB / 1.285 GB, free: 4.516 MB / 1.014 GB Notification: Performance of NFScalarize.scalarize: time 0.0004426/1.143, allocations: 287.2 kB / 1.285 GB, free: 4.234 MB / 1.014 GB Notification: Performance of NFVerifyModel.verify: time 0.0008178/1.144, allocations: 430 kB / 1.286 GB, free: 3.812 MB / 1.014 GB Notification: Performance of NFConvertDAE.convert: time 0.004083/1.148, allocations: 1.761 MB / 1.287 GB, free: 2.047 MB / 1.014 GB Notification: Performance of FrontEnd - DAE generated: time 6.622e-06/1.148, allocations: 0 / 1.287 GB, free: 2.047 MB / 1.014 GB Notification: Performance of FrontEnd: time 1.903e-06/1.148, allocations: 3.938 kB / 1.287 GB, free: 2.043 MB / 1.014 GB Notification: Performance of Transformations before backend: time 4.096e-05/1.148, allocations: 0 / 1.287 GB, free: 2.043 MB / 1.014 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.00246/1.151, allocations: 1.161 MB / 1.289 GB, free: 0.832 MB / 1.014 GB Notification: Performance of prepare preOptimizeDAE: time 3.851e-05/1.151, allocations: 8.031 kB / 1.289 GB, free: 0.8242 MB / 1.014 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001992/1.153, allocations: 278.7 kB / 1.289 GB, free: 0.5508 MB / 1.014 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001098/1.154, allocations: 0.6027 MB / 1.289 GB, free: 15.9 MB / 1.029 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.024e-05/1.154, allocations: 37.31 kB / 1.289 GB, free: 15.87 MB / 1.029 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001103/1.154, allocations: 56 kB / 1.29 GB, free: 15.81 MB / 1.029 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001228/1.155, allocations: 0.64 MB / 1.29 GB, free: 15.16 MB / 1.029 GB Notification: Performance of preOpt findStateOrder (simulation): time 2.305e-05/1.155, allocations: 3.938 kB / 1.29 GB, free: 15.15 MB / 1.029 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.477e-05/1.155, allocations: 24 kB / 1.29 GB, free: 15.13 MB / 1.029 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.585e-05/1.155, allocations: 21.31 kB / 1.29 GB, free: 15.11 MB / 1.029 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0009735/1.156, allocations: 0.5243 MB / 1.291 GB, free: 14.59 MB / 1.029 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.003374/1.16, allocations: 2.453 MB / 1.293 GB, free: 11.92 MB / 1.029 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0006595/1.16, allocations: 355.5 kB / 1.293 GB, free: 11.56 MB / 1.029 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003702/1.161, allocations: 237.4 kB / 1.294 GB, free: 11.33 MB / 1.029 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0005563/1.161, allocations: 303.6 kB / 1.294 GB, free: 10.98 MB / 1.029 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.247e-05/1.161, allocations: 42.83 kB / 1.294 GB, free: 10.93 MB / 1.029 GB Notification: Performance of pre-optimization done (n=39): time 2.264e-06/1.161, allocations: 0 / 1.294 GB, free: 10.93 MB / 1.029 GB Notification: Performance of matching and sorting (n=39): time 0.001468/1.163, allocations: 0.6186 MB / 1.295 GB, free: 10.3 MB / 1.029 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.405e-05/1.163, allocations: 55.41 kB / 1.295 GB, free: 10.23 MB / 1.029 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0005818/1.164, allocations: 0.4989 MB / 1.295 GB, free: 9.727 MB / 1.029 GB Notification: Performance of collectPreVariables (initialization): time 4.883e-05/1.164, allocations: 33.7 kB / 1.295 GB, free: 9.688 MB / 1.029 GB Notification: Performance of collectInitialEqns (initialization): time 0.0002929/1.164, allocations: 328.4 kB / 1.295 GB, free: 9.359 MB / 1.029 GB Notification: Performance of collectInitialBindings (initialization): time 0.0001337/1.164, allocations: 141.9 kB / 1.296 GB, free: 9.219 MB / 1.029 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001588/1.164, allocations: 86.12 kB / 1.296 GB, free: 9.129 MB / 1.029 GB Notification: Performance of setup shared object (initialization): time 0.0001463/1.164, allocations: 370.7 kB / 1.296 GB, free: 8.758 MB / 1.029 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003251/1.165, allocations: 174.5 kB / 1.296 GB, free: 8.586 MB / 1.029 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003972/1.165, allocations: 291.3 kB / 1.296 GB, free: 8.258 MB / 1.029 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0006907/1.166, allocations: 456.3 kB / 1.297 GB, free: 7.781 MB / 1.029 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.236e-06/1.166, allocations: 0 / 1.297 GB, free: 7.781 MB / 1.029 GB Notification: Performance of matching and sorting (n=53) (initialization): time 0.0009515/1.167, allocations: 0.5239 MB / 1.297 GB, free: 7.25 MB / 1.029 GB Notification: Performance of prepare postOptimizeDAE: time 2.077e-05/1.167, allocations: 8 kB / 1.297 GB, free: 7.242 MB / 1.029 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.092e-05/1.167, allocations: 7.938 kB / 1.297 GB, free: 7.234 MB / 1.029 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.969e-05/1.167, allocations: 4 kB / 1.297 GB, free: 7.23 MB / 1.029 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0006952/1.168, allocations: 132.1 kB / 1.298 GB, free: 7.102 MB / 1.029 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0003742/1.168, allocations: 0.5938 MB / 1.298 GB, free: 6.484 MB / 1.029 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005559/1.168, allocations: 55.5 kB / 1.298 GB, free: 6.43 MB / 1.029 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.592e-05/1.169, allocations: 20 kB / 1.298 GB, free: 6.41 MB / 1.029 GB Notification: Performance of preBalanceInitialSystem (initialization_lambda0): time 0.0005066/1.169, allocations: 348.9 kB / 1.299 GB, free: 6.066 MB / 1.029 GB Notification: Performance of partitionIndependentBlocks (initialization_lambda0): time 0.0003808/1.169, allocations: 279.5 kB / 1.299 GB, free: 5.758 MB / 1.029 GB Notification: Performance of analyzeInitialSystem (initialization_lambda0): time 0.0006857/1.17, allocations: 452.6 kB / 1.299 GB, free: 5.285 MB / 1.029 GB Notification: Performance of solveInitialSystemEqSystem (initialization_lambda0): time 2.254e-06/1.17, allocations: 0 / 1.299 GB, free: 5.285 MB / 1.029 GB Notification: Performance of matching and sorting (n=53) (initialization_lambda0): time 0.0009564/1.171, allocations: 0.5278 MB / 1.3 GB, free: 4.75 MB / 1.029 GB Notification: Performance of prepare postOptimizeDAE: time 1.239e-05/1.171, allocations: 8 kB / 1.3 GB, free: 4.742 MB / 1.029 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.537e-06/1.171, allocations: 4.281 kB / 1.3 GB, free: 4.738 MB / 1.029 GB Notification: Performance of postOpt tearingSystem (initialization): time 8.656e-06/1.171, allocations: 11.94 kB / 1.3 GB, free: 4.727 MB / 1.029 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004847/1.172, allocations: 111.9 kB / 1.3 GB, free: 4.617 MB / 1.029 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.034e-05/1.172, allocations: 7.938 kB / 1.3 GB, free: 4.609 MB / 1.029 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005395/1.172, allocations: 47.66 kB / 1.3 GB, free: 4.562 MB / 1.029 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.555e-05/1.172, allocations: 20 kB / 1.3 GB, free: 4.543 MB / 1.029 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.0001689/1.172, allocations: 200.2 kB / 1.3 GB, free: 4.34 MB / 1.029 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.000115/1.173, allocations: 67.19 kB / 1.3 GB, free: 4.273 MB / 1.029 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0008867/1.173, allocations: 487.9 kB / 1.301 GB, free: 3.785 MB / 1.029 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.551e-06/1.173, allocations: 4 kB / 1.301 GB, free: 3.781 MB / 1.029 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.459e-06/1.173, allocations: 0 / 1.301 GB, free: 3.781 MB / 1.029 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.0007735/1.174, allocations: 0.703 MB / 1.301 GB, free: 2.992 MB / 1.029 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001937/1.176, allocations: 1.292 MB / 1.303 GB, free: 1.621 MB / 1.029 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.929e-06/1.176, allocations: 4 kB / 1.303 GB, free: 1.617 MB / 1.029 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0006173/1.177, allocations: 119.8 kB / 1.303 GB, free: 1.5 MB / 1.029 GB Notification: Performance of postOpt tearingSystem (simulation): time 8.315e-06/1.177, allocations: 4 kB / 1.303 GB, free: 1.496 MB / 1.029 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.684e-05/1.177, allocations: 16.05 kB / 1.303 GB, free: 1.48 MB / 1.029 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0002931/1.177, allocations: 0.6017 MB / 1.303 GB, free: 0.8555 MB / 1.029 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.236e-06/1.177, allocations: 3.938 kB / 1.303 GB, free: 0.8516 MB / 1.029 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001235/1.178, allocations: 0.7862 MB / 1.304 GB, free: 28 kB / 1.029 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0002793/1.179, allocations: 184.2 kB / 1.304 GB, free: 15.83 MB / 1.045 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 9.105e-05/1.179, allocations: 19.88 kB / 1.304 GB, free: 15.81 MB / 1.045 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004268/1.179, allocations: 19.98 kB / 1.304 GB, free: 15.79 MB / 1.045 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.837e-05/1.179, allocations: 31.95 kB / 1.304 GB, free: 15.76 MB / 1.045 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.21e-05/1.179, allocations: 16 kB / 1.304 GB, free: 15.74 MB / 1.045 GB Notification: Performance of sorting global known variables: time 0.0004204/1.18, allocations: 350.8 kB / 1.305 GB, free: 15.4 MB / 1.045 GB Notification: Performance of sort global known variables: time 3.41e-07/1.18, allocations: 0 / 1.305 GB, free: 15.4 MB / 1.045 GB Notification: Performance of remove unused functions: time 0.0009855/1.181, allocations: 359.2 kB / 1.305 GB, free: 15.05 MB / 1.045 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.0004784/1.181, allocations: 199.1 kB / 1.305 GB, free: 14.86 MB / 1.045 GB Notification: Performance of simCode: created initialization part: time 0.00148/1.183, allocations: 0.672 MB / 1.306 GB, free: 14.18 MB / 1.045 GB Notification: Performance of simCode: created event and clocks part: time 3.226e-06/1.183, allocations: 0 / 1.306 GB, free: 14.18 MB / 1.045 GB Notification: Performance of simCode: created simulation system equations: time 0.0004059/1.183, allocations: 227.6 kB / 1.306 GB, free: 13.96 MB / 1.045 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001576/1.185, allocations: 360.9 kB / 1.306 GB, free: 13.62 MB / 1.045 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002445/1.187, allocations: 1.431 MB / 1.308 GB, free: 12.13 MB / 1.045 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005565/1.188, allocations: 0.9457 MB / 1.309 GB, free: 11.16 MB / 1.045 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001574/1.188, allocations: 55.42 kB / 1.309 GB, free: 11.11 MB / 1.045 GB Notification: Performance of SimCode: time 2.41e-07/1.188, allocations: 0 / 1.309 GB, free: 11.11 MB / 1.045 GB Notification: Performance of Templates: time 0.0167/1.205, allocations: 13.04 MB / 1.322 GB, free: 14.15 MB / 1.061 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