Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_latest_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 12.0.0-master/package.mo", uses=false) Using package Buildings with version 12.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.0.0-master/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_latest_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_latest_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.001308/0.001308, allocations: 108 kB / 15.6 MB, free: 132 kB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001543/0.001543, allocations: 193.4 kB / 16.53 MB, free: 6.391 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.407/1.407, allocations: 222.9 MB / 240.2 MB, free: 4.434 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.0.0-master/package.mo): time 2.836/2.836, allocations: 472.6 MB / 0.7452 GB, free: 4.633 MB / 0.5919 GB Notification: Performance of FrontEnd - loaded program: time 0.001326/0.001326, allocations: 71.41 kB / 0.9121 GB, free: 33.34 MB / 0.7169 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3346/0.336, allocations: 159.9 MB / 1.068 GB, free: 10.41 MB / 0.8262 GB Notification: Performance of NFInst.instantiate(Buildings.Fluid.Sensors.Examples.Density): time 0.2034/0.5394, allocations: 185 MB / 1.249 GB, free: 0.6562 MB / 0.9981 GB Notification: Performance of NFInst.instExpressions: time 0.6607/1.2, allocations: 6.974 MB / 1.256 GB, free: 5.738 MB / 0.9981 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.001364/1.202, allocations: 28.69 kB / 1.256 GB, free: 5.738 MB / 0.9981 GB Notification: Performance of NFTyping.typeComponents: time 0.001238/1.203, allocations: 402.8 kB / 1.256 GB, free: 5.738 MB / 0.9981 GB Notification: Performance of NFTyping.typeBindings: time 0.00424/1.207, allocations: 1.443 MB / 1.258 GB, free: 5.695 MB / 0.9981 GB Notification: Performance of NFTyping.typeClassSections: time 0.003831/1.211, allocations: 1.155 MB / 1.259 GB, free: 5.664 MB / 0.9981 GB Notification: Performance of NFFlatten.flatten: time 0.003193/1.214, allocations: 1.945 MB / 1.261 GB, free: 5.66 MB / 0.9981 GB Notification: Performance of NFFlatten.resolveConnections: time 0.001118/1.215, allocations: 0.6617 MB / 1.261 GB, free: 5.617 MB / 0.9981 GB Notification: Performance of NFEvalConstants.evaluate: time 0.001989/1.217, allocations: 0.826 MB / 1.262 GB, free: 5.609 MB / 0.9981 GB Notification: Performance of NFSimplifyModel.simplify: time 0.001518/1.219, allocations: 0.5914 MB / 1.263 GB, free: 5.609 MB / 0.9981 GB Notification: Performance of NFPackage.collectConstants: time 0.0001228/1.219, allocations: 68.81 kB / 1.263 GB, free: 5.609 MB / 0.9981 GB Notification: Performance of NFFlatten.collectFunctions: time 0.004555/1.224, allocations: 1.929 MB / 1.265 GB, free: 5.59 MB / 0.9981 GB Notification: Performance of NFScalarize.scalarize: time 0.0004471/1.224, allocations: 287.9 kB / 1.265 GB, free: 5.59 MB / 0.9981 GB Notification: Performance of NFVerifyModel.verify: time 0.0006987/1.225, allocations: 430 kB / 1.265 GB, free: 5.59 MB / 0.9981 GB Notification: Performance of NFConvertDAE.convert: time 0.004247/1.229, allocations: 1.75 MB / 1.267 GB, free: 5.492 MB / 0.9981 GB Notification: Performance of FrontEnd - DAE generated: time 6.232e-06/1.229, allocations: 0.9375 kB / 1.267 GB, free: 5.492 MB / 0.9981 GB Notification: Performance of FrontEnd: time 1.773e-06/1.229, allocations: 0 / 1.267 GB, free: 5.492 MB / 0.9981 GB Notification: Performance of Transformations before backend: time 1.409e-05/1.229, allocations: 0 / 1.267 GB, free: 5.492 MB / 0.9981 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.002492/1.232, allocations: 1.16 MB / 1.268 GB, free: 20.81 MB / 1.014 GB Notification: Performance of prepare preOptimizeDAE: time 4.53e-05/1.232, allocations: 10.58 kB / 1.268 GB, free: 20.81 MB / 1.014 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001996/1.234, allocations: 277.3 kB / 1.268 GB, free: 20.77 MB / 1.014 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0009244/1.235, allocations: 0.578 MB / 1.269 GB, free: 20.48 MB / 1.014 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.704e-05/1.235, allocations: 44.22 kB / 1.269 GB, free: 20.48 MB / 1.014 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001008/1.235, allocations: 55.97 kB / 1.269 GB, free: 20.48 MB / 1.014 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001087/1.236, allocations: 0.6315 MB / 1.27 GB, free: 20.41 MB / 1.014 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.867e-05/1.236, allocations: 3.094 kB / 1.27 GB, free: 20.41 MB / 1.014 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.463e-05/1.236, allocations: 26.8 kB / 1.27 GB, free: 20.41 MB / 1.014 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.954e-05/1.236, allocations: 17.91 kB / 1.27 GB, free: 20.41 MB / 1.014 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0009534/1.237, allocations: 0.5224 MB / 1.27 GB, free: 20.41 MB / 1.014 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.003242/1.24, allocations: 2.468 MB / 1.273 GB, free: 19.09 MB / 1.014 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0007342/1.241, allocations: 361.7 kB / 1.273 GB, free: 19.07 MB / 1.014 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003978/1.241, allocations: 239.3 kB / 1.273 GB, free: 19.06 MB / 1.014 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0006868/1.242, allocations: 311.1 kB / 1.273 GB, free: 18.78 MB / 1.014 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.189e-05/1.242, allocations: 42.14 kB / 1.274 GB, free: 18.74 MB / 1.014 GB Notification: Performance of pre-optimization done (n=39): time 2.855e-06/1.242, allocations: 1.969 kB / 1.274 GB, free: 18.74 MB / 1.014 GB Notification: Performance of matching and sorting (n=39): time 0.001458/1.244, allocations: 0.6194 MB / 1.274 GB, free: 18.66 MB / 1.014 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.857e-05/1.244, allocations: 57.25 kB / 1.274 GB, free: 18.6 MB / 1.014 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0006419/1.244, allocations: 0.4916 MB / 1.275 GB, free: 18.48 MB / 1.014 GB Notification: Performance of collectPreVariables (initialization): time 5.874e-05/1.244, allocations: 35.55 kB / 1.275 GB, free: 18.45 MB / 1.014 GB Notification: Performance of collectInitialEqns (initialization): time 0.0002291/1.245, allocations: 323.6 kB / 1.275 GB, free: 18.29 MB / 1.014 GB Notification: Performance of collectInitialBindings (initialization): time 0.0001257/1.245, allocations: 143.8 kB / 1.275 GB, free: 18.2 MB / 1.014 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001485/1.245, allocations: 88.14 kB / 1.275 GB, free: 18.18 MB / 1.014 GB Notification: Performance of setup shared object (initialization): time 0.0001614/1.245, allocations: 366 kB / 1.276 GB, free: 17.87 MB / 1.014 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003469/1.245, allocations: 176.4 kB / 1.276 GB, free: 17.86 MB / 1.014 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004147/1.246, allocations: 282 kB / 1.276 GB, free: 17.76 MB / 1.014 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0007411/1.247, allocations: 448.3 kB / 1.276 GB, free: 17.68 MB / 1.014 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.936e-06/1.247, allocations: 2 kB / 1.276 GB, free: 17.68 MB / 1.014 GB Notification: Performance of matching and sorting (n=53) (initialization): time 0.0009976/1.248, allocations: 0.5298 MB / 1.277 GB, free: 17.6 MB / 1.014 GB Notification: Performance of prepare postOptimizeDAE: time 1.849e-05/1.248, allocations: 6 kB / 1.277 GB, free: 17.6 MB / 1.014 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.238e-06/1.248, allocations: 3.781 kB / 1.277 GB, free: 17.6 MB / 1.014 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.915e-05/1.248, allocations: 8.578 kB / 1.277 GB, free: 17.6 MB / 1.014 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0008667/1.248, allocations: 131.2 kB / 1.277 GB, free: 17.6 MB / 1.014 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0003982/1.249, allocations: 0.593 MB / 1.278 GB, free: 17.02 MB / 1.014 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005927/1.249, allocations: 52.75 kB / 1.278 GB, free: 16.99 MB / 1.014 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.847e-05/1.25, allocations: 18.42 kB / 1.278 GB, free: 16.99 MB / 1.014 GB Notification: Performance of preBalanceInitialSystem (initialization_lambda0): time 0.0006552/1.25, allocations: 356.3 kB / 1.278 GB, free: 16.91 MB / 1.014 GB Notification: Performance of partitionIndependentBlocks (initialization_lambda0): time 0.000488/1.251, allocations: 285.1 kB / 1.278 GB, free: 16.8 MB / 1.014 GB Notification: Performance of analyzeInitialSystem (initialization_lambda0): time 0.0007341/1.251, allocations: 448.3 kB / 1.279 GB, free: 16.71 MB / 1.014 GB Notification: Performance of solveInitialSystemEqSystem (initialization_lambda0): time 2.093e-06/1.251, allocations: 3.938 kB / 1.279 GB, free: 16.71 MB / 1.014 GB Notification: Performance of matching and sorting (n=53) (initialization_lambda0): time 0.0009101/1.252, allocations: 0.5277 MB / 1.279 GB, free: 16.64 MB / 1.014 GB Notification: Performance of prepare postOptimizeDAE: time 1.266e-05/1.252, allocations: 7.125 kB / 1.279 GB, free: 16.64 MB / 1.014 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.168e-06/1.252, allocations: 3.344 kB / 1.279 GB, free: 16.64 MB / 1.014 GB Notification: Performance of postOpt tearingSystem (initialization): time 6.553e-06/1.252, allocations: 4.719 kB / 1.279 GB, free: 16.64 MB / 1.014 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005147/1.253, allocations: 117.2 kB / 1.279 GB, free: 16.64 MB / 1.014 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.055e-05/1.253, allocations: 6.891 kB / 1.279 GB, free: 16.64 MB / 1.014 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005499/1.254, allocations: 42.98 kB / 1.279 GB, free: 16.62 MB / 1.014 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.892e-05/1.254, allocations: 19.7 kB / 1.28 GB, free: 16.62 MB / 1.014 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.0002674/1.254, allocations: 214.5 kB / 1.28 GB, free: 16.44 MB / 1.014 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.00011/1.254, allocations: 59.97 kB / 1.28 GB, free: 16.41 MB / 1.014 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0009313/1.255, allocations: 485.4 kB / 1.28 GB, free: 16.36 MB / 1.014 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.332e-06/1.255, allocations: 4.938 kB / 1.28 GB, free: 16.36 MB / 1.014 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.438e-06/1.255, allocations: 0 / 1.28 GB, free: 16.36 MB / 1.014 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.0009179/1.256, allocations: 0.7031 MB / 1.281 GB, free: 15.91 MB / 1.014 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002155/1.258, allocations: 1.283 MB / 1.282 GB, free: 15.55 MB / 1.014 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.592e-06/1.258, allocations: 2.469 kB / 1.282 GB, free: 15.55 MB / 1.014 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0006456/1.259, allocations: 128.4 kB / 1.282 GB, free: 15.55 MB / 1.014 GB Notification: Performance of postOpt tearingSystem (simulation): time 8.636e-06/1.259, allocations: 2.719 kB / 1.282 GB, free: 15.55 MB / 1.014 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.816e-05/1.259, allocations: 12.02 kB / 1.282 GB, free: 15.55 MB / 1.014 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.000369/1.259, allocations: 0.594 MB / 1.283 GB, free: 14.96 MB / 1.014 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.36e-06/1.259, allocations: 3.844 kB / 1.283 GB, free: 14.96 MB / 1.014 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001208/1.26, allocations: 0.7959 MB / 1.284 GB, free: 14.73 MB / 1.014 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0002891/1.261, allocations: 188.3 kB / 1.284 GB, free: 14.6 MB / 1.014 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001021/1.261, allocations: 9.922 kB / 1.284 GB, free: 14.6 MB / 1.014 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004642/1.261, allocations: 22.48 kB / 1.284 GB, free: 14.6 MB / 1.014 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.366e-05/1.261, allocations: 29.94 kB / 1.284 GB, free: 14.6 MB / 1.014 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.743e-05/1.261, allocations: 19.53 kB / 1.284 GB, free: 14.6 MB / 1.014 GB Notification: Performance of sorting global known variables: time 0.0005036/1.262, allocations: 351.4 kB / 1.284 GB, free: 14.51 MB / 1.014 GB Notification: Performance of sort global known variables: time 2.4e-07/1.262, allocations: 0.9688 kB / 1.284 GB, free: 14.51 MB / 1.014 GB Notification: Performance of remove unused functions: time 0.001206/1.263, allocations: 364.6 kB / 1.285 GB, free: 14.46 MB / 1.014 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.0005762/1.264, allocations: 211.3 kB / 1.285 GB, free: 14.37 MB / 1.014 GB Notification: Performance of simCode: created initialization part: time 0.00179/1.266, allocations: 0.718 MB / 1.286 GB, free: 14.35 MB / 1.014 GB Notification: Performance of simCode: created event and clocks part: time 6.302e-06/1.266, allocations: 1.031 kB / 1.286 GB, free: 14.35 MB / 1.014 GB Notification: Performance of simCode: created simulation system equations: time 0.0004547/1.266, allocations: 225.5 kB / 1.286 GB, free: 14.35 MB / 1.014 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001811/1.268, allocations: 369.4 kB / 1.286 GB, free: 14.3 MB / 1.014 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002619/1.27, allocations: 1.39 MB / 1.287 GB, free: 13.75 MB / 1.014 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0006313/1.271, allocations: 0.9462 MB / 1.288 GB, free: 13.05 MB / 1.014 GB Notification: Performance of simCode: alias equations: time 0.0008567/1.272, allocations: 204.8 kB / 1.289 GB, free: 13.02 MB / 1.014 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000167/1.272, allocations: 53.98 kB / 1.289 GB, free: 13.02 MB / 1.014 GB Notification: Performance of SimCode: time 8.22e-07/1.272, allocations: 0 / 1.289 GB, free: 13.02 MB / 1.014 GB Notification: Performance of Templates: time 0.02548/1.298, allocations: 12.4 MB / 1.301 GB, free: 12.25 MB / 1.014 GB make -j1 -f Buildings_latest_Buildings.Fluid.Sensors.Examples.Density.makefile (rm -f Buildings_latest_Buildings.Fluid.Sensors.Examples.Density.pipe ; mkfifo Buildings_latest_Buildings.Fluid.Sensors.Examples.Density.pipe ; head -c 1048576 < Buildings_latest_Buildings.Fluid.Sensors.Examples.Density.pipe >> ../files/Buildings_latest_Buildings.Fluid.Sensors.Examples.Density.sim & ./Buildings_latest_Buildings.Fluid.Sensors.Examples.Density -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Buildings_latest_Buildings.Fluid.Sensors.Examples.Density.pipe 2>&1) diffSimulationResults("Buildings_latest_Buildings.Fluid.Sensors.Examples.Density_res.mat","/mnt/ReferenceFiles/Buildings/csv/master/Buildings_Fluid_Sensors_Examples_Density.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_latest_Buildings.Fluid.Sensors.Examples.Density.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches