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.001191/0.001191, allocations: 108.7 kB / 16.41 MB, free: 6.027 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.001264/0.001264, allocations: 186.2 kB / 17.34 MB, free: 5.633 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.357/1.357, allocations: 222.9 MB / 241 MB, free: 15.16 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.218/2.218, allocations: 390.3 MB / 0.6655 GB, free: 0.6484 MB / 0.5294 GB Notification: Performance of FrontEnd - loaded program: time 0.001678/0.001678, allocations: 67.89 kB / 0.9516 GB, free: 7.621 MB / 0.7325 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.9848/0.9865, allocations: 140.4 MB / 1.089 GB, free: 5.781 MB / 0.8575 GB Notification: Performance of NFInst.instantiate(Buildings.Fluid.Sensors.Examples.Density): time 0.2427/1.229, allocations: 185.1 MB / 1.269 GB, free: 4.762 MB / 0.9981 GB Notification: Performance of NFInst.instExpressions: time 0.01138/1.241, allocations: 6.983 MB / 1.276 GB, free: 13.76 MB / 1.014 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.001481/1.242, allocations: 31.81 kB / 1.276 GB, free: 13.73 MB / 1.014 GB Notification: Performance of NFTyping.typeComponents: time 0.001559/1.244, allocations: 401.5 kB / 1.277 GB, free: 13.33 MB / 1.014 GB Notification: Performance of NFTyping.typeBindings: time 0.004554/1.248, allocations: 1.505 MB / 1.278 GB, free: 11.82 MB / 1.014 GB Notification: Performance of NFTyping.typeClassSections: time 0.003598/1.252, allocations: 1.18 MB / 1.279 GB, free: 10.64 MB / 1.014 GB Notification: Performance of NFFlatten.flatten: time 0.003246/1.255, allocations: 1.941 MB / 1.281 GB, free: 8.699 MB / 1.014 GB Notification: Performance of NFFlatten.resolveConnections: time 0.001343/1.257, allocations: 0.6628 MB / 1.282 GB, free: 8.027 MB / 1.014 GB Notification: Performance of NFEvalConstants.evaluate: time 0.00221/1.259, allocations: 0.8523 MB / 1.283 GB, free: 7.172 MB / 1.014 GB Notification: Performance of NFSimplifyModel.simplify: time 0.001825/1.261, allocations: 0.6041 MB / 1.283 GB, free: 6.57 MB / 1.014 GB Notification: Performance of NFPackage.collectConstants: time 0.0002547/1.261, allocations: 68 kB / 1.283 GB, free: 6.504 MB / 1.014 GB Notification: Performance of NFFlatten.collectFunctions: time 0.004307/1.265, allocations: 1.941 MB / 1.285 GB, free: 4.559 MB / 1.014 GB Notification: Performance of NFScalarize.scalarize: time 0.0005367/1.266, allocations: 287.2 kB / 1.285 GB, free: 4.277 MB / 1.014 GB Notification: Performance of NFVerifyModel.verify: time 0.0009937/1.267, allocations: 434 kB / 1.286 GB, free: 3.852 MB / 1.014 GB Notification: Performance of NFConvertDAE.convert: time 0.004277/1.271, allocations: 1.757 MB / 1.288 GB, free: 2.09 MB / 1.014 GB Notification: Performance of FrontEnd - DAE generated: time 6.222e-06/1.271, allocations: 0 / 1.288 GB, free: 2.09 MB / 1.014 GB Notification: Performance of FrontEnd: time 3.537e-06/1.271, allocations: 0 / 1.288 GB, free: 2.09 MB / 1.014 GB Notification: Performance of Transformations before backend: time 3.578e-05/1.271, allocations: 7.938 kB / 1.288 GB, free: 2.082 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.002621/1.274, allocations: 1.149 MB / 1.289 GB, free: 0.8828 MB / 1.014 GB Notification: Performance of prepare preOptimizeDAE: time 4.354e-05/1.274, allocations: 8.031 kB / 1.289 GB, free: 0.875 MB / 1.014 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.00204/1.276, allocations: 278.7 kB / 1.289 GB, free: 0.6016 MB / 1.014 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001222/1.277, allocations: 0.6066 MB / 1.29 GB, free: 15.95 MB / 1.029 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.554e-05/1.277, allocations: 49.31 kB / 1.29 GB, free: 15.9 MB / 1.029 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001136/1.277, allocations: 52 kB / 1.29 GB, free: 15.85 MB / 1.029 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001254/1.279, allocations: 0.6361 MB / 1.29 GB, free: 15.2 MB / 1.029 GB Notification: Performance of preOpt findStateOrder (simulation): time 2.108e-05/1.279, allocations: 3.938 kB / 1.29 GB, free: 15.2 MB / 1.029 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.858e-05/1.279, allocations: 24 kB / 1.29 GB, free: 15.17 MB / 1.029 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.049e-05/1.279, allocations: 17.31 kB / 1.29 GB, free: 15.16 MB / 1.029 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001021/1.28, allocations: 0.5282 MB / 1.291 GB, free: 14.63 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.003556/1.283, allocations: 2.449 MB / 1.293 GB, free: 11.96 MB / 1.029 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0007097/1.284, allocations: 359.5 kB / 1.294 GB, free: 11.61 MB / 1.029 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004051/1.285, allocations: 233.4 kB / 1.294 GB, free: 11.38 MB / 1.029 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0005635/1.285, allocations: 307.6 kB / 1.294 GB, free: 11.02 MB / 1.029 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.728e-05/1.285, allocations: 42.83 kB / 1.294 GB, free: 10.97 MB / 1.029 GB Notification: Performance of pre-optimization done (n=39): time 2.194e-06/1.285, allocations: 0 / 1.294 GB, free: 10.97 MB / 1.029 GB Notification: Performance of matching and sorting (n=39): time 0.001457/1.287, allocations: 0.6186 MB / 1.295 GB, free: 10.34 MB / 1.029 GB Notification: Performance of inlineWhenForInitialization (initialization): time 5.026e-05/1.287, allocations: 63.34 kB / 1.295 GB, free: 10.27 MB / 1.029 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0006555/1.287, allocations: 499 kB / 1.295 GB, free: 9.773 MB / 1.029 GB Notification: Performance of collectPreVariables (initialization): time 4.875e-05/1.287, allocations: 33.7 kB / 1.295 GB, free: 9.734 MB / 1.029 GB Notification: Performance of collectInitialEqns (initialization): time 0.0002642/1.288, allocations: 336.4 kB / 1.296 GB, free: 9.398 MB / 1.029 GB Notification: Performance of collectInitialBindings (initialization): time 0.0001482/1.288, allocations: 138 kB / 1.296 GB, free: 9.262 MB / 1.029 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001519/1.288, allocations: 90.12 kB / 1.296 GB, free: 9.168 MB / 1.029 GB Notification: Performance of setup shared object (initialization): time 0.0001724/1.288, allocations: 370.7 kB / 1.296 GB, free: 8.797 MB / 1.029 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003608/1.289, allocations: 174.5 kB / 1.296 GB, free: 8.625 MB / 1.029 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000425/1.289, allocations: 283.3 kB / 1.297 GB, free: 8.305 MB / 1.029 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0007314/1.29, allocations: 452.3 kB / 1.297 GB, free: 7.832 MB / 1.029 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.422e-06/1.29, allocations: 4 kB / 1.297 GB, free: 7.828 MB / 1.029 GB Notification: Performance of matching and sorting (n=53) (initialization): time 0.001008/1.291, allocations: 0.5239 MB / 1.298 GB, free: 7.297 MB / 1.029 GB Notification: Performance of prepare postOptimizeDAE: time 2.295e-05/1.291, allocations: 4 kB / 1.298 GB, free: 7.293 MB / 1.029 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.377e-06/1.291, allocations: 7.938 kB / 1.298 GB, free: 7.285 MB / 1.029 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.041e-05/1.291, allocations: 4 kB / 1.298 GB, free: 7.281 MB / 1.029 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0007257/1.292, allocations: 136.1 kB / 1.298 GB, free: 7.148 MB / 1.029 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0004324/1.292, allocations: 0.6015 MB / 1.298 GB, free: 6.523 MB / 1.029 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0006104/1.293, allocations: 51.52 kB / 1.298 GB, free: 6.473 MB / 1.029 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.464e-05/1.293, allocations: 23.98 kB / 1.298 GB, free: 6.449 MB / 1.029 GB Notification: Performance of preBalanceInitialSystem (initialization_lambda0): time 0.000562/1.293, allocations: 356.9 kB / 1.299 GB, free: 6.098 MB / 1.029 GB Notification: Performance of partitionIndependentBlocks (initialization_lambda0): time 0.000428/1.294, allocations: 275.4 kB / 1.299 GB, free: 5.793 MB / 1.029 GB Notification: Performance of analyzeInitialSystem (initialization_lambda0): time 0.0007141/1.294, allocations: 452.6 kB / 1.299 GB, free: 5.32 MB / 1.029 GB Notification: Performance of solveInitialSystemEqSystem (initialization_lambda0): time 2.595e-06/1.294, allocations: 0 / 1.299 GB, free: 5.32 MB / 1.029 GB Notification: Performance of matching and sorting (n=53) (initialization_lambda0): time 0.0009572/1.295, allocations: 0.5281 MB / 1.3 GB, free: 4.785 MB / 1.029 GB Notification: Performance of prepare postOptimizeDAE: time 1.215e-05/1.295, allocations: 8 kB / 1.3 GB, free: 4.777 MB / 1.029 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.431e-06/1.295, allocations: 4 kB / 1.3 GB, free: 4.773 MB / 1.029 GB Notification: Performance of postOpt tearingSystem (initialization): time 9.888e-06/1.295, allocations: 11.92 kB / 1.3 GB, free: 4.762 MB / 1.029 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005098/1.296, allocations: 115.9 kB / 1.3 GB, free: 4.648 MB / 1.029 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.102e-05/1.296, allocations: 7.938 kB / 1.3 GB, free: 4.641 MB / 1.029 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000563/1.297, allocations: 39.67 kB / 1.3 GB, free: 4.602 MB / 1.029 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.378e-05/1.297, allocations: 20 kB / 1.3 GB, free: 4.582 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.0002023/1.297, allocations: 204.2 kB / 1.3 GB, free: 4.375 MB / 1.029 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001371/1.297, allocations: 63.19 kB / 1.3 GB, free: 4.312 MB / 1.029 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0009522/1.298, allocations: 484 kB / 1.301 GB, free: 3.828 MB / 1.029 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.777e-06/1.298, allocations: 7.984 kB / 1.301 GB, free: 3.82 MB / 1.029 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.189e-06/1.298, allocations: 0 / 1.301 GB, free: 3.82 MB / 1.029 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.0008228/1.299, allocations: 0.7069 MB / 1.302 GB, free: 3.027 MB / 1.029 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002172/1.301, allocations: 1.288 MB / 1.303 GB, free: 1.66 MB / 1.029 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.867e-06/1.301, allocations: 0 / 1.303 GB, free: 1.66 MB / 1.029 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0006367/1.302, allocations: 127.8 kB / 1.303 GB, free: 1.535 MB / 1.029 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.102e-05/1.302, allocations: 4 kB / 1.303 GB, free: 1.531 MB / 1.029 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.145e-05/1.302, allocations: 8 kB / 1.303 GB, free: 1.523 MB / 1.029 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0004047/1.302, allocations: 0.598 MB / 1.303 GB, free: 0.9023 MB / 1.029 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.672e-06/1.302, allocations: 7.938 kB / 1.303 GB, free: 0.8945 MB / 1.029 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001273/1.303, allocations: 0.7823 MB / 1.304 GB, free: 76 kB / 1.029 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0003056/1.304, allocations: 184.3 kB / 1.304 GB, free: 15.88 MB / 1.045 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001247/1.304, allocations: 23.8 kB / 1.304 GB, free: 15.85 MB / 1.045 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004633/1.304, allocations: 23.98 kB / 1.304 GB, free: 15.83 MB / 1.045 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.401e-05/1.304, allocations: 23.97 kB / 1.304 GB, free: 15.8 MB / 1.045 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.761e-05/1.305, allocations: 19.98 kB / 1.305 GB, free: 15.79 MB / 1.045 GB Notification: Performance of sorting global known variables: time 0.0004428/1.305, allocations: 346.8 kB / 1.305 GB, free: 15.45 MB / 1.045 GB Notification: Performance of sort global known variables: time 1.4e-07/1.305, allocations: 0 / 1.305 GB, free: 15.45 MB / 1.045 GB Notification: Performance of remove unused functions: time 0.00104/1.306, allocations: 359.2 kB / 1.305 GB, free: 15.1 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.0005468/1.307, allocations: 211.2 kB / 1.305 GB, free: 14.89 MB / 1.045 GB Notification: Performance of simCode: created initialization part: time 0.001525/1.308, allocations: 0.6755 MB / 1.306 GB, free: 14.21 MB / 1.045 GB Notification: Performance of simCode: created event and clocks part: time 5.38e-06/1.308, allocations: 0 / 1.306 GB, free: 14.21 MB / 1.045 GB Notification: Performance of simCode: created simulation system equations: time 0.0004453/1.309, allocations: 219.7 kB / 1.306 GB, free: 14 MB / 1.045 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001664/1.31, allocations: 369.8 kB / 1.307 GB, free: 13.65 MB / 1.045 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002615/1.313, allocations: 1.424 MB / 1.308 GB, free: 12.17 MB / 1.045 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0006392/1.314, allocations: 0.9418 MB / 1.309 GB, free: 11.2 MB / 1.045 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001874/1.314, allocations: 55.44 kB / 1.309 GB, free: 11.15 MB / 1.045 GB Notification: Performance of SimCode: time 9.42e-07/1.314, allocations: 0 / 1.309 GB, free: 11.15 MB / 1.045 GB Notification: Performance of Templates: time 0.02053/1.334, allocations: 13.04 MB / 1.322 GB, free: 14.2 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/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_9_Buildings.Fluid.Sensors.Examples.Density.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches