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.001578/0.001578, allocations: 100.1 kB / 16.27 MB, free: 6.414 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.001843/0.001843, allocations: 188.7 kB / 17.2 MB, free: 5.953 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 / 240.9 MB, free: 15.23 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.254/2.254, allocations: 390.2 MB / 0.6653 GB, free: 0.6758 MB / 0.5294 GB Notification: Performance of FrontEnd - loaded program: time 0.00136/0.00136, allocations: 64.47 kB / 0.8132 GB, free: 33.05 MB / 0.6231 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3035/0.3049, allocations: 140.4 MB / 0.9503 GB, free: 8.824 MB / 0.7325 GB Notification: Performance of NFInst.instantiate(Buildings.Media.Specialized.Water.Examples.TemperatureDependentDensityDerivativeCheck): time 0.003028/0.308, allocations: 1.264 MB / 0.9515 GB, free: 7.543 MB / 0.7325 GB Notification: Performance of NFInst.instExpressions: time 0.003525/0.3115, allocations: 2.49 MB / 0.9539 GB, free: 5.039 MB / 0.7325 GB Notification: Performance of NFInst.updateImplicitVariability: time 3.113e-05/0.3116, allocations: 0 / 0.9539 GB, free: 5.039 MB / 0.7325 GB Notification: Performance of NFTyping.typeComponents: time 1.763e-05/0.3116, allocations: 0 / 0.9539 GB, free: 5.039 MB / 0.7325 GB Notification: Performance of NFTyping.typeBindings: time 5.7e-05/0.3117, allocations: 15.91 kB / 0.9539 GB, free: 5.023 MB / 0.7325 GB Notification: Performance of NFTyping.typeClassSections: time 0.0006788/0.3124, allocations: 131.4 kB / 0.9541 GB, free: 4.895 MB / 0.7325 GB Notification: Performance of NFFlatten.flatten: time 7.775e-05/0.3125, allocations: 31.91 kB / 0.9541 GB, free: 4.863 MB / 0.7325 GB Notification: Performance of NFFlatten.resolveConnections: time 4.339e-05/0.3126, allocations: 4 kB / 0.9541 GB, free: 4.859 MB / 0.7325 GB Notification: Performance of NFEvalConstants.evaluate: time 5.191e-05/0.3126, allocations: 23.86 kB / 0.9541 GB, free: 4.836 MB / 0.7325 GB Notification: Performance of NFSimplifyModel.simplify: time 6.878e-05/0.3127, allocations: 23.91 kB / 0.9542 GB, free: 4.812 MB / 0.7325 GB Notification: Performance of NFPackage.collectConstants: time 1.153e-05/0.3127, allocations: 0 / 0.9542 GB, free: 4.812 MB / 0.7325 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0003418/0.3131, allocations: 111.8 kB / 0.9543 GB, free: 4.703 MB / 0.7325 GB Notification: Performance of NFScalarize.scalarize: time 1.896e-05/0.3131, allocations: 11.97 kB / 0.9543 GB, free: 4.691 MB / 0.7325 GB Notification: Performance of NFVerifyModel.verify: time 3.718e-05/0.3131, allocations: 15.94 kB / 0.9543 GB, free: 4.676 MB / 0.7325 GB Notification: Performance of NFConvertDAE.convert: time 0.0002466/0.3134, allocations: 80.06 kB / 0.9544 GB, free: 4.598 MB / 0.7325 GB Notification: Performance of FrontEnd - DAE generated: time 4.549e-06/0.3134, allocations: 3.938 kB / 0.9544 GB, free: 4.594 MB / 0.7325 GB Notification: Performance of FrontEnd: time 1.613e-06/0.3134, allocations: 0 / 0.9544 GB, free: 4.594 MB / 0.7325 GB Notification: Performance of Transformations before backend: time 6.092e-06/0.3134, allocations: 0 / 0.9544 GB, free: 4.594 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.000463/0.3139, allocations: 351.5 kB / 0.9547 GB, free: 4.203 MB / 0.7325 GB Notification: Performance of prepare preOptimizeDAE: time 4.046e-05/0.3139, allocations: 8.031 kB / 0.9547 GB, free: 4.195 MB / 0.7325 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002482/0.3142, allocations: 16.92 kB / 0.9547 GB, free: 4.18 MB / 0.7325 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001111/0.3143, allocations: 176.2 kB / 0.9549 GB, free: 3.969 MB / 0.7325 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.656e-05/0.3143, allocations: 4.375 kB / 0.9549 GB, free: 3.965 MB / 0.7325 GB Notification: Performance of preOpt expandDerOperator (simulation): time 2.716e-05/0.3144, allocations: 8.281 kB / 0.9549 GB, free: 3.957 MB / 0.7325 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001492/0.3145, allocations: 72.38 kB / 0.955 GB, free: 3.871 MB / 0.7325 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.05e-05/0.3145, allocations: 0 / 0.955 GB, free: 3.871 MB / 0.7325 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.447e-05/0.3146, allocations: 4 kB / 0.955 GB, free: 3.867 MB / 0.7325 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.446e-06/0.3146, allocations: 3.984 kB / 0.955 GB, free: 3.863 MB / 0.7325 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 5.041e-05/0.3146, allocations: 19.94 kB / 0.955 GB, free: 3.844 MB / 0.7325 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0006505/0.3153, allocations: 462.9 kB / 0.9554 GB, free: 3.328 MB / 0.7325 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001414/0.3155, allocations: 75.66 kB / 0.9555 GB, free: 3.227 MB / 0.7325 GB Notification: Performance of preOpt resolveLoops (simulation): time 3.421e-05/0.3155, allocations: 22.64 kB / 0.9555 GB, free: 3.195 MB / 0.7325 GB Notification: Performance of preOpt evalFunc (simulation): time 1.356e-05/0.3155, allocations: 96 / 0.9555 GB, free: 3.195 MB / 0.7325 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.725e-05/0.3156, allocations: 42.55 kB / 0.9556 GB, free: 3.145 MB / 0.7325 GB Notification: Performance of pre-optimization done (n=5): time 1.082e-06/0.3156, allocations: 0 / 0.9556 GB, free: 3.145 MB / 0.7325 GB Notification: Performance of matching and sorting (n=7): time 0.0006895/0.3163, allocations: 298.1 kB / 0.9559 GB, free: 2.801 MB / 0.7325 GB Notification: Performance of inlineWhenForInitialization (initialization): time 6.881e-05/0.3163, allocations: 114.8 kB / 0.956 GB, free: 2.664 MB / 0.7325 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 8.606e-05/0.3164, allocations: 97.8 kB / 0.9561 GB, free: 2.559 MB / 0.7325 GB Notification: Performance of collectPreVariables (initialization): time 2.273e-05/0.3165, allocations: 29.7 kB / 0.9561 GB, free: 2.523 MB / 0.7325 GB Notification: Performance of collectInitialEqns (initialization): time 5.208e-05/0.3165, allocations: 84.05 kB / 0.9562 GB, free: 2.438 MB / 0.7325 GB Notification: Performance of collectInitialBindings (initialization): time 2.606e-05/0.3165, allocations: 31.58 kB / 0.9562 GB, free: 2.406 MB / 0.7325 GB Notification: Performance of simplifyInitialFunctions (initialization): time 5.565e-05/0.3166, allocations: 29.97 kB / 0.9562 GB, free: 2.371 MB / 0.7325 GB Notification: Performance of setup shared object (initialization): time 0.0001108/0.3167, allocations: 322.7 kB / 0.9565 GB, free: 2.047 MB / 0.7325 GB Notification: Performance of preBalanceInitialSystem (initialization): time 3.101e-05/0.3168, allocations: 12 kB / 0.9566 GB, free: 2.035 MB / 0.7325 GB Notification: Performance of partitionIndependentBlocks (initialization): time 5.33e-05/0.3168, allocations: 53.08 kB / 0.9566 GB, free: 1.965 MB / 0.7325 GB Notification: Performance of analyzeInitialSystem (initialization): time 9.864e-05/0.3169, allocations: 81.08 kB / 0.9567 GB, free: 1.867 MB / 0.7325 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 9.22e-07/0.3169, allocations: 0 / 0.9567 GB, free: 1.867 MB / 0.7325 GB Notification: Performance of matching and sorting (n=12) (initialization): time 0.0001455/0.3171, allocations: 94.06 kB / 0.9568 GB, free: 1.77 MB / 0.7325 GB Notification: Performance of prepare postOptimizeDAE: time 1.709e-05/0.3171, allocations: 4 kB / 0.9568 GB, free: 1.766 MB / 0.7325 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.035e-06/0.3171, allocations: 4 kB / 0.9568 GB, free: 1.762 MB / 0.7325 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.423e-05/0.3171, allocations: 4.125 kB / 0.9568 GB, free: 1.758 MB / 0.7325 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 9.505e-05/0.3172, allocations: 23.94 kB / 0.9568 GB, free: 1.734 MB / 0.7325 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.196e-06/0.3173, allocations: 3.984 kB / 0.9568 GB, free: 1.73 MB / 0.7325 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 4.241e-05/0.3173, allocations: 8 kB / 0.9568 GB, free: 1.723 MB / 0.7325 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.265e-06/0.3173, allocations: 4 kB / 0.9568 GB, free: 1.719 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.359e-05/0.3174, allocations: 113.8 kB / 0.9569 GB, free: 1.598 MB / 0.7325 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.18e-05/0.3175, allocations: 4 kB / 0.9569 GB, free: 1.594 MB / 0.7325 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.374e-05/0.3175, allocations: 19.48 kB / 0.9569 GB, free: 1.574 MB / 0.7325 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.645e-06/0.3175, allocations: 0 / 0.9569 GB, free: 1.574 MB / 0.7325 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.528e-06/0.3175, allocations: 4 kB / 0.957 GB, free: 1.57 MB / 0.7325 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.883e-06/0.3175, allocations: 0 / 0.957 GB, free: 1.57 MB / 0.7325 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003557/0.3179, allocations: 189.4 kB / 0.9571 GB, free: 1.336 MB / 0.7325 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.254e-06/0.3179, allocations: 0 / 0.9571 GB, free: 1.336 MB / 0.7325 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 8.721e-05/0.318, allocations: 19.98 kB / 0.9572 GB, free: 1.316 MB / 0.7325 GB Notification: Performance of postOpt tearingSystem (simulation): time 4.248e-06/0.318, allocations: 4 kB / 0.9572 GB, free: 1.312 MB / 0.7325 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.287e-06/0.318, allocations: 0 / 0.9572 GB, free: 1.312 MB / 0.7325 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.184e-06/0.318, allocations: 0 / 0.9572 GB, free: 1.312 MB / 0.7325 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.293e-06/0.318, allocations: 0 / 0.9572 GB, free: 1.312 MB / 0.7325 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.000239/0.3183, allocations: 330 kB / 0.9575 GB, free: 0.9727 MB / 0.7325 GB Notification: Performance of postOpt removeConstants (simulation): time 6.41e-05/0.3184, allocations: 89.02 kB / 0.9576 GB, free: 0.8672 MB / 0.7325 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.115e-05/0.3184, allocations: 12.03 kB / 0.9576 GB, free: 0.8555 MB / 0.7325 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001728/0.3186, allocations: 4 kB / 0.9576 GB, free: 0.8516 MB / 0.7325 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.055e-05/0.3186, allocations: 4 kB / 0.9576 GB, free: 0.8477 MB / 0.7325 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.025e-06/0.3186, allocations: 3.938 kB / 0.9576 GB, free: 0.8438 MB / 0.7325 GB Notification: Performance of sorting global known variables: time 3.918e-05/0.3187, allocations: 91.27 kB / 0.9577 GB, free: 0.7539 MB / 0.7325 GB Notification: Performance of sort global known variables: time 9e-08/0.3187, allocations: 0 / 0.9577 GB, free: 0.7539 MB / 0.7325 GB Notification: Performance of remove unused functions: time 0.0003158/0.319, allocations: 12 kB / 0.9577 GB, free: 0.7422 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.0001475/0.3191, allocations: 103.2 kB / 0.9578 GB, free: 0.6328 MB / 0.7325 GB Notification: Performance of simCode: created initialization part: time 0.0001195/0.3193, allocations: 47.86 kB / 0.9578 GB, free: 0.5859 MB / 0.7325 GB Notification: Performance of simCode: created event and clocks part: time 2.865e-06/0.3193, allocations: 256 / 0.9578 GB, free: 0.5859 MB / 0.7325 GB Notification: Performance of simCode: created simulation system equations: time 2.736e-05/0.3193, allocations: 23.98 kB / 0.9578 GB, free: 0.5625 MB / 0.7325 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004278/0.3197, allocations: 5.828 kB / 0.9578 GB, free: 0.5586 MB / 0.7325 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0006619/0.3204, allocations: 374 kB / 0.9582 GB, free: 160 kB / 0.7325 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002602/0.3207, allocations: 0.6846 MB / 0.9589 GB, free: 15.45 MB / 0.7481 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.037e-05/0.3207, allocations: 11.44 kB / 0.9589 GB, free: 15.43 MB / 0.7481 GB Notification: Performance of SimCode: time 4.9e-07/0.3207, allocations: 4 kB / 0.9589 GB, free: 15.43 MB / 0.7481 GB Notification: Performance of Templates: time 0.002482/0.3232, allocations: 0.7941 MB / 0.9597 GB, free: 14.64 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