Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_9_Buildings.Media.Specialized.Water.Examples.TemperatureDependentDensityProperties.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.2-maint.9.1.x/package.mo", uses=false) Using package Buildings with version 9.1.2 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.1.2-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.Media.Specialized.Water.Examples.TemperatureDependentDensityProperties,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|p|X.1.|d|eta|h|u|s|g|f|hIse|beta|kappa|ddpT|ddTp|dddX.1.|cp|cv|lambda|pMed|TMed|MM",fileNamePrefix="Buildings_9_Buildings.Media.Specialized.Water.Examples.TemperatureDependentDensityProperties") translateModel(Buildings.Media.Specialized.Water.Examples.TemperatureDependentDensityProperties,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|p|X.1.|d|eta|h|u|s|g|f|hIse|beta|kappa|ddpT|ddTp|dddX.1.|cp|cv|lambda|pMed|TMed|MM",fileNamePrefix="Buildings_9_Buildings.Media.Specialized.Water.Examples.TemperatureDependentDensityProperties") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001086/0.001086, allocations: 111 kB / 16.37 MB, free: 6.012 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.001078/0.001078, allocations: 190.1 kB / 17.31 MB, free: 5.613 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.423/1.423, allocations: 222.9 MB / 241 MB, free: 15.18 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.1.2-maint.9.1.x/package.mo): time 2.29/2.29, allocations: 390.3 MB / 0.6655 GB, free: 0.6094 MB / 0.5294 GB Notification: Performance of FrontEnd - loaded program: time 0.002511/0.002511, allocations: 63.67 kB / 0.814 GB, free: 32.71 MB / 0.6231 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3173/0.3198, allocations: 140.4 MB / 0.9511 GB, free: 8.059 MB / 0.7325 GB Notification: Performance of NFInst.instantiate(Buildings.Media.Specialized.Water.Examples.TemperatureDependentDensityProperties): time 0.007668/0.3276, allocations: 4.045 MB / 0.9551 GB, free: 3.988 MB / 0.7325 GB Notification: Performance of NFInst.instExpressions: time 0.003747/0.3313, allocations: 2.426 MB / 0.9574 GB, free: 1.555 MB / 0.7325 GB Notification: Performance of NFInst.updateImplicitVariability: time 9.76e-05/0.3315, allocations: 0 / 0.9574 GB, free: 1.555 MB / 0.7325 GB Notification: Performance of NFTyping.typeComponents: time 0.0003093/0.3318, allocations: 51.67 kB / 0.9575 GB, free: 1.504 MB / 0.7325 GB Notification: Performance of NFTyping.typeBindings: time 0.0003477/0.3322, allocations: 95.36 kB / 0.9576 GB, free: 1.41 MB / 0.7325 GB Notification: Performance of NFTyping.typeClassSections: time 0.001818/0.334, allocations: 0.5284 MB / 0.9581 GB, free: 0.8828 MB / 0.7325 GB Notification: Performance of NFFlatten.flatten: time 0.0004208/0.3345, allocations: 259.9 kB / 0.9584 GB, free: 0.6289 MB / 0.7325 GB Notification: Performance of NFFlatten.resolveConnections: time 5.953e-05/0.3345, allocations: 13.55 kB / 0.9584 GB, free: 0.6133 MB / 0.7325 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0002675/0.3348, allocations: 115.5 kB / 0.9585 GB, free: 0.5 MB / 0.7325 GB Notification: Performance of NFSimplifyModel.simplify: time 0.000182/0.335, allocations: 99.59 kB / 0.9586 GB, free: 412 kB / 0.7325 GB Notification: Performance of NFPackage.collectConstants: time 2.749e-05/0.3351, allocations: 8 kB / 0.9586 GB, free: 404 kB / 0.7325 GB Notification: Performance of NFFlatten.collectFunctions: time 0.001112/0.3362, allocations: 459.2 kB / 0.959 GB, free: 15.95 MB / 0.7481 GB Notification: Performance of NFScalarize.scalarize: time 8.911e-05/0.3363, allocations: 39.88 kB / 0.9591 GB, free: 15.91 MB / 0.7481 GB Notification: Performance of NFVerifyModel.verify: time 0.0001269/0.3364, allocations: 83.66 kB / 0.9591 GB, free: 15.82 MB / 0.7481 GB Notification: Performance of NFConvertDAE.convert: time 0.0008299/0.3373, allocations: 410.9 kB / 0.9595 GB, free: 15.42 MB / 0.7481 GB Notification: Performance of FrontEnd - DAE generated: time 4.238e-06/0.3373, allocations: 0 / 0.9595 GB, free: 15.42 MB / 0.7481 GB Notification: Performance of FrontEnd: time 1.523e-06/0.3373, allocations: 0 / 0.9595 GB, free: 15.42 MB / 0.7481 GB Notification: Performance of Transformations before backend: time 5.821e-06/0.3373, allocations: 0 / 0.9595 GB, free: 15.42 MB / 0.7481 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 39 * Number of variables: 39 Notification: Performance of Generate backend data structure: time 0.0009502/0.3383, allocations: 0.5031 MB / 0.96 GB, free: 14.87 MB / 0.7481 GB Notification: Performance of prepare preOptimizeDAE: time 4.184e-05/0.3383, allocations: 8.031 kB / 0.96 GB, free: 14.86 MB / 0.7481 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.003188/0.3415, allocations: 180.5 kB / 0.9602 GB, free: 14.68 MB / 0.7481 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003548/0.3419, allocations: 208.1 kB / 0.9604 GB, free: 14.44 MB / 0.7481 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.932e-05/0.3419, allocations: 16.7 kB / 0.9604 GB, free: 14.43 MB / 0.7481 GB Notification: Performance of preOpt expandDerOperator (simulation): time 5.484e-05/0.342, allocations: 12.38 kB / 0.9604 GB, free: 14.41 MB / 0.7481 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0009016/0.3429, allocations: 316.3 kB / 0.9607 GB, free: 14.07 MB / 0.7481 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.424e-05/0.3429, allocations: 0 / 0.9607 GB, free: 14.07 MB / 0.7481 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.54e-05/0.343, allocations: 12 kB / 0.9607 GB, free: 14.06 MB / 0.7481 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.509e-05/0.343, allocations: 4 kB / 0.9607 GB, free: 14.05 MB / 0.7481 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001037/0.3441, allocations: 267.5 kB / 0.961 GB, free: 13.79 MB / 0.7481 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002296/0.3464, allocations: 1.389 MB / 0.9624 GB, free: 12.29 MB / 0.7481 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0009848/0.3474, allocations: 194.4 kB / 0.9625 GB, free: 12.09 MB / 0.7481 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.000318/0.3477, allocations: 80.8 kB / 0.9626 GB, free: 12.01 MB / 0.7481 GB Notification: Performance of preOpt evalFunc (simulation): time 3.968e-05/0.3478, allocations: 3.984 kB / 0.9626 GB, free: 12 MB / 0.7481 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.2e-05/0.3478, allocations: 38.56 kB / 0.9627 GB, free: 11.96 MB / 0.7481 GB Notification: Performance of pre-optimization done (n=18): time 1.954e-06/0.3478, allocations: 0 / 0.9627 GB, free: 11.96 MB / 0.7481 GB Notification: Performance of matching and sorting (n=18): time 0.001065/0.3489, allocations: 251.9 kB / 0.9629 GB, free: 11.71 MB / 0.7481 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.114e-05/0.349, allocations: 51.41 kB / 0.9629 GB, free: 11.64 MB / 0.7481 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002311/0.3492, allocations: 155.3 kB / 0.9631 GB, free: 11.48 MB / 0.7481 GB Notification: Performance of collectPreVariables (initialization): time 3.935e-05/0.3492, allocations: 33.7 kB / 0.9631 GB, free: 11.45 MB / 0.7481 GB Notification: Performance of collectInitialEqns (initialization): time 9.399e-05/0.3493, allocations: 124 kB / 0.9632 GB, free: 11.32 MB / 0.7481 GB Notification: Performance of collectInitialBindings (initialization): time 0.000154/0.3495, allocations: 63.09 kB / 0.9633 GB, free: 11.26 MB / 0.7481 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001285/0.3496, allocations: 57.83 kB / 0.9634 GB, free: 11.19 MB / 0.7481 GB Notification: Performance of setup shared object (initialization): time 0.0001526/0.3498, allocations: 326.8 kB / 0.9637 GB, free: 10.86 MB / 0.7481 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002836/0.3501, allocations: 60.41 kB / 0.9637 GB, free: 10.8 MB / 0.7481 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003558/0.3505, allocations: 142.3 kB / 0.9639 GB, free: 10.63 MB / 0.7481 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0007176/0.3512, allocations: 225.1 kB / 0.9641 GB, free: 10.38 MB / 0.7481 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.647e-06/0.3512, allocations: 0 / 0.9641 GB, free: 10.38 MB / 0.7481 GB Notification: Performance of matching and sorting (n=28) (initialization): time 0.0008697/0.3521, allocations: 243.8 kB / 0.9643 GB, free: 10.14 MB / 0.7481 GB Notification: Performance of prepare postOptimizeDAE: time 2.318e-05/0.3521, allocations: 7.984 kB / 0.9643 GB, free: 10.13 MB / 0.7481 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.418e-06/0.3521, allocations: 4 kB / 0.9643 GB, free: 10.12 MB / 0.7481 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.081e-05/0.3522, allocations: 7.938 kB / 0.9643 GB, free: 10.12 MB / 0.7481 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005341/0.3527, allocations: 63.89 kB / 0.9644 GB, free: 10.05 MB / 0.7481 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.84e-05/0.3528, allocations: 11.92 kB / 0.9644 GB, free: 10.04 MB / 0.7481 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003526/0.3531, allocations: 32.02 kB / 0.9644 GB, free: 10.01 MB / 0.7481 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.49e-05/0.3532, allocations: 12 kB / 0.9644 GB, free: 10 MB / 0.7481 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 11 * 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 (28): * Single equations (assignments): 28 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0001865/0.3534, allocations: 135.6 kB / 0.9646 GB, free: 9.859 MB / 0.7481 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.565e-05/0.3535, allocations: 19.81 kB / 0.9646 GB, free: 9.84 MB / 0.7481 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0009149/0.3544, allocations: 224.6 kB / 0.9648 GB, free: 9.617 MB / 0.7481 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.624e-06/0.3544, allocations: 4 kB / 0.9648 GB, free: 9.613 MB / 0.7481 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.568e-06/0.3544, allocations: 0 / 0.9648 GB, free: 9.613 MB / 0.7481 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.724e-06/0.3544, allocations: 7.922 kB / 0.9648 GB, free: 9.605 MB / 0.7481 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0004451/0.3549, allocations: 245.4 kB / 0.9651 GB, free: 9.316 MB / 0.7481 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.224e-06/0.3549, allocations: 4 kB / 0.9651 GB, free: 9.312 MB / 0.7481 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004435/0.3554, allocations: 55.89 kB / 0.9651 GB, free: 9.258 MB / 0.7481 GB Notification: Performance of postOpt tearingSystem (simulation): time 5.36e-06/0.3554, allocations: 0 / 0.9651 GB, free: 9.258 MB / 0.7481 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.456e-05/0.3554, allocations: 0 / 0.9651 GB, free: 9.258 MB / 0.7481 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 7.775e-06/0.3554, allocations: 4 kB / 0.9651 GB, free: 9.254 MB / 0.7481 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.723e-06/0.3554, allocations: 4 kB / 0.9651 GB, free: 9.25 MB / 0.7481 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0008402/0.3563, allocations: 297.2 kB / 0.9654 GB, free: 8.945 MB / 0.7481 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0001528/0.3565, allocations: 105 kB / 0.9655 GB, free: 8.824 MB / 0.7481 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.252e-05/0.3565, allocations: 4 kB / 0.9655 GB, free: 8.82 MB / 0.7481 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003455/0.3569, allocations: 15.98 kB / 0.9655 GB, free: 8.805 MB / 0.7481 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.55e-05/0.3569, allocations: 7.984 kB / 0.9655 GB, free: 8.797 MB / 0.7481 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.965e-05/0.357, allocations: 15.94 kB / 0.9655 GB, free: 8.781 MB / 0.7481 GB Notification: Performance of sorting global known variables: time 0.000124/0.3571, allocations: 121.1 kB / 0.9657 GB, free: 8.664 MB / 0.7481 GB Notification: Performance of sort global known variables: time 1.91e-07/0.3571, allocations: 0 / 0.9657 GB, free: 8.664 MB / 0.7481 GB Notification: Performance of remove unused functions: time 0.0005573/0.3577, allocations: 68.03 kB / 0.9657 GB, free: 8.598 MB / 0.7481 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * 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 simulation (20): * Single equations (assignments): 20 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0002971/0.358, allocations: 139.1 kB / 0.9659 GB, free: 8.449 MB / 0.7481 GB Notification: Performance of simCode: created initialization part: time 0.000757/0.3587, allocations: 175.8 kB / 0.966 GB, free: 8.277 MB / 0.7481 GB Notification: Performance of simCode: created event and clocks part: time 3.858e-06/0.3588, allocations: 0 / 0.966 GB, free: 8.277 MB / 0.7481 GB Notification: Performance of simCode: created simulation system equations: time 0.0003191/0.3591, allocations: 88.52 kB / 0.9661 GB, free: 8.191 MB / 0.7481 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006501/0.3597, allocations: 63.83 kB / 0.9662 GB, free: 8.129 MB / 0.7481 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001329/0.3611, allocations: 407 kB / 0.9666 GB, free: 7.707 MB / 0.7481 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003831/0.3615, allocations: 0.7212 MB / 0.9673 GB, free: 6.961 MB / 0.7481 GB Notification: Performance of simCode: alias equations: time 0.0003635/0.3619, allocations: 49.92 kB / 0.9673 GB, free: 6.914 MB / 0.7481 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001297/0.362, allocations: 27.42 kB / 0.9673 GB, free: 6.887 MB / 0.7481 GB Notification: Performance of SimCode: time 4.027e-06/0.362, allocations: 0 / 0.9673 GB, free: 6.887 MB / 0.7481 GB Notification: Performance of Templates: time 0.007907/0.3699, allocations: 3.386 MB / 0.9706 GB, free: 3.547 MB / 0.7481 GB make -j1 -f Buildings_9_Buildings.Media.Specialized.Water.Examples.TemperatureDependentDensityProperties.makefile (rm -f Buildings_9_Buildings.Media.Specialized.Water.Examples.TemperatureDependentDensityProperties.pipe ; mkfifo Buildings_9_Buildings.Media.Specialized.Water.Examples.TemperatureDependentDensityProperties.pipe ; head -c 1048576 < Buildings_9_Buildings.Media.Specialized.Water.Examples.TemperatureDependentDensityProperties.pipe >> ../files/Buildings_9_Buildings.Media.Specialized.Water.Examples.TemperatureDependentDensityProperties.sim & ./Buildings_9_Buildings.Media.Specialized.Water.Examples.TemperatureDependentDensityProperties -abortSlowSimulation -alarm=480 -s cvode -emit_protected -lv LOG_STATS > Buildings_9_Buildings.Media.Specialized.Water.Examples.TemperatureDependentDensityProperties.pipe 2>&1) diffSimulationResults("Buildings_9_Buildings.Media.Specialized.Water.Examples.TemperatureDependentDensityProperties_res.mat","/mnt/ReferenceFiles/Buildings/csv/maint_9.1.x/Buildings_Media_Specialized_Water_Examples_TemperatureDependentDensityProperties.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_9_Buildings.Media.Specialized.Water.Examples.TemperatureDependentDensityProperties.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches