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.001791/0.001791, allocations: 111.3 kB / 15.23 MB, free: 0.6602 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.002158/0.002158, allocations: 194.5 kB / 16.14 MB, free: 6.645 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.445/1.446, allocations: 222.9 MB / 239.8 MB, free: 4.617 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.0.0-master/package.mo): time 2.853/2.853, allocations: 472.7 MB / 0.7447 GB, free: 4.984 MB / 0.5919 GB Notification: Performance of FrontEnd - loaded program: time 0.001374/0.001374, allocations: 70.38 kB / 0.9114 GB, free: 33.63 MB / 0.7169 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3777/0.3791, allocations: 159.9 MB / 1.068 GB, free: 10.89 MB / 0.8262 GB Notification: Performance of NFInst.instantiate(Buildings.Fluid.Sensors.Examples.Density): time 0.1824/0.5615, allocations: 182.8 MB / 1.246 GB, free: 3.395 MB / 0.9981 GB Notification: Performance of NFInst.instExpressions: time 0.7443/1.306, allocations: 7.035 MB / 1.253 GB, free: 5.613 MB / 0.9981 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.001517/1.307, allocations: 31.5 kB / 1.253 GB, free: 5.609 MB / 0.9981 GB Notification: Performance of NFTyping.typeComponents: time 0.001428/1.309, allocations: 336.2 kB / 1.253 GB, free: 5.609 MB / 0.9981 GB Notification: Performance of NFTyping.typeBindings: time 0.00397/1.313, allocations: 1.364 MB / 1.255 GB, free: 5.57 MB / 0.9981 GB Notification: Performance of NFTyping.typeClassSections: time 0.003212/1.316, allocations: 1.048 MB / 1.256 GB, free: 5.535 MB / 0.9981 GB Notification: Performance of NFFlatten.flatten: time 0.003646/1.32, allocations: 2.727 MB / 1.258 GB, free: 5.523 MB / 0.9981 GB Notification: Performance of NFFlatten.resolveConnections: time 0.001201/1.321, allocations: 0.5574 MB / 1.259 GB, free: 5.457 MB / 0.9981 GB Notification: Performance of NFEvalConstants.evaluate: time 0.002072/1.323, allocations: 0.7224 MB / 1.26 GB, free: 5.453 MB / 0.9981 GB Notification: Performance of NFSimplifyModel.simplify: time 0.001887/1.325, allocations: 0.6273 MB / 1.26 GB, free: 5.449 MB / 0.9981 GB Notification: Performance of NFPackage.collectConstants: time 0.0001477/1.325, allocations: 40.12 kB / 1.26 GB, free: 5.449 MB / 0.9981 GB Notification: Performance of NFFlatten.collectFunctions: time 0.00447/1.33, allocations: 2.191 MB / 1.262 GB, free: 5.43 MB / 0.9981 GB Notification: Performance of NFScalarize.scalarize: time 0.0004648/1.33, allocations: 261.6 kB / 1.263 GB, free: 5.43 MB / 0.9981 GB Notification: Performance of NFVerifyModel.verify: time 0.0007504/1.331, allocations: 397 kB / 1.263 GB, free: 5.43 MB / 0.9981 GB Notification: Performance of NFConvertDAE.convert: time 0.003752/1.335, allocations: 1.838 MB / 1.265 GB, free: 5.328 MB / 0.9981 GB Notification: Performance of FrontEnd - DAE generated: time 5.17e-06/1.335, allocations: 0 / 1.265 GB, free: 5.328 MB / 0.9981 GB Notification: Performance of FrontEnd: time 1.012e-06/1.335, allocations: 0 / 1.265 GB, free: 5.328 MB / 0.9981 GB Notification: Performance of Transformations before backend: time 1.098e-05/1.335, allocations: 2.438 kB / 1.265 GB, free: 5.328 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.002412/1.337, allocations: 1.153 MB / 1.266 GB, free: 20.65 MB / 1.014 GB Notification: Performance of prepare preOptimizeDAE: time 4.709e-05/1.337, allocations: 13.88 kB / 1.266 GB, free: 20.64 MB / 1.014 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.002123/1.339, allocations: 270 kB / 1.266 GB, free: 20.6 MB / 1.014 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001027/1.34, allocations: 0.5781 MB / 1.267 GB, free: 20.33 MB / 1.014 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.701e-05/1.34, allocations: 47.19 kB / 1.267 GB, free: 20.32 MB / 1.014 GB Notification: Performance of preOpt expandDerOperator (simulation): time 9.309e-05/1.34, allocations: 60.58 kB / 1.267 GB, free: 20.32 MB / 1.014 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001141/1.342, allocations: 0.6295 MB / 1.267 GB, free: 20.25 MB / 1.014 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.936e-05/1.342, allocations: 1.875 kB / 1.267 GB, free: 20.25 MB / 1.014 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.48e-05/1.342, allocations: 21.38 kB / 1.268 GB, free: 20.25 MB / 1.014 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.972e-05/1.342, allocations: 19.55 kB / 1.268 GB, free: 20.25 MB / 1.014 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0009656/1.343, allocations: 0.525 MB / 1.268 GB, free: 20.24 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.003375/1.346, allocations: 2.45 MB / 1.27 GB, free: 18.91 MB / 1.014 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0007338/1.347, allocations: 360.5 kB / 1.271 GB, free: 18.89 MB / 1.014 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004266/1.347, allocations: 236.2 kB / 1.271 GB, free: 18.88 MB / 1.014 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0006498/1.348, allocations: 308.8 kB / 1.271 GB, free: 18.59 MB / 1.014 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.313e-05/1.348, allocations: 38.36 kB / 1.271 GB, free: 18.55 MB / 1.014 GB Notification: Performance of pre-optimization done (n=39): time 2.194e-06/1.348, allocations: 0 / 1.271 GB, free: 18.55 MB / 1.014 GB Notification: Performance of matching and sorting (n=39): time 0.001538/1.35, allocations: 0.6205 MB / 1.272 GB, free: 18.48 MB / 1.014 GB Notification: Performance of inlineWhenForInitialization (initialization): time 5.534e-05/1.35, allocations: 55.81 kB / 1.272 GB, free: 18.41 MB / 1.014 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0006469/1.35, allocations: 0.498 MB / 1.272 GB, free: 18.29 MB / 1.014 GB Notification: Performance of collectPreVariables (initialization): time 4.871e-05/1.35, allocations: 33.05 kB / 1.273 GB, free: 18.26 MB / 1.014 GB Notification: Performance of collectInitialEqns (initialization): time 0.0002296/1.351, allocations: 327.5 kB / 1.273 GB, free: 18.11 MB / 1.014 GB Notification: Performance of collectInitialBindings (initialization): time 0.0001143/1.351, allocations: 140.8 kB / 1.273 GB, free: 18.02 MB / 1.014 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001533/1.351, allocations: 89.11 kB / 1.273 GB, free: 18 MB / 1.014 GB Notification: Performance of setup shared object (initialization): time 0.0001708/1.351, allocations: 366.3 kB / 1.273 GB, free: 17.68 MB / 1.014 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003547/1.351, allocations: 174.3 kB / 1.274 GB, free: 17.67 MB / 1.014 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004193/1.352, allocations: 287.9 kB / 1.274 GB, free: 17.56 MB / 1.014 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0007191/1.352, allocations: 449.6 kB / 1.274 GB, free: 17.47 MB / 1.014 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.446e-06/1.353, allocations: 3.938 kB / 1.274 GB, free: 17.47 MB / 1.014 GB Notification: Performance of matching and sorting (n=53) (initialization): time 0.001031/1.354, allocations: 0.5302 MB / 1.275 GB, free: 17.39 MB / 1.014 GB Notification: Performance of prepare postOptimizeDAE: time 2.788e-05/1.354, allocations: 6.594 kB / 1.275 GB, free: 17.39 MB / 1.014 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.066e-05/1.354, allocations: 3.719 kB / 1.275 GB, free: 17.39 MB / 1.014 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.302e-05/1.354, allocations: 4.719 kB / 1.275 GB, free: 17.39 MB / 1.014 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0008345/1.354, allocations: 136.1 kB / 1.275 GB, free: 17.39 MB / 1.014 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0004012/1.355, allocations: 0.596 MB / 1.276 GB, free: 16.8 MB / 1.014 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0007207/1.356, allocations: 83.89 kB / 1.276 GB, free: 16.77 MB / 1.014 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.298e-05/1.356, allocations: 18.72 kB / 1.276 GB, free: 16.77 MB / 1.014 GB Notification: Performance of preBalanceInitialSystem (initialization_lambda0): time 0.000659/1.356, allocations: 351.9 kB / 1.276 GB, free: 16.69 MB / 1.014 GB Notification: Performance of partitionIndependentBlocks (initialization_lambda0): time 0.0004659/1.357, allocations: 282 kB / 1.276 GB, free: 16.58 MB / 1.014 GB Notification: Performance of analyzeInitialSystem (initialization_lambda0): time 0.0006846/1.358, allocations: 457.1 kB / 1.277 GB, free: 16.49 MB / 1.014 GB Notification: Performance of solveInitialSystemEqSystem (initialization_lambda0): time 2.395e-06/1.358, allocations: 2.422 kB / 1.277 GB, free: 16.49 MB / 1.014 GB Notification: Performance of matching and sorting (n=53) (initialization_lambda0): time 0.000917/1.358, allocations: 0.514 MB / 1.277 GB, free: 16.42 MB / 1.014 GB Notification: Performance of prepare postOptimizeDAE: time 1.218e-05/1.358, allocations: 9.859 kB / 1.277 GB, free: 16.42 MB / 1.014 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.248e-06/1.358, allocations: 3.094 kB / 1.277 GB, free: 16.42 MB / 1.014 GB Notification: Performance of postOpt tearingSystem (initialization): time 6.583e-06/1.358, allocations: 8.031 kB / 1.277 GB, free: 16.41 MB / 1.014 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005422/1.359, allocations: 117.6 kB / 1.277 GB, free: 16.41 MB / 1.014 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.864e-06/1.359, allocations: 7.547 kB / 1.277 GB, free: 16.41 MB / 1.014 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0006408/1.36, allocations: 73.48 kB / 1.277 GB, free: 16.39 MB / 1.014 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.004e-05/1.36, allocations: 18.72 kB / 1.277 GB, free: 16.39 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.0001823/1.36, allocations: 203 kB / 1.278 GB, free: 16.21 MB / 1.014 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001162/1.36, allocations: 69.53 kB / 1.278 GB, free: 16.18 MB / 1.014 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001113/1.361, allocations: 485.7 kB / 1.278 GB, free: 16.12 MB / 1.014 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.204e-05/1.361, allocations: 5.297 kB / 1.278 GB, free: 16.12 MB / 1.014 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.373e-06/1.361, allocations: 0 / 1.278 GB, free: 16.12 MB / 1.014 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.00102/1.362, allocations: 0.7068 MB / 1.279 GB, free: 15.68 MB / 1.014 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002374/1.365, allocations: 1.288 MB / 1.28 GB, free: 15.3 MB / 1.014 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.151e-06/1.365, allocations: 6.234 kB / 1.28 GB, free: 15.3 MB / 1.014 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0006563/1.365, allocations: 126 kB / 1.28 GB, free: 15.29 MB / 1.014 GB Notification: Performance of postOpt tearingSystem (simulation): time 8.486e-06/1.365, allocations: 4.312 kB / 1.28 GB, free: 15.29 MB / 1.014 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.864e-05/1.365, allocations: 10.41 kB / 1.28 GB, free: 15.29 MB / 1.014 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0003827/1.366, allocations: 0.5959 MB / 1.281 GB, free: 14.7 MB / 1.014 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.37e-06/1.366, allocations: 10.95 kB / 1.281 GB, free: 14.7 MB / 1.014 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001307/1.367, allocations: 0.7901 MB / 1.282 GB, free: 14.47 MB / 1.014 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0002725/1.367, allocations: 184.5 kB / 1.282 GB, free: 14.34 MB / 1.014 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 8.963e-05/1.367, allocations: 8.688 kB / 1.282 GB, free: 14.34 MB / 1.014 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0005206/1.368, allocations: 48.67 kB / 1.282 GB, free: 14.34 MB / 1.014 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001049/1.368, allocations: 29.95 kB / 1.282 GB, free: 14.33 MB / 1.014 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.978e-05/1.368, allocations: 15.83 kB / 1.282 GB, free: 14.33 MB / 1.014 GB Notification: Performance of sorting global known variables: time 0.0005571/1.369, allocations: 352.4 kB / 1.282 GB, free: 14.25 MB / 1.014 GB Notification: Performance of sort global known variables: time 1.283e-06/1.369, allocations: 5 kB / 1.282 GB, free: 14.24 MB / 1.014 GB Notification: Performance of remove unused functions: time 0.001324/1.37, allocations: 366.4 kB / 1.283 GB, free: 14.2 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.0005913/1.371, allocations: 202.5 kB / 1.283 GB, free: 14.09 MB / 1.014 GB Notification: Performance of simCode: created initialization part: time 0.001733/1.372, allocations: 0.6718 MB / 1.283 GB, free: 14.07 MB / 1.014 GB Notification: Performance of simCode: created event and clocks part: time 4.568e-06/1.372, allocations: 1.125 kB / 1.283 GB, free: 14.07 MB / 1.014 GB Notification: Performance of simCode: created simulation system equations: time 0.0005244/1.373, allocations: 226.5 kB / 1.284 GB, free: 14.07 MB / 1.014 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.00195/1.375, allocations: 356.9 kB / 1.284 GB, free: 14.04 MB / 1.014 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003125/1.378, allocations: 1.638 MB / 1.286 GB, free: 13.13 MB / 1.014 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0008352/1.379, allocations: 0.9488 MB / 1.286 GB, free: 12.42 MB / 1.014 GB Notification: Performance of simCode: alias equations: time 0.00106/1.38, allocations: 208.9 kB / 1.287 GB, free: 12.39 MB / 1.014 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001781/1.38, allocations: 51.09 kB / 1.287 GB, free: 12.38 MB / 1.014 GB Notification: Performance of SimCode: time 6.82e-07/1.38, allocations: 0 / 1.287 GB, free: 12.38 MB / 1.014 GB Notification: Performance of Templates: time 0.02505/1.405, allocations: 11.94 MB / 1.298 GB, free: 11.66 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