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 11.0.1-master/package.mo", uses=false) Using package Buildings with version 11.0.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.0.1-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.008007/0.008007, allocations: 99.88 kB / 15.73 MB, free: 6.047 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.001848/0.001848, allocations: 185.3 kB / 16.67 MB, free: 5.977 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.431/1.431, allocations: 222.9 MB / 240.4 MB, free: 4.312 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.0.1-master/package.mo): time 2.794/2.794, allocations: 461.9 MB / 0.7348 GB, free: 14.66 MB / 0.5919 GB Notification: Performance of FrontEnd - loaded program: time 0.001293/0.001293, allocations: 68.12 kB / 1.054 GB, free: 7.164 MB / 0.8106 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3185/0.3198, allocations: 157.4 MB / 1.208 GB, free: 9.656 MB / 0.9669 GB Notification: Performance of NFInst.instantiate(Buildings.Fluid.Sensors.Examples.Density): time 0.9213/1.241, allocations: 185.1 MB / 1.388 GB, free: 3.566 MB / 1.076 GB Notification: Performance of NFInst.instExpressions: time 0.01112/1.252, allocations: 6.959 MB / 1.395 GB, free: 13.92 MB / 1.092 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.001474/1.254, allocations: 29.41 kB / 1.395 GB, free: 13.91 MB / 1.092 GB Notification: Performance of NFTyping.typeComponents: time 0.001477/1.255, allocations: 406.1 kB / 1.396 GB, free: 13.57 MB / 1.092 GB Notification: Performance of NFTyping.typeBindings: time 0.004431/1.26, allocations: 1.438 MB / 1.397 GB, free: 12.47 MB / 1.092 GB Notification: Performance of NFTyping.typeClassSections: time 0.003596/1.263, allocations: 1.173 MB / 1.398 GB, free: 11.59 MB / 1.092 GB Notification: Performance of NFFlatten.flatten: time 0.003395/1.267, allocations: 1.949 MB / 1.4 GB, free: 10.47 MB / 1.092 GB Notification: Performance of NFFlatten.resolveConnections: time 0.001288/1.268, allocations: 0.6549 MB / 1.401 GB, free: 10.07 MB / 1.092 GB Notification: Performance of NFEvalConstants.evaluate: time 0.002197/1.27, allocations: 0.8323 MB / 1.402 GB, free: 9.578 MB / 1.092 GB Notification: Performance of NFSimplifyModel.simplify: time 0.001783/1.272, allocations: 0.5988 MB / 1.402 GB, free: 9.227 MB / 1.092 GB Notification: Performance of NFPackage.collectConstants: time 0.0002548/1.272, allocations: 67.88 kB / 1.402 GB, free: 9.227 MB / 1.092 GB Notification: Performance of NFFlatten.collectFunctions: time 0.004224/1.277, allocations: 1.935 MB / 1.404 GB, free: 8.133 MB / 1.092 GB Notification: Performance of NFScalarize.scalarize: time 0.0004905/1.277, allocations: 291.4 kB / 1.404 GB, free: 7.938 MB / 1.092 GB Notification: Performance of NFVerifyModel.verify: time 0.0008604/1.278, allocations: 427.6 kB / 1.405 GB, free: 7.676 MB / 1.092 GB Notification: Performance of NFConvertDAE.convert: time 0.003715/1.282, allocations: 1.772 MB / 1.407 GB, free: 6.578 MB / 1.092 GB Notification: Performance of FrontEnd - DAE generated: time 5.511e-06/1.282, allocations: 0 / 1.407 GB, free: 6.578 MB / 1.092 GB Notification: Performance of FrontEnd: time 1.824e-06/1.282, allocations: 0 / 1.407 GB, free: 6.578 MB / 1.092 GB Notification: Performance of Transformations before backend: time 4.129e-05/1.282, allocations: 0 / 1.407 GB, free: 6.578 MB / 1.092 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.002598/1.284, allocations: 1.166 MB / 1.408 GB, free: 5.652 MB / 1.092 GB Notification: Performance of prepare preOptimizeDAE: time 3.946e-05/1.284, allocations: 14.22 kB / 1.408 GB, free: 5.648 MB / 1.092 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.002202/1.287, allocations: 265.1 kB / 1.408 GB, free: 5.531 MB / 1.092 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001704/1.288, allocations: 0.6108 MB / 1.409 GB, free: 5.031 MB / 1.092 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.213e-05/1.288, allocations: 43.91 kB / 1.409 GB, free: 5.012 MB / 1.092 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001342/1.289, allocations: 54.22 kB / 1.409 GB, free: 4.996 MB / 1.092 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001262/1.29, allocations: 0.6331 MB / 1.409 GB, free: 4.613 MB / 1.092 GB Notification: Performance of preOpt findStateOrder (simulation): time 2.67e-05/1.29, allocations: 8 kB / 1.409 GB, free: 4.605 MB / 1.092 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.987e-05/1.29, allocations: 25.44 kB / 1.409 GB, free: 4.586 MB / 1.092 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.086e-05/1.29, allocations: 19.19 kB / 1.409 GB, free: 4.586 MB / 1.092 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.00102/1.291, allocations: 0.5244 MB / 1.41 GB, free: 4.332 MB / 1.092 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.00353/1.295, allocations: 2.453 MB / 1.412 GB, free: 2.184 MB / 1.092 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0006648/1.295, allocations: 361.2 kB / 1.413 GB, free: 1.996 MB / 1.092 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003782/1.296, allocations: 239.9 kB / 1.413 GB, free: 1.879 MB / 1.092 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0005778/1.296, allocations: 307.4 kB / 1.413 GB, free: 1.57 MB / 1.092 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.117e-05/1.296, allocations: 42.83 kB / 1.413 GB, free: 1.52 MB / 1.092 GB Notification: Performance of pre-optimization done (n=39): time 2.214e-06/1.296, allocations: 2.281 kB / 1.413 GB, free: 1.52 MB / 1.092 GB Notification: Performance of matching and sorting (n=39): time 0.001427/1.298, allocations: 0.6153 MB / 1.414 GB, free: 1.211 MB / 1.092 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.884e-05/1.298, allocations: 55.66 kB / 1.414 GB, free: 1.148 MB / 1.092 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000602/1.298, allocations: 0.4933 MB / 1.414 GB, free: 0.8516 MB / 1.092 GB Notification: Performance of collectPreVariables (initialization): time 4.97e-05/1.298, allocations: 35.98 kB / 1.414 GB, free: 0.8125 MB / 1.092 GB Notification: Performance of collectInitialEqns (initialization): time 0.0002363/1.299, allocations: 328.7 kB / 1.415 GB, free: 0.5195 MB / 1.092 GB Notification: Performance of collectInitialBindings (initialization): time 0.0001407/1.299, allocations: 141.1 kB / 1.415 GB, free: 408 kB / 1.092 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001603/1.299, allocations: 86.66 kB / 1.415 GB, free: 352 kB / 1.092 GB Notification: Performance of setup shared object (initialization): time 0.0001583/1.299, allocations: 370.1 kB / 1.415 GB, free: 15.99 MB / 1.107 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003404/1.3, allocations: 177.7 kB / 1.415 GB, free: 15.89 MB / 1.107 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000417/1.3, allocations: 286.1 kB / 1.416 GB, free: 15.68 MB / 1.107 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0007268/1.301, allocations: 456.4 kB / 1.416 GB, free: 15.4 MB / 1.107 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.479e-06/1.301, allocations: 0 / 1.416 GB, free: 15.4 MB / 1.107 GB Notification: Performance of matching and sorting (n=53) (initialization): time 0.0009679/1.302, allocations: 0.5178 MB / 1.417 GB, free: 15.13 MB / 1.107 GB Notification: Performance of prepare postOptimizeDAE: time 2.254e-05/1.302, allocations: 8.781 kB / 1.417 GB, free: 15.13 MB / 1.107 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.827e-06/1.302, allocations: 7 kB / 1.417 GB, free: 15.13 MB / 1.107 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.163e-05/1.302, allocations: 8.375 kB / 1.417 GB, free: 15.12 MB / 1.107 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0007118/1.302, allocations: 126 kB / 1.417 GB, free: 15.09 MB / 1.107 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0003814/1.303, allocations: 0.592 MB / 1.417 GB, free: 14.5 MB / 1.107 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0006193/1.303, allocations: 60.5 kB / 1.417 GB, free: 14.45 MB / 1.107 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.899e-05/1.304, allocations: 19.41 kB / 1.417 GB, free: 14.45 MB / 1.107 GB Notification: Performance of preBalanceInitialSystem (initialization_lambda0): time 0.0005329/1.304, allocations: 349.2 kB / 1.418 GB, free: 14.23 MB / 1.107 GB Notification: Performance of partitionIndependentBlocks (initialization_lambda0): time 0.0004016/1.305, allocations: 280.2 kB / 1.418 GB, free: 14.02 MB / 1.107 GB Notification: Performance of analyzeInitialSystem (initialization_lambda0): time 0.0007116/1.305, allocations: 448.1 kB / 1.418 GB, free: 13.74 MB / 1.107 GB Notification: Performance of solveInitialSystemEqSystem (initialization_lambda0): time 4.258e-06/1.305, allocations: 2.938 kB / 1.418 GB, free: 13.74 MB / 1.107 GB Notification: Performance of matching and sorting (n=53) (initialization_lambda0): time 0.0009217/1.306, allocations: 0.5282 MB / 1.419 GB, free: 13.46 MB / 1.107 GB Notification: Performance of prepare postOptimizeDAE: time 1.015e-05/1.306, allocations: 4.406 kB / 1.419 GB, free: 13.46 MB / 1.107 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.149e-06/1.306, allocations: 5.438 kB / 1.419 GB, free: 13.46 MB / 1.107 GB Notification: Performance of postOpt tearingSystem (initialization): time 7.645e-06/1.306, allocations: 12.72 kB / 1.419 GB, free: 13.46 MB / 1.107 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004889/1.307, allocations: 113.5 kB / 1.419 GB, free: 13.43 MB / 1.107 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.254e-05/1.307, allocations: 9.375 kB / 1.419 GB, free: 13.43 MB / 1.107 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005441/1.307, allocations: 54.25 kB / 1.419 GB, free: 13.39 MB / 1.107 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.911e-05/1.307, allocations: 19.25 kB / 1.419 GB, free: 13.38 MB / 1.107 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.308, allocations: 197.5 kB / 1.419 GB, free: 13.19 MB / 1.107 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001184/1.308, allocations: 61.03 kB / 1.419 GB, free: 13.16 MB / 1.107 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0008998/1.309, allocations: 0.489 MB / 1.42 GB, free: 12.87 MB / 1.107 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.811e-06/1.309, allocations: 2.75 kB / 1.42 GB, free: 12.87 MB / 1.107 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.01e-06/1.309, allocations: 0 / 1.42 GB, free: 12.87 MB / 1.107 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.0007871/1.309, allocations: 0.7055 MB / 1.421 GB, free: 12.24 MB / 1.107 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002141/1.312, allocations: 1.285 MB / 1.422 GB, free: 10.88 MB / 1.107 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.448e-06/1.312, allocations: 0 / 1.422 GB, free: 10.88 MB / 1.107 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0006362/1.312, allocations: 124.1 kB / 1.422 GB, free: 10.76 MB / 1.107 GB Notification: Performance of postOpt tearingSystem (simulation): time 8.947e-06/1.312, allocations: 8 kB / 1.422 GB, free: 10.75 MB / 1.107 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.236e-05/1.312, allocations: 14.36 kB / 1.422 GB, free: 10.74 MB / 1.107 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0003098/1.313, allocations: 0.5937 MB / 1.422 GB, free: 10.12 MB / 1.107 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.238e-06/1.313, allocations: 7.938 kB / 1.422 GB, free: 10.11 MB / 1.107 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.00124/1.314, allocations: 0.79 MB / 1.423 GB, free: 9.281 MB / 1.107 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0003184/1.314, allocations: 188.2 kB / 1.423 GB, free: 9.078 MB / 1.107 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 9.235e-05/1.314, allocations: 15.94 kB / 1.423 GB, free: 9.062 MB / 1.107 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004479/1.315, allocations: 15.98 kB / 1.423 GB, free: 9.047 MB / 1.107 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.241e-05/1.315, allocations: 27.95 kB / 1.424 GB, free: 9.02 MB / 1.107 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.204e-05/1.315, allocations: 16 kB / 1.424 GB, free: 9.004 MB / 1.107 GB Notification: Performance of sorting global known variables: time 0.0003946/1.315, allocations: 354.8 kB / 1.424 GB, free: 8.66 MB / 1.107 GB Notification: Performance of sort global known variables: time 2.51e-07/1.315, allocations: 0 / 1.424 GB, free: 8.66 MB / 1.107 GB Notification: Performance of remove unused functions: time 0.001043/1.316, allocations: 363.1 kB / 1.424 GB, free: 8.305 MB / 1.107 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.0005261/1.317, allocations: 208.3 kB / 1.424 GB, free: 8.105 MB / 1.107 GB Notification: Performance of simCode: created initialization part: time 0.001502/1.318, allocations: 0.679 MB / 1.425 GB, free: 7.426 MB / 1.107 GB Notification: Performance of simCode: created event and clocks part: time 4.598e-06/1.318, allocations: 0 / 1.425 GB, free: 7.426 MB / 1.107 GB Notification: Performance of simCode: created simulation system equations: time 0.0004307/1.319, allocations: 221.1 kB / 1.425 GB, free: 7.211 MB / 1.107 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001734/1.321, allocations: 359.1 kB / 1.426 GB, free: 6.871 MB / 1.107 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002387/1.323, allocations: 1.377 MB / 1.427 GB, free: 5.445 MB / 1.107 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005193/1.323, allocations: 0.9535 MB / 1.428 GB, free: 4.465 MB / 1.107 GB Notification: Performance of simCode: alias equations: time 0.0006403/1.324, allocations: 200.9 kB / 1.428 GB, free: 4.266 MB / 1.107 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001485/1.324, allocations: 47.44 kB / 1.428 GB, free: 4.219 MB / 1.107 GB Notification: Performance of SimCode: time 5.01e-07/1.324, allocations: 0 / 1.428 GB, free: 4.219 MB / 1.107 GB Notification: Performance of Templates: time 0.02328/1.348, allocations: 12.69 MB / 1.441 GB, free: 7.695 MB / 1.123 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