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.008355/0.008355, allocations: 99.83 kB / 15.73 MB, free: 6.012 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.001844/0.001844, allocations: 193.5 kB / 16.67 MB, free: 5.93 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.413/1.413, allocations: 222.9 MB / 240.4 MB, free: 15.14 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.296/2.296, allocations: 390.2 MB / 0.6648 GB, free: 0.6328 MB / 0.5294 GB Notification: Performance of FrontEnd - loaded program: time 0.00124/0.00124, allocations: 67.84 kB / 0.9509 GB, free: 7.645 MB / 0.7325 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.8781/0.8793, allocations: 140.4 MB / 1.088 GB, free: 5.52 MB / 0.8575 GB Notification: Performance of NFInst.instantiate(Buildings.Fluid.Sensors.Examples.Density): time 0.2332/1.113, allocations: 185.1 MB / 1.269 GB, free: 4.625 MB / 0.9981 GB Notification: Performance of NFInst.instExpressions: time 0.009981/1.123, allocations: 6.97 MB / 1.275 GB, free: 13.63 MB / 1.014 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0009589/1.124, allocations: 31.81 kB / 1.276 GB, free: 13.6 MB / 1.014 GB Notification: Performance of NFTyping.typeComponents: time 0.001197/1.125, allocations: 409.5 kB / 1.276 GB, free: 13.2 MB / 1.014 GB Notification: Performance of NFTyping.typeBindings: time 0.003617/1.128, allocations: 1.505 MB / 1.277 GB, free: 11.69 MB / 1.014 GB Notification: Performance of NFTyping.typeClassSections: time 0.002922/1.131, allocations: 1.174 MB / 1.279 GB, free: 10.52 MB / 1.014 GB Notification: Performance of NFFlatten.flatten: time 0.002511/1.134, allocations: 1.952 MB / 1.28 GB, free: 8.559 MB / 1.014 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0009544/1.135, allocations: 0.6571 MB / 1.281 GB, free: 7.891 MB / 1.014 GB Notification: Performance of NFEvalConstants.evaluate: time 0.001542/1.136, allocations: 0.8519 MB / 1.282 GB, free: 7.039 MB / 1.014 GB Notification: Performance of NFSimplifyModel.simplify: time 0.001186/1.138, allocations: 0.6043 MB / 1.282 GB, free: 6.438 MB / 1.014 GB Notification: Performance of NFPackage.collectConstants: time 0.0001112/1.138, allocations: 68 kB / 1.283 GB, free: 6.371 MB / 1.014 GB Notification: Performance of NFFlatten.collectFunctions: time 0.003299/1.141, allocations: 1.941 MB / 1.284 GB, free: 4.426 MB / 1.014 GB Notification: Performance of NFScalarize.scalarize: time 0.0002931/1.141, allocations: 283.2 kB / 1.285 GB, free: 4.148 MB / 1.014 GB Notification: Performance of NFVerifyModel.verify: time 0.0004545/1.142, allocations: 438 kB / 1.285 GB, free: 3.719 MB / 1.014 GB Notification: Performance of NFConvertDAE.convert: time 0.002467/1.144, allocations: 1.757 MB / 1.287 GB, free: 1.957 MB / 1.014 GB Notification: Performance of FrontEnd - DAE generated: time 3.516e-06/1.144, allocations: 3.938 kB / 1.287 GB, free: 1.953 MB / 1.014 GB Notification: Performance of FrontEnd: time 1.282e-06/1.144, allocations: 0 / 1.287 GB, free: 1.953 MB / 1.014 GB Notification: Performance of Transformations before backend: time 1.142e-05/1.144, allocations: 4 kB / 1.287 GB, free: 1.949 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.001816/1.146, allocations: 1.182 MB / 1.288 GB, free: 0.7148 MB / 1.014 GB Notification: Performance of prepare preOptimizeDAE: time 3.387e-05/1.146, allocations: 8.031 kB / 1.288 GB, free: 0.707 MB / 1.014 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001952/1.148, allocations: 283.2 kB / 1.288 GB, free: 440 kB / 1.014 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001058/1.149, allocations: 0.615 MB / 1.289 GB, free: 15.77 MB / 1.029 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.458e-05/1.149, allocations: 45.31 kB / 1.289 GB, free: 15.72 MB / 1.029 GB Notification: Performance of preOpt expandDerOperator (simulation): time 9.345e-05/1.149, allocations: 59.98 kB / 1.289 GB, free: 15.66 MB / 1.029 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001055/1.15, allocations: 0.6323 MB / 1.29 GB, free: 15.02 MB / 1.029 GB Notification: Performance of preOpt findStateOrder (simulation): time 2.032e-05/1.15, allocations: 7.875 kB / 1.29 GB, free: 15.01 MB / 1.029 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.533e-05/1.151, allocations: 24 kB / 1.29 GB, free: 14.98 MB / 1.029 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.731e-05/1.151, allocations: 17.31 kB / 1.29 GB, free: 14.97 MB / 1.029 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0009404/1.152, allocations: 0.5282 MB / 1.29 GB, free: 14.44 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.003016/1.155, allocations: 2.461 MB / 1.293 GB, free: 11.77 MB / 1.029 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0006367/1.155, allocations: 357.9 kB / 1.293 GB, free: 11.41 MB / 1.029 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003795/1.156, allocations: 233.4 kB / 1.293 GB, free: 11.18 MB / 1.029 GB Notification: Performance of preOpt evalFunc (simulation): time 0.000576/1.156, allocations: 311.6 kB / 1.293 GB, free: 10.82 MB / 1.029 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.068e-05/1.156, allocations: 38.83 kB / 1.293 GB, free: 10.77 MB / 1.029 GB Notification: Performance of pre-optimization done (n=39): time 1.813e-06/1.156, allocations: 0 / 1.293 GB, free: 10.77 MB / 1.029 GB Notification: Performance of matching and sorting (n=39): time 0.001373/1.158, allocations: 0.619 MB / 1.294 GB, free: 10.15 MB / 1.029 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.205e-05/1.158, allocations: 55.41 kB / 1.294 GB, free: 10.08 MB / 1.029 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0005583/1.158, allocations: 499 kB / 1.295 GB, free: 9.586 MB / 1.029 GB Notification: Performance of collectPreVariables (initialization): time 5.101e-05/1.158, allocations: 37.7 kB / 1.295 GB, free: 9.543 MB / 1.029 GB Notification: Performance of collectInitialEqns (initialization): time 0.000225/1.159, allocations: 329 kB / 1.295 GB, free: 9.215 MB / 1.029 GB Notification: Performance of collectInitialBindings (initialization): time 0.0001222/1.159, allocations: 150.7 kB / 1.295 GB, free: 9.066 MB / 1.029 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001431/1.159, allocations: 94.08 kB / 1.295 GB, free: 8.969 MB / 1.029 GB Notification: Performance of setup shared object (initialization): time 0.0001679/1.159, allocations: 370.7 kB / 1.296 GB, free: 8.598 MB / 1.029 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003303/1.159, allocations: 170.5 kB / 1.296 GB, free: 8.43 MB / 1.029 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004251/1.16, allocations: 287.3 kB / 1.296 GB, free: 8.105 MB / 1.029 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0007451/1.16, allocations: 448.2 kB / 1.296 GB, free: 7.637 MB / 1.029 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.607e-06/1.161, allocations: 3.938 kB / 1.296 GB, free: 7.633 MB / 1.029 GB Notification: Performance of matching and sorting (n=53) (initialization): time 0.000939/1.161, allocations: 0.5282 MB / 1.297 GB, free: 7.098 MB / 1.029 GB Notification: Performance of prepare postOptimizeDAE: time 1.753e-05/1.161, allocations: 4 kB / 1.297 GB, free: 7.094 MB / 1.029 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.748e-06/1.161, allocations: 4 kB / 1.297 GB, free: 7.09 MB / 1.029 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.886e-05/1.162, allocations: 11.92 kB / 1.297 GB, free: 7.078 MB / 1.029 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0007308/1.162, allocations: 132.1 kB / 1.297 GB, free: 6.949 MB / 1.029 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0003996/1.163, allocations: 0.5976 MB / 1.298 GB, free: 6.328 MB / 1.029 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005493/1.163, allocations: 51.66 kB / 1.298 GB, free: 6.277 MB / 1.029 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.223e-05/1.163, allocations: 23.98 kB / 1.298 GB, free: 6.254 MB / 1.029 GB Notification: Performance of preBalanceInitialSystem (initialization_lambda0): time 0.0005317/1.164, allocations: 349 kB / 1.298 GB, free: 5.91 MB / 1.029 GB Notification: Performance of partitionIndependentBlocks (initialization_lambda0): time 0.0004261/1.164, allocations: 279.5 kB / 1.298 GB, free: 5.602 MB / 1.029 GB Notification: Performance of analyzeInitialSystem (initialization_lambda0): time 0.0007527/1.165, allocations: 456.7 kB / 1.299 GB, free: 5.125 MB / 1.029 GB Notification: Performance of solveInitialSystemEqSystem (initialization_lambda0): time 3.256e-06/1.165, allocations: 4 kB / 1.299 GB, free: 5.121 MB / 1.029 GB Notification: Performance of matching and sorting (n=53) (initialization_lambda0): time 0.0009187/1.166, allocations: 0.5322 MB / 1.299 GB, free: 4.582 MB / 1.029 GB Notification: Performance of prepare postOptimizeDAE: time 9.378e-06/1.166, allocations: 8.062 kB / 1.299 GB, free: 4.574 MB / 1.029 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.338e-06/1.166, allocations: 4 kB / 1.299 GB, free: 4.57 MB / 1.029 GB Notification: Performance of postOpt tearingSystem (initialization): time 7.374e-06/1.166, allocations: 7.938 kB / 1.299 GB, free: 4.562 MB / 1.029 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005133/1.167, allocations: 111.9 kB / 1.299 GB, free: 4.453 MB / 1.029 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.985e-06/1.167, allocations: 7.938 kB / 1.299 GB, free: 4.445 MB / 1.029 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005099/1.167, allocations: 39.77 kB / 1.299 GB, free: 4.406 MB / 1.029 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.757e-05/1.167, allocations: 20 kB / 1.299 GB, free: 4.387 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.0001755/1.167, allocations: 216.1 kB / 1.3 GB, free: 4.168 MB / 1.029 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001043/1.167, allocations: 63.56 kB / 1.3 GB, free: 4.105 MB / 1.029 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0009008/1.168, allocations: 484 kB / 1.3 GB, free: 3.621 MB / 1.029 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.581e-06/1.168, allocations: 4 kB / 1.3 GB, free: 3.617 MB / 1.029 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.41e-06/1.168, allocations: 0 / 1.3 GB, free: 3.617 MB / 1.029 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.0008241/1.169, allocations: 0.703 MB / 1.301 GB, free: 2.828 MB / 1.029 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001979/1.171, allocations: 1.296 MB / 1.302 GB, free: 1.453 MB / 1.029 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.367e-06/1.171, allocations: 0 / 1.302 GB, free: 1.453 MB / 1.029 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0006408/1.172, allocations: 123.8 kB / 1.302 GB, free: 1.332 MB / 1.029 GB Notification: Performance of postOpt tearingSystem (simulation): time 7.154e-06/1.172, allocations: 4 kB / 1.302 GB, free: 1.328 MB / 1.029 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.723e-05/1.172, allocations: 12 kB / 1.302 GB, free: 1.316 MB / 1.029 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0003855/1.172, allocations: 0.5901 MB / 1.303 GB, free: 0.7031 MB / 1.029 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.43e-06/1.172, allocations: 11.88 kB / 1.303 GB, free: 0.6914 MB / 1.029 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001207/1.173, allocations: 0.7904 MB / 1.304 GB, free: 15.86 MB / 1.045 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0002582/1.174, allocations: 192.6 kB / 1.304 GB, free: 15.66 MB / 1.045 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 7.923e-05/1.174, allocations: 11.94 kB / 1.304 GB, free: 15.64 MB / 1.045 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004425/1.174, allocations: 27.92 kB / 1.304 GB, free: 15.62 MB / 1.045 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.009e-05/1.174, allocations: 23.97 kB / 1.304 GB, free: 15.59 MB / 1.045 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.956e-05/1.174, allocations: 16.08 kB / 1.304 GB, free: 15.58 MB / 1.045 GB Notification: Performance of sorting global known variables: time 0.0003839/1.175, allocations: 350.8 kB / 1.304 GB, free: 15.24 MB / 1.045 GB Notification: Performance of sort global known variables: time 1.2e-07/1.175, allocations: 0 / 1.304 GB, free: 15.24 MB / 1.045 GB Notification: Performance of remove unused functions: time 0.0009581/1.176, allocations: 363.3 kB / 1.305 GB, free: 14.88 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.0004779/1.176, allocations: 216.6 kB / 1.305 GB, free: 14.67 MB / 1.045 GB Notification: Performance of simCode: created initialization part: time 0.00143/1.178, allocations: 0.6678 MB / 1.305 GB, free: 14 MB / 1.045 GB Notification: Performance of simCode: created event and clocks part: time 3.757e-06/1.178, allocations: 0 / 1.305 GB, free: 14 MB / 1.045 GB Notification: Performance of simCode: created simulation system equations: time 0.0004023/1.178, allocations: 215.7 kB / 1.306 GB, free: 13.79 MB / 1.045 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001627/1.18, allocations: 369.7 kB / 1.306 GB, free: 13.44 MB / 1.045 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002172/1.182, allocations: 1.397 MB / 1.307 GB, free: 12 MB / 1.045 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004964/1.182, allocations: 0.9457 MB / 1.308 GB, free: 11.02 MB / 1.045 GB Notification: Performance of simCode: alias equations: time 0.0006/1.183, allocations: 212.9 kB / 1.308 GB, free: 10.81 MB / 1.045 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001439/1.183, allocations: 51.42 kB / 1.309 GB, free: 10.76 MB / 1.045 GB Notification: Performance of SimCode: time 4.4e-07/1.183, allocations: 0 / 1.309 GB, free: 10.76 MB / 1.045 GB Notification: Performance of Templates: time 0.02122/1.204, allocations: 12.48 MB / 1.321 GB, free: 14.47 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/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