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.006203/0.006203, allocations: 101.1 kB / 15.88 MB, free: 5.867 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.001357/0.001357, allocations: 191.8 kB / 16.79 MB, free: 5.809 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.458/1.458, allocations: 222.9 MB / 240.5 MB, free: 4.582 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.0.0-master/package.mo): time 2.619/2.619, allocations: 461.9 MB / 0.7348 GB, free: 14.22 MB / 0.5919 GB Notification: Performance of FrontEnd - loaded program: time 0.001256/0.001256, allocations: 62.44 kB / 0.899 GB, free: 36.99 MB / 0.7169 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3009/0.3021, allocations: 157.4 MB / 1.053 GB, free: 8.352 MB / 0.8106 GB Notification: Performance of NFInst.instantiate(Buildings.Media.Specialized.Water.Examples.TemperatureDependentDensityProperties): time 0.006273/0.3085, allocations: 4.106 MB / 1.057 GB, free: 4.219 MB / 0.8106 GB Notification: Performance of NFInst.instExpressions: time 0.003088/0.3116, allocations: 2.465 MB / 1.059 GB, free: 1.746 MB / 0.8106 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001494/0.3118, allocations: 4 kB / 1.059 GB, free: 1.742 MB / 0.8106 GB Notification: Performance of NFTyping.typeComponents: time 0.0002994/0.3121, allocations: 35.75 kB / 1.059 GB, free: 1.707 MB / 0.8106 GB Notification: Performance of NFTyping.typeBindings: time 0.0003156/0.3124, allocations: 95.47 kB / 1.059 GB, free: 1.613 MB / 0.8106 GB Notification: Performance of NFTyping.typeClassSections: time 0.001424/0.3139, allocations: 472.9 kB / 1.06 GB, free: 1.152 MB / 0.8106 GB Notification: Performance of NFFlatten.flatten: time 0.0004302/0.3143, allocations: 339.8 kB / 1.06 GB, free: 0.8203 MB / 0.8106 GB Notification: Performance of NFFlatten.resolveConnections: time 5.715e-05/0.3144, allocations: 17.55 kB / 1.06 GB, free: 0.8047 MB / 0.8106 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0002363/0.3146, allocations: 103.6 kB / 1.06 GB, free: 0.7031 MB / 0.8106 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0001688/0.3148, allocations: 99.58 kB / 1.06 GB, free: 0.6055 MB / 0.8106 GB Notification: Performance of NFPackage.collectConstants: time 2.727e-05/0.3148, allocations: 8 kB / 1.06 GB, free: 0.5977 MB / 0.8106 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0009222/0.3158, allocations: 455.1 kB / 1.061 GB, free: 156 kB / 0.8106 GB Notification: Performance of NFScalarize.scalarize: time 7.695e-05/0.3158, allocations: 43.83 kB / 1.061 GB, free: 112 kB / 0.8106 GB Notification: Performance of NFVerifyModel.verify: time 9.91e-05/0.316, allocations: 75.66 kB / 1.061 GB, free: 36 kB / 0.8106 GB Notification: Performance of NFConvertDAE.convert: time 0.0005214/0.3165, allocations: 287.7 kB / 1.061 GB, free: 15.75 MB / 0.8262 GB Notification: Performance of FrontEnd - DAE generated: time 4.548e-06/0.3165, allocations: 0 / 1.061 GB, free: 15.75 MB / 0.8262 GB Notification: Performance of FrontEnd: time 1.112e-06/0.3165, allocations: 8 kB / 1.061 GB, free: 15.74 MB / 0.8262 GB Notification: Performance of Transformations before backend: time 4.719e-06/0.3165, allocations: 0 / 1.061 GB, free: 15.74 MB / 0.8262 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.0009003/0.3174, allocations: 0.4993 MB / 1.062 GB, free: 15.2 MB / 0.8262 GB Notification: Performance of prepare preOptimizeDAE: time 4.002e-05/0.3175, allocations: 11.97 kB / 1.062 GB, free: 15.18 MB / 0.8262 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.00211/0.3196, allocations: 184.5 kB / 1.062 GB, free: 15 MB / 0.8262 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000296/0.3199, allocations: 204 kB / 1.062 GB, free: 14.77 MB / 0.8262 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.041e-05/0.3199, allocations: 16.7 kB / 1.062 GB, free: 14.75 MB / 0.8262 GB Notification: Performance of preOpt expandDerOperator (simulation): time 3.929e-05/0.32, allocations: 12.38 kB / 1.062 GB, free: 14.74 MB / 0.8262 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0006659/0.3207, allocations: 308.3 kB / 1.062 GB, free: 14.41 MB / 0.8262 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.008e-05/0.3207, allocations: 0 / 1.062 GB, free: 14.41 MB / 0.8262 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.964e-05/0.3207, allocations: 8 kB / 1.062 GB, free: 14.4 MB / 0.8262 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.258e-05/0.3208, allocations: 7.984 kB / 1.062 GB, free: 14.39 MB / 0.8262 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0007389/0.3215, allocations: 267.5 kB / 1.063 GB, free: 14.13 MB / 0.8262 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001755/0.3233, allocations: 1.385 MB / 1.064 GB, free: 12.63 MB / 0.8262 GB Notification: Performance of preOpt comSubExp (simulation): time 0.000675/0.324, allocations: 201.6 kB / 1.064 GB, free: 12.43 MB / 0.8262 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002237/0.3242, allocations: 76.81 kB / 1.064 GB, free: 12.35 MB / 0.8262 GB Notification: Performance of preOpt evalFunc (simulation): time 2.671e-05/0.3242, allocations: 4 kB / 1.064 GB, free: 12.34 MB / 0.8262 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.721e-05/0.3243, allocations: 34.56 kB / 1.064 GB, free: 12.3 MB / 0.8262 GB Notification: Performance of pre-optimization done (n=18): time 1.723e-06/0.3243, allocations: 0 / 1.064 GB, free: 12.3 MB / 0.8262 GB Notification: Performance of matching and sorting (n=18): time 0.0007985/0.3251, allocations: 254.6 kB / 1.064 GB, free: 12.05 MB / 0.8262 GB Notification: Performance of inlineWhenForInitialization (initialization): time 8.289e-05/0.3252, allocations: 55.41 kB / 1.065 GB, free: 11.98 MB / 0.8262 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001363/0.3253, allocations: 152.7 kB / 1.065 GB, free: 11.82 MB / 0.8262 GB Notification: Performance of collectPreVariables (initialization): time 3.01e-05/0.3254, allocations: 29.7 kB / 1.065 GB, free: 11.79 MB / 0.8262 GB Notification: Performance of collectInitialEqns (initialization): time 8.834e-05/0.3255, allocations: 135.9 kB / 1.065 GB, free: 11.65 MB / 0.8262 GB Notification: Performance of collectInitialBindings (initialization): time 5.308e-05/0.3255, allocations: 59.11 kB / 1.065 GB, free: 11.59 MB / 0.8262 GB Notification: Performance of simplifyInitialFunctions (initialization): time 9.196e-05/0.3256, allocations: 57.83 kB / 1.065 GB, free: 11.53 MB / 0.8262 GB Notification: Performance of setup shared object (initialization): time 0.0001521/0.3258, allocations: 326.8 kB / 1.065 GB, free: 11.2 MB / 0.8262 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002131/0.326, allocations: 64.42 kB / 1.065 GB, free: 11.14 MB / 0.8262 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002935/0.3263, allocations: 143 kB / 1.065 GB, free: 10.96 MB / 0.8262 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004874/0.3268, allocations: 219 kB / 1.066 GB, free: 10.72 MB / 0.8262 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.805e-06/0.3268, allocations: 4 kB / 1.066 GB, free: 10.71 MB / 0.8262 GB Notification: Performance of matching and sorting (n=28) (initialization): time 0.0006007/0.3274, allocations: 251.1 kB / 1.066 GB, free: 10.46 MB / 0.8262 GB Notification: Performance of prepare postOptimizeDAE: time 2.032e-05/0.3274, allocations: 8 kB / 1.066 GB, free: 10.46 MB / 0.8262 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.011e-06/0.3275, allocations: 4.312 kB / 1.066 GB, free: 10.45 MB / 0.8262 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.551e-05/0.3275, allocations: 7.984 kB / 1.066 GB, free: 10.45 MB / 0.8262 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003735/0.3279, allocations: 63.89 kB / 1.066 GB, free: 10.38 MB / 0.8262 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.152e-05/0.3279, allocations: 11.92 kB / 1.066 GB, free: 10.37 MB / 0.8262 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002877/0.3282, allocations: 23.84 kB / 1.066 GB, free: 10.35 MB / 0.8262 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.731e-05/0.3282, allocations: 19.92 kB / 1.066 GB, free: 10.33 MB / 0.8262 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.0001336/0.3283, allocations: 137.7 kB / 1.066 GB, free: 10.18 MB / 0.8262 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.981e-05/0.3284, allocations: 15.81 kB / 1.066 GB, free: 10.17 MB / 0.8262 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0006528/0.3291, allocations: 226.7 kB / 1.066 GB, free: 9.938 MB / 0.8262 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.979e-06/0.3291, allocations: 4 kB / 1.066 GB, free: 9.934 MB / 0.8262 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.747e-06/0.3291, allocations: 0 / 1.066 GB, free: 9.934 MB / 0.8262 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.346e-06/0.3291, allocations: 0 / 1.066 GB, free: 9.934 MB / 0.8262 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.000319/0.3294, allocations: 249.4 kB / 1.067 GB, free: 9.641 MB / 0.8262 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.713e-06/0.3294, allocations: 0 / 1.067 GB, free: 9.641 MB / 0.8262 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000321/0.3298, allocations: 43.91 kB / 1.067 GB, free: 9.598 MB / 0.8262 GB Notification: Performance of postOpt tearingSystem (simulation): time 6.452e-06/0.3298, allocations: 8 kB / 1.067 GB, free: 9.59 MB / 0.8262 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.204e-05/0.3298, allocations: 7.984 kB / 1.067 GB, free: 9.582 MB / 0.8262 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.144e-06/0.3298, allocations: 0 / 1.067 GB, free: 9.582 MB / 0.8262 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.72e-07/0.3298, allocations: 0 / 1.067 GB, free: 9.582 MB / 0.8262 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0005717/0.3304, allocations: 296.7 kB / 1.067 GB, free: 9.277 MB / 0.8262 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0001223/0.3305, allocations: 104.9 kB / 1.067 GB, free: 9.156 MB / 0.8262 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.886e-05/0.3306, allocations: 8 kB / 1.067 GB, free: 9.148 MB / 0.8262 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000298/0.3309, allocations: 15.97 kB / 1.067 GB, free: 9.133 MB / 0.8262 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.315e-05/0.3309, allocations: 15.98 kB / 1.067 GB, free: 9.117 MB / 0.8262 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.555e-05/0.331, allocations: 11.94 kB / 1.067 GB, free: 9.105 MB / 0.8262 GB Notification: Performance of sorting global known variables: time 8.685e-05/0.331, allocations: 118.5 kB / 1.067 GB, free: 8.992 MB / 0.8262 GB Notification: Performance of sort global known variables: time 1.6e-07/0.3311, allocations: 0 / 1.067 GB, free: 8.992 MB / 0.8262 GB Notification: Performance of remove unused functions: time 0.0003914/0.3315, allocations: 63.94 kB / 1.067 GB, free: 8.93 MB / 0.8262 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.0002125/0.3317, allocations: 139.3 kB / 1.067 GB, free: 8.785 MB / 0.8262 GB Notification: Performance of simCode: created initialization part: time 0.0005357/0.3322, allocations: 181.8 kB / 1.068 GB, free: 8.609 MB / 0.8262 GB Notification: Performance of simCode: created event and clocks part: time 2.334e-06/0.3322, allocations: 0 / 1.068 GB, free: 8.609 MB / 0.8262 GB Notification: Performance of simCode: created simulation system equations: time 0.000227/0.3325, allocations: 87.89 kB / 1.068 GB, free: 8.523 MB / 0.8262 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005491/0.333, allocations: 68.39 kB / 1.068 GB, free: 8.457 MB / 0.8262 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001051/0.3341, allocations: 494.5 kB / 1.068 GB, free: 7.941 MB / 0.8262 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002905/0.3344, allocations: 0.7137 MB / 1.069 GB, free: 7.195 MB / 0.8262 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001279/0.3345, allocations: 31.42 kB / 1.069 GB, free: 7.164 MB / 0.8262 GB Notification: Performance of SimCode: time 5.81e-07/0.3345, allocations: 0 / 1.069 GB, free: 7.164 MB / 0.8262 GB Notification: Performance of Templates: time 0.005638/0.3402, allocations: 2.912 MB / 1.072 GB, free: 4.277 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 -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