Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_latest_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 11.0.0-master/package.mo", uses=false) Using package Buildings with version 11.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.0.0-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.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_latest_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_latest_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.001074/0.001074, allocations: 119.8 kB / 16.37 MB, free: 6.016 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.001056/0.001056, allocations: 193 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.314/1.314, 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 11.0.0-master/package.mo): time 2.508/2.508, allocations: 442.6 MB / 0.7165 GB, free: 14.65 MB / 0.5919 GB Notification: Performance of FrontEnd - loaded program: time 0.001892/0.001892, allocations: 64.55 kB / 0.8773 GB, free: 10.96 MB / 0.6544 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2902/0.2921, allocations: 153 MB / 1.027 GB, free: 2.031 MB / 0.795 GB Notification: Performance of NFInst.instantiate(Buildings.Media.Specialized.Water.Examples.TemperatureDependentDensityProperties): time 0.005574/0.2977, allocations: 4.052 MB / 1.031 GB, free: 13.96 MB / 0.8106 GB Notification: Performance of NFInst.instExpressions: time 0.003887/0.3016, allocations: 2.43 MB / 1.033 GB, free: 11.52 MB / 0.8106 GB Notification: Performance of NFInst.updateImplicitVariability: time 9.693e-05/0.3018, allocations: 4 kB / 1.033 GB, free: 11.52 MB / 0.8106 GB Notification: Performance of NFTyping.typeComponents: time 0.000259/0.302, allocations: 47.67 kB / 1.033 GB, free: 11.47 MB / 0.8106 GB Notification: Performance of NFTyping.typeBindings: time 0.0002531/0.3023, allocations: 99.41 kB / 1.033 GB, free: 11.38 MB / 0.8106 GB Notification: Performance of NFTyping.typeClassSections: time 0.001164/0.3035, allocations: 0.5198 MB / 1.034 GB, free: 10.86 MB / 0.8106 GB Notification: Performance of NFFlatten.flatten: time 0.0002929/0.3038, allocations: 263.8 kB / 1.034 GB, free: 10.6 MB / 0.8106 GB Notification: Performance of NFFlatten.resolveConnections: time 4.297e-05/0.3039, allocations: 13.56 kB / 1.034 GB, free: 10.58 MB / 0.8106 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001938/0.3041, allocations: 115.6 kB / 1.034 GB, free: 10.47 MB / 0.8106 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0001311/0.3042, allocations: 95.59 kB / 1.034 GB, free: 10.38 MB / 0.8106 GB Notification: Performance of NFPackage.collectConstants: time 2.146e-05/0.3042, allocations: 11.94 kB / 1.034 GB, free: 10.36 MB / 0.8106 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0007442/0.305, allocations: 455.3 kB / 1.035 GB, free: 9.918 MB / 0.8106 GB Notification: Performance of NFScalarize.scalarize: time 7.854e-05/0.3051, allocations: 39.89 kB / 1.035 GB, free: 9.879 MB / 0.8106 GB Notification: Performance of NFVerifyModel.verify: time 9.248e-05/0.3052, allocations: 87.58 kB / 1.035 GB, free: 9.793 MB / 0.8106 GB Notification: Performance of NFConvertDAE.convert: time 0.0005577/0.3057, allocations: 407 kB / 1.035 GB, free: 9.395 MB / 0.8106 GB Notification: Performance of FrontEnd - DAE generated: time 3.727e-06/0.3058, allocations: 0 / 1.035 GB, free: 9.395 MB / 0.8106 GB Notification: Performance of FrontEnd: time 1.533e-06/0.3058, allocations: 4 kB / 1.035 GB, free: 9.391 MB / 0.8106 GB Notification: Performance of Transformations before backend: time 5.53e-06/0.3058, allocations: 0 / 1.035 GB, free: 9.391 MB / 0.8106 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.0006841/0.3065, allocations: 0.5031 MB / 1.036 GB, free: 8.836 MB / 0.8106 GB Notification: Performance of prepare preOptimizeDAE: time 3.22e-05/0.3065, allocations: 12.03 kB / 1.036 GB, free: 8.824 MB / 0.8106 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001911/0.3084, allocations: 176.6 kB / 1.036 GB, free: 8.652 MB / 0.8106 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002989/0.3087, allocations: 212.1 kB / 1.036 GB, free: 8.406 MB / 0.8106 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.399e-05/0.3088, allocations: 12.7 kB / 1.036 GB, free: 8.395 MB / 0.8106 GB Notification: Performance of preOpt expandDerOperator (simulation): time 3.431e-05/0.3088, allocations: 16.38 kB / 1.036 GB, free: 8.379 MB / 0.8106 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005954/0.3094, allocations: 312.3 kB / 1.036 GB, free: 8.039 MB / 0.8106 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.767e-05/0.3094, allocations: 4 kB / 1.036 GB, free: 8.035 MB / 0.8106 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.009e-05/0.3095, allocations: 4 kB / 1.036 GB, free: 8.031 MB / 0.8106 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.004e-05/0.3095, allocations: 8 kB / 1.036 GB, free: 8.023 MB / 0.8106 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0006564/0.3102, allocations: 263.5 kB / 1.037 GB, free: 7.766 MB / 0.8106 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001482/0.3116, allocations: 1.389 MB / 1.038 GB, free: 6.262 MB / 0.8106 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0005805/0.3122, allocations: 190.5 kB / 1.038 GB, free: 6.066 MB / 0.8106 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002046/0.3125, allocations: 80.81 kB / 1.038 GB, free: 5.984 MB / 0.8106 GB Notification: Performance of preOpt evalFunc (simulation): time 2.739e-05/0.3125, allocations: 7.906 kB / 1.038 GB, free: 5.977 MB / 0.8106 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.257e-05/0.3125, allocations: 30.56 kB / 1.038 GB, free: 5.938 MB / 0.8106 GB Notification: Performance of pre-optimization done (n=18): time 1.663e-06/0.3125, allocations: 3.938 kB / 1.038 GB, free: 5.934 MB / 0.8106 GB Notification: Performance of matching and sorting (n=18): time 0.000725/0.3133, allocations: 245.4 kB / 1.038 GB, free: 5.688 MB / 0.8106 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.347e-05/0.3133, allocations: 51.41 kB / 1.039 GB, free: 5.625 MB / 0.8106 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001306/0.3134, allocations: 162.5 kB / 1.039 GB, free: 5.461 MB / 0.8106 GB Notification: Performance of collectPreVariables (initialization): time 2.609e-05/0.3135, allocations: 29.7 kB / 1.039 GB, free: 5.426 MB / 0.8106 GB Notification: Performance of collectInitialEqns (initialization): time 7.146e-05/0.3136, allocations: 132 kB / 1.039 GB, free: 5.293 MB / 0.8106 GB Notification: Performance of collectInitialBindings (initialization): time 4.225e-05/0.3136, allocations: 59.19 kB / 1.039 GB, free: 5.234 MB / 0.8106 GB Notification: Performance of simplifyInitialFunctions (initialization): time 9.085e-05/0.3137, allocations: 57.83 kB / 1.039 GB, free: 5.168 MB / 0.8106 GB Notification: Performance of setup shared object (initialization): time 0.0001071/0.3138, allocations: 322.8 kB / 1.039 GB, free: 4.844 MB / 0.8106 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001925/0.314, allocations: 64.42 kB / 1.039 GB, free: 4.781 MB / 0.8106 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002344/0.3142, allocations: 147 kB / 1.039 GB, free: 4.605 MB / 0.8106 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004254/0.3147, allocations: 215.5 kB / 1.04 GB, free: 4.363 MB / 0.8106 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.194e-06/0.3147, allocations: 0 / 1.04 GB, free: 4.363 MB / 0.8106 GB Notification: Performance of matching and sorting (n=28) (initialization): time 0.0005519/0.3152, allocations: 261 kB / 1.04 GB, free: 4.102 MB / 0.8106 GB Notification: Performance of prepare postOptimizeDAE: time 1.679e-05/0.3153, allocations: 14.28 kB / 1.04 GB, free: 4.09 MB / 0.8106 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.881e-06/0.3153, allocations: 0 / 1.04 GB, free: 4.09 MB / 0.8106 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.406e-05/0.3153, allocations: 8.312 kB / 1.04 GB, free: 4.082 MB / 0.8106 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003586/0.3157, allocations: 71.83 kB / 1.04 GB, free: 4.012 MB / 0.8106 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.548e-06/0.3157, allocations: 4 kB / 1.04 GB, free: 4.008 MB / 0.8106 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002234/0.3159, allocations: 27.83 kB / 1.04 GB, free: 3.98 MB / 0.8106 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.419e-05/0.3159, allocations: 11.98 kB / 1.04 GB, free: 3.969 MB / 0.8106 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.0001162/0.3161, allocations: 133.7 kB / 1.04 GB, free: 3.828 MB / 0.8106 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.089e-05/0.3161, allocations: 15.81 kB / 1.04 GB, free: 3.812 MB / 0.8106 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.000587/0.3167, allocations: 236.5 kB / 1.04 GB, free: 3.578 MB / 0.8106 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.605e-06/0.3167, allocations: 0 / 1.04 GB, free: 3.578 MB / 0.8106 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.208e-06/0.3167, allocations: 0 / 1.04 GB, free: 3.578 MB / 0.8106 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.346e-06/0.3167, allocations: 0 / 1.04 GB, free: 3.578 MB / 0.8106 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002589/0.317, allocations: 249.4 kB / 1.041 GB, free: 3.285 MB / 0.8106 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.253e-06/0.317, allocations: 0 / 1.041 GB, free: 3.285 MB / 0.8106 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003012/0.3173, allocations: 43.97 kB / 1.041 GB, free: 3.242 MB / 0.8106 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.345e-06/0.3173, allocations: 0 / 1.041 GB, free: 3.242 MB / 0.8106 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.002e-05/0.3174, allocations: 8 kB / 1.041 GB, free: 3.234 MB / 0.8106 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.126e-06/0.3174, allocations: 7.984 kB / 1.041 GB, free: 3.227 MB / 0.8106 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.51e-07/0.3174, allocations: 0 / 1.041 GB, free: 3.227 MB / 0.8106 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0005034/0.3179, allocations: 299.1 kB / 1.041 GB, free: 2.918 MB / 0.8106 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0001035/0.318, allocations: 100.9 kB / 1.041 GB, free: 2.801 MB / 0.8106 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.544e-05/0.318, allocations: 8 kB / 1.041 GB, free: 2.793 MB / 0.8106 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002729/0.3183, allocations: 19.98 kB / 1.041 GB, free: 2.773 MB / 0.8106 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.59e-05/0.3184, allocations: 11.98 kB / 1.041 GB, free: 2.762 MB / 0.8106 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.621e-05/0.3184, allocations: 11.98 kB / 1.041 GB, free: 2.75 MB / 0.8106 GB Notification: Performance of sorting global known variables: time 8.018e-05/0.3185, allocations: 115.2 kB / 1.041 GB, free: 2.637 MB / 0.8106 GB Notification: Performance of sort global known variables: time 1.9e-07/0.3185, allocations: 0 / 1.041 GB, free: 2.637 MB / 0.8106 GB Notification: Performance of remove unused functions: time 0.000338/0.3188, allocations: 60.12 kB / 1.041 GB, free: 2.578 MB / 0.8106 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.0002002/0.319, allocations: 147 kB / 1.041 GB, free: 2.426 MB / 0.8106 GB Notification: Performance of simCode: created initialization part: time 0.0004858/0.3195, allocations: 190.5 kB / 1.042 GB, free: 2.242 MB / 0.8106 GB Notification: Performance of simCode: created event and clocks part: time 2.525e-06/0.3195, allocations: 0 / 1.042 GB, free: 2.242 MB / 0.8106 GB Notification: Performance of simCode: created simulation system equations: time 0.0002143/0.3198, allocations: 83.88 kB / 1.042 GB, free: 2.16 MB / 0.8106 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000422/0.3202, allocations: 69.7 kB / 1.042 GB, free: 2.094 MB / 0.8106 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0008709/0.3211, allocations: 403 kB / 1.042 GB, free: 1.676 MB / 0.8106 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003292/0.3214, allocations: 0.7134 MB / 1.043 GB, free: 0.9375 MB / 0.8106 GB Notification: Performance of simCode: alias equations: time 0.000318/0.3217, allocations: 53.94 kB / 1.043 GB, free: 0.8867 MB / 0.8106 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001107/0.3219, allocations: 23.42 kB / 1.043 GB, free: 0.8633 MB / 0.8106 GB Notification: Performance of SimCode: time 2.91e-07/0.3219, allocations: 0 / 1.043 GB, free: 0.8633 MB / 0.8106 GB Notification: Performance of Templates: time 0.007363/0.3292, allocations: 3.4 MB / 1.046 GB, free: 13.54 MB / 0.8262 GB make -j1 -f Buildings_latest_Buildings.Media.Specialized.Water.Examples.TemperatureDependentDensityProperties.makefile (rm -f Buildings_latest_Buildings.Media.Specialized.Water.Examples.TemperatureDependentDensityProperties.pipe ; mkfifo Buildings_latest_Buildings.Media.Specialized.Water.Examples.TemperatureDependentDensityProperties.pipe ; head -c 1048576 < Buildings_latest_Buildings.Media.Specialized.Water.Examples.TemperatureDependentDensityProperties.pipe >> ../files/Buildings_latest_Buildings.Media.Specialized.Water.Examples.TemperatureDependentDensityProperties.sim & ./Buildings_latest_Buildings.Media.Specialized.Water.Examples.TemperatureDependentDensityProperties -abortSlowSimulation -alarm=480 -s gbode -emit_protected -lv LOG_STATS > Buildings_latest_Buildings.Media.Specialized.Water.Examples.TemperatureDependentDensityProperties.pipe 2>&1) diffSimulationResults("Buildings_latest_Buildings.Media.Specialized.Water.Examples.TemperatureDependentDensityProperties_res.mat","/mnt/ReferenceFiles/Buildings/csv/master/Buildings_Media_Specialized_Water_Examples_TemperatureDependentDensityProperties.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_latest_Buildings.Media.Specialized.Water.Examples.TemperatureDependentDensityProperties.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches