Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_11_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 11.1.0-maint.11.x/package.mo", uses=false) Using package Buildings with version 11.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.1.0-maint.11.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_11_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_11_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.007723/0.007723, allocations: 105.9 kB / 15.74 MB, free: 6.016 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.001647/0.001647, allocations: 191.9 kB / 16.68 MB, free: 5.934 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.358/1.358, 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 11.1.0-maint.11.x/package.mo): time 2.571/2.571, allocations: 469.8 MB / 0.7425 GB, free: 3.359 MB / 0.6075 GB Notification: Performance of FrontEnd - loaded program: time 0.001977/0.001977, allocations: 67.89 kB / 1.065 GB, free: 13.56 MB / 0.8419 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.9229/0.9248, allocations: 159.1 MB / 1.221 GB, free: 2.102 MB / 0.9356 GB Notification: Performance of NFInst.instantiate(Buildings.Fluid.Sensors.Examples.Density): time 0.2043/1.129, allocations: 185.5 MB / 1.402 GB, free: 7.863 MB / 1.123 GB Notification: Performance of NFInst.instExpressions: time 0.01028/1.139, allocations: 6.99 MB / 1.409 GB, free: 0.8516 MB / 1.123 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.001134/1.141, allocations: 31.81 kB / 1.409 GB, free: 0.8203 MB / 1.123 GB Notification: Performance of NFTyping.typeComponents: time 0.001289/1.142, allocations: 413.5 kB / 1.409 GB, free: 424 kB / 1.123 GB Notification: Performance of NFTyping.typeBindings: time 0.003724/1.146, allocations: 1.511 MB / 1.411 GB, free: 14.9 MB / 1.139 GB Notification: Performance of NFTyping.typeClassSections: time 0.003054/1.149, allocations: 1.173 MB / 1.412 GB, free: 13.73 MB / 1.139 GB Notification: Performance of NFFlatten.flatten: time 0.002645/1.151, allocations: 1.947 MB / 1.414 GB, free: 11.77 MB / 1.139 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0009592/1.152, allocations: 0.5555 MB / 1.414 GB, free: 11.21 MB / 1.139 GB Notification: Performance of NFEvalConstants.evaluate: time 0.001835/1.154, allocations: 0.8495 MB / 1.415 GB, free: 10.36 MB / 1.139 GB Notification: Performance of NFSimplifyModel.simplify: time 0.001509/1.156, allocations: 0.5933 MB / 1.416 GB, free: 9.762 MB / 1.139 GB Notification: Performance of NFPackage.collectConstants: time 0.0001212/1.156, allocations: 72 kB / 1.416 GB, free: 9.691 MB / 1.139 GB Notification: Performance of NFFlatten.collectFunctions: time 0.003624/1.159, allocations: 1.937 MB / 1.417 GB, free: 7.75 MB / 1.139 GB Notification: Performance of NFScalarize.scalarize: time 0.0003151/1.16, allocations: 303 kB / 1.418 GB, free: 7.453 MB / 1.139 GB Notification: Performance of NFVerifyModel.verify: time 0.0004842/1.16, allocations: 426.1 kB / 1.418 GB, free: 7.035 MB / 1.139 GB Notification: Performance of NFConvertDAE.convert: time 0.002803/1.163, allocations: 1.767 MB / 1.42 GB, free: 5.266 MB / 1.139 GB Notification: Performance of FrontEnd - DAE generated: time 4.328e-06/1.163, allocations: 0 / 1.42 GB, free: 5.266 MB / 1.139 GB Notification: Performance of FrontEnd: time 3.747e-06/1.163, allocations: 4 kB / 1.42 GB, free: 5.262 MB / 1.139 GB Notification: Performance of Transformations before backend: time 1.163e-05/1.163, allocations: 0 / 1.42 GB, free: 5.262 MB / 1.139 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.001807/1.165, allocations: 1.186 MB / 1.421 GB, free: 4.023 MB / 1.139 GB Notification: Performance of prepare preOptimizeDAE: time 3.709e-05/1.165, allocations: 8.031 kB / 1.421 GB, free: 4.016 MB / 1.139 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001946/1.167, allocations: 283.2 kB / 1.421 GB, free: 3.738 MB / 1.139 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0009659/1.168, allocations: 0.6149 MB / 1.422 GB, free: 3.082 MB / 1.139 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.842e-05/1.168, allocations: 45.31 kB / 1.422 GB, free: 3.039 MB / 1.139 GB Notification: Performance of preOpt expandDerOperator (simulation): time 8.833e-05/1.168, allocations: 52 kB / 1.422 GB, free: 2.988 MB / 1.139 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001031/1.169, allocations: 0.6401 MB / 1.423 GB, free: 2.332 MB / 1.139 GB Notification: Performance of preOpt findStateOrder (simulation): time 2.037e-05/1.169, allocations: 3.938 kB / 1.423 GB, free: 2.328 MB / 1.139 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.629e-05/1.169, allocations: 28 kB / 1.423 GB, free: 2.301 MB / 1.139 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.215e-05/1.169, allocations: 17.31 kB / 1.423 GB, free: 2.285 MB / 1.139 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0009113/1.17, allocations: 0.5165 MB / 1.423 GB, free: 1.77 MB / 1.139 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.002842/1.173, allocations: 2.458 MB / 1.426 GB, free: 15.1 MB / 1.154 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0006388/1.173, allocations: 347.5 kB / 1.426 GB, free: 14.75 MB / 1.154 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003657/1.174, allocations: 221.4 kB / 1.426 GB, free: 14.53 MB / 1.154 GB Notification: Performance of preOpt evalFunc (simulation): time 0.000572/1.174, allocations: 311.6 kB / 1.426 GB, free: 14.17 MB / 1.154 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.419e-05/1.174, allocations: 42.83 kB / 1.427 GB, free: 14.12 MB / 1.154 GB Notification: Performance of pre-optimization done (n=39): time 1.663e-06/1.174, allocations: 0 / 1.427 GB, free: 14.12 MB / 1.154 GB Notification: Performance of matching and sorting (n=39): time 0.001373/1.176, allocations: 0.6228 MB / 1.427 GB, free: 13.49 MB / 1.154 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.924e-05/1.176, allocations: 59.34 kB / 1.427 GB, free: 13.42 MB / 1.154 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0005298/1.176, allocations: 0.4951 MB / 1.428 GB, free: 12.91 MB / 1.154 GB Notification: Performance of collectPreVariables (initialization): time 4.079e-05/1.176, allocations: 33.7 kB / 1.428 GB, free: 12.88 MB / 1.154 GB Notification: Performance of collectInitialEqns (initialization): time 0.0002144/1.176, allocations: 333 kB / 1.428 GB, free: 12.55 MB / 1.154 GB Notification: Performance of collectInitialBindings (initialization): time 0.0001206/1.177, allocations: 146.7 kB / 1.428 GB, free: 12.4 MB / 1.154 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.000143/1.177, allocations: 86.08 kB / 1.428 GB, free: 12.31 MB / 1.154 GB Notification: Performance of setup shared object (initialization): time 0.0001594/1.177, allocations: 378.7 kB / 1.429 GB, free: 11.93 MB / 1.154 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003343/1.177, allocations: 170.5 kB / 1.429 GB, free: 11.77 MB / 1.154 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004058/1.178, allocations: 287.3 kB / 1.429 GB, free: 11.45 MB / 1.154 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0007163/1.178, allocations: 452.2 kB / 1.429 GB, free: 10.97 MB / 1.154 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.817e-06/1.178, allocations: 0 / 1.429 GB, free: 10.97 MB / 1.154 GB Notification: Performance of matching and sorting (n=53) (initialization): time 0.0008906/1.179, allocations: 0.5282 MB / 1.43 GB, free: 10.44 MB / 1.154 GB Notification: Performance of prepare postOptimizeDAE: time 1.983e-05/1.179, allocations: 8 kB / 1.43 GB, free: 10.43 MB / 1.154 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.873e-06/1.179, allocations: 0 / 1.43 GB, free: 10.43 MB / 1.154 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.871e-05/1.179, allocations: 4 kB / 1.43 GB, free: 10.43 MB / 1.154 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0007108/1.18, allocations: 135.8 kB / 1.43 GB, free: 10.29 MB / 1.154 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0003701/1.18, allocations: 0.598 MB / 1.431 GB, free: 9.672 MB / 1.154 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005099/1.181, allocations: 51.59 kB / 1.431 GB, free: 9.621 MB / 1.154 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.236e-05/1.181, allocations: 16 kB / 1.431 GB, free: 9.605 MB / 1.154 GB Notification: Performance of preBalanceInitialSystem (initialization_lambda0): time 0.0005237/1.181, allocations: 356.8 kB / 1.431 GB, free: 9.254 MB / 1.154 GB Notification: Performance of partitionIndependentBlocks (initialization_lambda0): time 0.0004027/1.182, allocations: 279.5 kB / 1.431 GB, free: 8.941 MB / 1.154 GB Notification: Performance of analyzeInitialSystem (initialization_lambda0): time 0.0006763/1.183, allocations: 456.4 kB / 1.432 GB, free: 8.465 MB / 1.154 GB Notification: Performance of solveInitialSystemEqSystem (initialization_lambda0): time 1.663e-06/1.183, allocations: 0 / 1.432 GB, free: 8.465 MB / 1.154 GB Notification: Performance of matching and sorting (n=53) (initialization_lambda0): time 0.0008501/1.183, allocations: 0.5203 MB / 1.432 GB, free: 7.938 MB / 1.154 GB Notification: Performance of prepare postOptimizeDAE: time 1.24e-05/1.183, allocations: 11.98 kB / 1.432 GB, free: 7.926 MB / 1.154 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.948e-06/1.183, allocations: 3.984 kB / 1.432 GB, free: 7.922 MB / 1.154 GB Notification: Performance of postOpt tearingSystem (initialization): time 7.584e-06/1.183, allocations: 12.22 kB / 1.432 GB, free: 7.91 MB / 1.154 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000499/1.184, allocations: 115.9 kB / 1.432 GB, free: 7.797 MB / 1.154 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.491e-06/1.184, allocations: 4 kB / 1.432 GB, free: 7.793 MB / 1.154 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004779/1.184, allocations: 39.83 kB / 1.432 GB, free: 7.754 MB / 1.154 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.321e-05/1.184, allocations: 16 kB / 1.433 GB, free: 7.738 MB / 1.154 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.0001681/1.185, allocations: 216.1 kB / 1.433 GB, free: 7.52 MB / 1.154 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001068/1.185, allocations: 71.5 kB / 1.433 GB, free: 7.449 MB / 1.154 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0008752/1.186, allocations: 488 kB / 1.433 GB, free: 6.965 MB / 1.154 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.691e-06/1.186, allocations: 7.938 kB / 1.433 GB, free: 6.957 MB / 1.154 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.749e-06/1.186, allocations: 0 / 1.433 GB, free: 6.957 MB / 1.154 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.0007991/1.186, allocations: 0.703 MB / 1.434 GB, free: 6.168 MB / 1.154 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001892/1.188, allocations: 1.281 MB / 1.435 GB, free: 4.809 MB / 1.154 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.251e-06/1.188, allocations: 12.16 kB / 1.435 GB, free: 4.797 MB / 1.154 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0006315/1.189, allocations: 123.8 kB / 1.435 GB, free: 4.676 MB / 1.154 GB Notification: Performance of postOpt tearingSystem (simulation): time 6.573e-06/1.189, allocations: 4 kB / 1.435 GB, free: 4.672 MB / 1.154 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.188e-05/1.189, allocations: 12 kB / 1.435 GB, free: 4.66 MB / 1.154 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0002928/1.189, allocations: 0.5938 MB / 1.436 GB, free: 4.043 MB / 1.154 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.567e-06/1.189, allocations: 4.031 kB / 1.436 GB, free: 4.039 MB / 1.154 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.00115/1.19, allocations: 0.7981 MB / 1.437 GB, free: 3.199 MB / 1.154 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0002184/1.191, allocations: 188.6 kB / 1.437 GB, free: 2.996 MB / 1.154 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 8.33e-05/1.191, allocations: 11.94 kB / 1.437 GB, free: 2.984 MB / 1.154 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004128/1.191, allocations: 18.22 kB / 1.437 GB, free: 2.969 MB / 1.154 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.669e-05/1.191, allocations: 35.91 kB / 1.437 GB, free: 2.934 MB / 1.154 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.991e-05/1.191, allocations: 19.98 kB / 1.437 GB, free: 2.914 MB / 1.154 GB Notification: Performance of sorting global known variables: time 0.0003767/1.192, allocations: 350.8 kB / 1.437 GB, free: 2.574 MB / 1.154 GB Notification: Performance of sort global known variables: time 8e-08/1.192, allocations: 0 / 1.437 GB, free: 2.574 MB / 1.154 GB Notification: Performance of remove unused functions: time 0.0009237/1.193, allocations: 359.3 kB / 1.438 GB, free: 2.223 MB / 1.154 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.0004862/1.193, allocations: 209.9 kB / 1.438 GB, free: 2.02 MB / 1.154 GB Notification: Performance of simCode: created initialization part: time 0.001402/1.194, allocations: 0.6418 MB / 1.438 GB, free: 1.379 MB / 1.154 GB Notification: Performance of simCode: created event and clocks part: time 4.138e-06/1.194, allocations: 4.125 kB / 1.438 GB, free: 1.375 MB / 1.154 GB Notification: Performance of simCode: created simulation system equations: time 0.000411/1.195, allocations: 207.7 kB / 1.439 GB, free: 1.172 MB / 1.154 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001508/1.196, allocations: 366.4 kB / 1.439 GB, free: 0.8164 MB / 1.154 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002426/1.199, allocations: 1.415 MB / 1.44 GB, free: 15.35 MB / 1.17 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005406/1.199, allocations: 0.9534 MB / 1.441 GB, free: 14.37 MB / 1.17 GB Notification: Performance of simCode: alias equations: time 0.0005823/1.2, allocations: 200.9 kB / 1.442 GB, free: 14.17 MB / 1.17 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001343/1.2, allocations: 51.42 kB / 1.442 GB, free: 14.12 MB / 1.17 GB Notification: Performance of SimCode: time 6.91e-07/1.2, allocations: 0 / 1.442 GB, free: 14.12 MB / 1.17 GB Notification: Performance of Templates: time 0.02068/1.221, allocations: 12.55 MB / 1.454 GB, free: 1.762 MB / 1.17 GB make -j1 -f Buildings_11_Buildings.Fluid.Sensors.Examples.Density.makefile (rm -f Buildings_11_Buildings.Fluid.Sensors.Examples.Density.pipe ; mkfifo Buildings_11_Buildings.Fluid.Sensors.Examples.Density.pipe ; head -c 1048576 < Buildings_11_Buildings.Fluid.Sensors.Examples.Density.pipe >> ../files/Buildings_11_Buildings.Fluid.Sensors.Examples.Density.sim & ./Buildings_11_Buildings.Fluid.Sensors.Examples.Density -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Buildings_11_Buildings.Fluid.Sensors.Examples.Density.pipe 2>&1) diffSimulationResults("Buildings_11_Buildings.Fluid.Sensors.Examples.Density_res.mat","/mnt/ReferenceFiles/Buildings/csv/maint_11.x/Buildings_Fluid_Sensors_Examples_Density.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_11_Buildings.Fluid.Sensors.Examples.Density.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches