Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_9_Buildings.Media.Specialized.Water.Examples.TemperatureDependentDensityDerivativeCheck.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.Media.Specialized.Water.Examples.TemperatureDependentDensityDerivativeCheck,tolerance=1e-08,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|der.hLiqSym.|der.hLiqCod.|der.cpSym.|der.cpCod.|der.cvSym.|der.cvCod.",fileNamePrefix="Buildings_9_Buildings.Media.Specialized.Water.Examples.TemperatureDependentDensityDerivativeCheck") translateModel(Buildings.Media.Specialized.Water.Examples.TemperatureDependentDensityDerivativeCheck,tolerance=1e-08,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|der.hLiqSym.|der.hLiqCod.|der.cpSym.|der.cpCod.|der.cvSym.|der.cvCod.",fileNamePrefix="Buildings_9_Buildings.Media.Specialized.Water.Examples.TemperatureDependentDensityDerivativeCheck") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001155/0.001155, allocations: 105.6 kB / 15.98 MB, free: 6.336 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.001202/0.001202, allocations: 193.1 kB / 16.91 MB, free: 6.188 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.37/1.37, allocations: 222.9 MB / 240.6 MB, free: 15.43 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.363/2.363, allocations: 390.3 MB / 0.665 GB, free: 0.8438 MB / 0.5294 GB Notification: Performance of FrontEnd - loaded program: time 0.001587/0.001587, allocations: 68.02 kB / 0.8127 GB, free: 33.26 MB / 0.6231 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2998/0.3014, allocations: 140.4 MB / 0.9498 GB, free: 9.223 MB / 0.7325 GB Notification: Performance of NFInst.instantiate(Buildings.Media.Specialized.Water.Examples.TemperatureDependentDensityDerivativeCheck): time 0.002892/0.3043, allocations: 1.331 MB / 0.9511 GB, free: 7.879 MB / 0.7325 GB Notification: Performance of NFInst.instExpressions: time 0.003387/0.3077, allocations: 2.468 MB / 0.9535 GB, free: 5.395 MB / 0.7325 GB Notification: Performance of NFInst.updateImplicitVariability: time 2.89e-05/0.3078, allocations: 0 / 0.9535 GB, free: 5.395 MB / 0.7325 GB Notification: Performance of NFTyping.typeComponents: time 2.225e-05/0.3078, allocations: 15.92 kB / 0.9535 GB, free: 5.379 MB / 0.7325 GB Notification: Performance of NFTyping.typeBindings: time 5.307e-05/0.3079, allocations: 3.984 kB / 0.9535 GB, free: 5.375 MB / 0.7325 GB Notification: Performance of NFTyping.typeClassSections: time 0.0006178/0.3085, allocations: 115.5 kB / 0.9536 GB, free: 5.262 MB / 0.7325 GB Notification: Performance of NFFlatten.flatten: time 7.963e-05/0.3086, allocations: 39.8 kB / 0.9536 GB, free: 5.223 MB / 0.7325 GB Notification: Performance of NFFlatten.resolveConnections: time 4.316e-05/0.3087, allocations: 4 kB / 0.9536 GB, free: 5.219 MB / 0.7325 GB Notification: Performance of NFEvalConstants.evaluate: time 4.883e-05/0.3087, allocations: 23.91 kB / 0.9537 GB, free: 5.195 MB / 0.7325 GB Notification: Performance of NFSimplifyModel.simplify: time 5.906e-05/0.3088, allocations: 15.92 kB / 0.9537 GB, free: 5.18 MB / 0.7325 GB Notification: Performance of NFPackage.collectConstants: time 1.038e-05/0.3088, allocations: 4 kB / 0.9537 GB, free: 5.176 MB / 0.7325 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0003131/0.3091, allocations: 123.7 kB / 0.9538 GB, free: 5.055 MB / 0.7325 GB Notification: Performance of NFScalarize.scalarize: time 1.748e-05/0.3091, allocations: 8 kB / 0.9538 GB, free: 5.047 MB / 0.7325 GB Notification: Performance of NFVerifyModel.verify: time 3.615e-05/0.3092, allocations: 15.92 kB / 0.9538 GB, free: 5.031 MB / 0.7325 GB Notification: Performance of NFConvertDAE.convert: time 0.0001731/0.3094, allocations: 56.14 kB / 0.9539 GB, free: 4.977 MB / 0.7325 GB Notification: Performance of FrontEnd - DAE generated: time 5.771e-06/0.3094, allocations: 4 kB / 0.9539 GB, free: 4.973 MB / 0.7325 GB Notification: Performance of FrontEnd: time 2.244e-06/0.3094, allocations: 0 / 0.9539 GB, free: 4.973 MB / 0.7325 GB Notification: Performance of Transformations before backend: time 8.786e-06/0.3094, allocations: 0 / 0.9539 GB, free: 4.973 MB / 0.7325 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 7 * Number of variables: 7 Notification: Performance of Generate backend data structure: time 0.0004249/0.3098, allocations: 343.5 kB / 0.9542 GB, free: 4.59 MB / 0.7325 GB Notification: Performance of prepare preOptimizeDAE: time 3.776e-05/0.3099, allocations: 12.03 kB / 0.9542 GB, free: 4.578 MB / 0.7325 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002336/0.3101, allocations: 16.92 kB / 0.9542 GB, free: 4.562 MB / 0.7325 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001156/0.3102, allocations: 172.3 kB / 0.9544 GB, free: 4.355 MB / 0.7325 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.249e-05/0.3103, allocations: 384 / 0.9544 GB, free: 4.355 MB / 0.7325 GB Notification: Performance of preOpt expandDerOperator (simulation): time 2.881e-05/0.3103, allocations: 16.27 kB / 0.9544 GB, free: 4.34 MB / 0.7325 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001515/0.3105, allocations: 68.33 kB / 0.9545 GB, free: 4.258 MB / 0.7325 GB Notification: Performance of preOpt findStateOrder (simulation): time 8.977e-06/0.3105, allocations: 0 / 0.9545 GB, free: 4.258 MB / 0.7325 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.787e-05/0.3105, allocations: 12 kB / 0.9545 GB, free: 4.246 MB / 0.7325 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.139e-06/0.3105, allocations: 3.938 kB / 0.9545 GB, free: 4.242 MB / 0.7325 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 4.629e-05/0.3106, allocations: 15.92 kB / 0.9545 GB, free: 4.227 MB / 0.7325 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0006519/0.3112, allocations: 462.9 kB / 0.955 GB, free: 3.711 MB / 0.7325 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001441/0.3114, allocations: 75.66 kB / 0.955 GB, free: 3.609 MB / 0.7325 GB Notification: Performance of preOpt resolveLoops (simulation): time 3.632e-05/0.3114, allocations: 26.7 kB / 0.9551 GB, free: 3.574 MB / 0.7325 GB Notification: Performance of preOpt evalFunc (simulation): time 9.648e-06/0.3114, allocations: 0 / 0.9551 GB, free: 3.574 MB / 0.7325 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.397e-05/0.3115, allocations: 38.5 kB / 0.9551 GB, free: 3.527 MB / 0.7325 GB Notification: Performance of pre-optimization done (n=5): time 1.002e-06/0.3115, allocations: 4 kB / 0.9551 GB, free: 3.523 MB / 0.7325 GB Notification: Performance of matching and sorting (n=7): time 0.0006468/0.3121, allocations: 302.2 kB / 0.9554 GB, free: 3.176 MB / 0.7325 GB Notification: Performance of inlineWhenForInitialization (initialization): time 6.805e-05/0.3122, allocations: 106.8 kB / 0.9555 GB, free: 3.047 MB / 0.7325 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 7.688e-05/0.3123, allocations: 105.8 kB / 0.9556 GB, free: 2.934 MB / 0.7325 GB Notification: Performance of collectPreVariables (initialization): time 1.777e-05/0.3123, allocations: 25.7 kB / 0.9556 GB, free: 2.902 MB / 0.7325 GB Notification: Performance of collectInitialEqns (initialization): time 4.219e-05/0.3124, allocations: 84.3 kB / 0.9557 GB, free: 2.816 MB / 0.7325 GB Notification: Performance of collectInitialBindings (initialization): time 2.437e-05/0.3124, allocations: 31.64 kB / 0.9557 GB, free: 2.785 MB / 0.7325 GB Notification: Performance of simplifyInitialFunctions (initialization): time 3.961e-05/0.3124, allocations: 25.72 kB / 0.9557 GB, free: 2.754 MB / 0.7325 GB Notification: Performance of setup shared object (initialization): time 0.0001066/0.3126, allocations: 314.8 kB / 0.956 GB, free: 2.438 MB / 0.7325 GB Notification: Performance of preBalanceInitialSystem (initialization): time 2.972e-05/0.3126, allocations: 15.98 kB / 0.9561 GB, free: 2.422 MB / 0.7325 GB Notification: Performance of partitionIndependentBlocks (initialization): time 5.46e-05/0.3127, allocations: 53.14 kB / 0.9561 GB, free: 2.352 MB / 0.7325 GB Notification: Performance of analyzeInitialSystem (initialization): time 9.061e-05/0.3127, allocations: 77.55 kB / 0.9562 GB, free: 2.258 MB / 0.7325 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.132e-06/0.3128, allocations: 0 / 0.9562 GB, free: 2.258 MB / 0.7325 GB Notification: Performance of matching and sorting (n=12) (initialization): time 0.0001443/0.3129, allocations: 97.44 kB / 0.9563 GB, free: 2.156 MB / 0.7325 GB Notification: Performance of prepare postOptimizeDAE: time 1.471e-05/0.3129, allocations: 12.06 kB / 0.9563 GB, free: 2.145 MB / 0.7325 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.524e-06/0.3129, allocations: 4 kB / 0.9563 GB, free: 2.141 MB / 0.7325 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.28e-05/0.313, allocations: 3.984 kB / 0.9563 GB, free: 2.137 MB / 0.7325 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 7.686e-05/0.313, allocations: 20 kB / 0.9563 GB, free: 2.117 MB / 0.7325 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.737e-06/0.3131, allocations: 7.938 kB / 0.9563 GB, free: 2.109 MB / 0.7325 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 3.974e-05/0.3131, allocations: 4 kB / 0.9563 GB, free: 2.105 MB / 0.7325 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.374e-06/0.3131, allocations: 4 kB / 0.9563 GB, free: 2.102 MB / 0.7325 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 6 * 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 (12): * Single equations (assignments): 12 * 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 8.113e-05/0.3132, allocations: 115.8 kB / 0.9564 GB, free: 1.98 MB / 0.7325 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.122e-05/0.3133, allocations: 11.92 kB / 0.9565 GB, free: 1.969 MB / 0.7325 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.06e-05/0.3133, allocations: 11.56 kB / 0.9565 GB, free: 1.957 MB / 0.7325 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.175e-06/0.3133, allocations: 4 kB / 0.9565 GB, free: 1.953 MB / 0.7325 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.678e-06/0.3133, allocations: 0 / 0.9565 GB, free: 1.953 MB / 0.7325 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.196e-06/0.3133, allocations: 64 / 0.9565 GB, free: 1.953 MB / 0.7325 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003395/0.3137, allocations: 189.5 kB / 0.9567 GB, free: 1.719 MB / 0.7325 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.154e-06/0.3137, allocations: 0 / 0.9567 GB, free: 1.719 MB / 0.7325 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 9.02e-05/0.3138, allocations: 15.98 kB / 0.9567 GB, free: 1.703 MB / 0.7325 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.464e-06/0.3138, allocations: 0 / 0.9567 GB, free: 1.703 MB / 0.7325 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.129e-05/0.3138, allocations: 4 kB / 0.9567 GB, free: 1.699 MB / 0.7325 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.424e-06/0.3138, allocations: 3.938 kB / 0.9567 GB, free: 1.695 MB / 0.7325 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.543e-06/0.3138, allocations: 0 / 0.9567 GB, free: 1.695 MB / 0.7325 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002607/0.3141, allocations: 334.1 kB / 0.957 GB, free: 1.352 MB / 0.7325 GB Notification: Performance of postOpt removeConstants (simulation): time 5.706e-05/0.3142, allocations: 85.02 kB / 0.9571 GB, free: 1.25 MB / 0.7325 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.628e-05/0.3142, allocations: 0 / 0.9571 GB, free: 1.25 MB / 0.7325 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001823/0.3144, allocations: 7.984 kB / 0.9571 GB, free: 1.242 MB / 0.7325 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.044e-05/0.3144, allocations: 7.938 kB / 0.9571 GB, free: 1.234 MB / 0.7325 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.212e-05/0.3144, allocations: 11.94 kB / 0.9571 GB, free: 1.223 MB / 0.7325 GB Notification: Performance of sorting global known variables: time 3.652e-05/0.3145, allocations: 79.28 kB / 0.9572 GB, free: 1.145 MB / 0.7325 GB Notification: Performance of sort global known variables: time 1.3e-07/0.3145, allocations: 0 / 0.9572 GB, free: 1.145 MB / 0.7325 GB Notification: Performance of remove unused functions: time 0.0003307/0.3148, allocations: 16 kB / 0.9572 GB, free: 1.129 MB / 0.7325 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 3 * Number of states: 3 (hLiqSym,cpSym,cvSym) * 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 (7): * Single equations (assignments): 7 * 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.0001169/0.3149, allocations: 103.2 kB / 0.9573 GB, free: 1.02 MB / 0.7325 GB Notification: Performance of simCode: created initialization part: time 0.0001771/0.3151, allocations: 48.11 kB / 0.9573 GB, free: 0.9727 MB / 0.7325 GB Notification: Performance of simCode: created event and clocks part: time 2.655e-06/0.3151, allocations: 0 / 0.9573 GB, free: 0.9727 MB / 0.7325 GB Notification: Performance of simCode: created simulation system equations: time 2.849e-05/0.3151, allocations: 19.94 kB / 0.9574 GB, free: 0.9531 MB / 0.7325 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000436/0.3156, allocations: 13.11 kB / 0.9574 GB, free: 0.9414 MB / 0.7325 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0006772/0.3163, allocations: 385 kB / 0.9577 GB, free: 0.5312 MB / 0.7325 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003667/0.3166, allocations: 0.6846 MB / 0.9584 GB, free: 15.82 MB / 0.7481 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.038e-05/0.3167, allocations: 11.44 kB / 0.9584 GB, free: 15.81 MB / 0.7481 GB Notification: Performance of SimCode: time 2.224e-06/0.3167, allocations: 4 kB / 0.9584 GB, free: 15.8 MB / 0.7481 GB Notification: Performance of Templates: time 0.002134/0.3188, allocations: 0.7837 MB / 0.9592 GB, free: 15.03 MB / 0.7481 GB make -j1 -f Buildings_9_Buildings.Media.Specialized.Water.Examples.TemperatureDependentDensityDerivativeCheck.makefile (rm -f Buildings_9_Buildings.Media.Specialized.Water.Examples.TemperatureDependentDensityDerivativeCheck.pipe ; mkfifo Buildings_9_Buildings.Media.Specialized.Water.Examples.TemperatureDependentDensityDerivativeCheck.pipe ; head -c 1048576 < Buildings_9_Buildings.Media.Specialized.Water.Examples.TemperatureDependentDensityDerivativeCheck.pipe >> ../files/Buildings_9_Buildings.Media.Specialized.Water.Examples.TemperatureDependentDensityDerivativeCheck.sim & ./Buildings_9_Buildings.Media.Specialized.Water.Examples.TemperatureDependentDensityDerivativeCheck -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Buildings_9_Buildings.Media.Specialized.Water.Examples.TemperatureDependentDensityDerivativeCheck.pipe 2>&1) diffSimulationResults("Buildings_9_Buildings.Media.Specialized.Water.Examples.TemperatureDependentDensityDerivativeCheck_res.mat","/mnt/ReferenceFiles/Buildings/csv/maint_9.1.x/Buildings_Media_Specialized_Water_Examples_TemperatureDependentDensityDerivativeCheck.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_9_Buildings.Media.Specialized.Water.Examples.TemperatureDependentDensityDerivativeCheck.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches