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.1-master/package.mo", uses=false) Using package Buildings with version 11.0.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.0.1-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.005124/0.005124, allocations: 104.2 kB / 15.74 MB, free: 6.039 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.001067/0.001067, allocations: 200 kB / 16.68 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.372/1.372, allocations: 222.9 MB / 240.4 MB, free: 15.08 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.0.1-master/package.mo): time 2.634/2.634, allocations: 461.9 MB / 0.7348 GB, free: 11.05 MB / 0.6075 GB Notification: Performance of FrontEnd - loaded program: time 0.001408/0.001408, allocations: 59.84 kB / 1.054 GB, free: 7.617 MB / 0.8262 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.8816/0.883, allocations: 157.4 MB / 1.208 GB, free: 13.59 MB / 0.9356 GB Notification: Performance of NFInst.instantiate(Buildings.Media.Specialized.Water.Examples.TemperatureDependentDensityProperties): time 0.006467/0.8895, allocations: 4.043 MB / 1.212 GB, free: 9.523 MB / 0.9356 GB Notification: Performance of NFInst.instExpressions: time 0.003175/0.8927, allocations: 2.43 MB / 1.214 GB, free: 7.086 MB / 0.9356 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001646/0.8929, allocations: 0 / 1.214 GB, free: 7.086 MB / 0.9356 GB Notification: Performance of NFTyping.typeComponents: time 0.000335/0.8933, allocations: 51.67 kB / 1.214 GB, free: 7.035 MB / 0.9356 GB Notification: Performance of NFTyping.typeBindings: time 0.0004376/0.8937, allocations: 103.3 kB / 1.214 GB, free: 6.934 MB / 0.9356 GB Notification: Performance of NFTyping.typeClassSections: time 0.002012/0.8958, allocations: 0.5272 MB / 1.215 GB, free: 6.41 MB / 0.9356 GB Notification: Performance of NFFlatten.flatten: time 0.0004585/0.8962, allocations: 263.9 kB / 1.215 GB, free: 6.148 MB / 0.9356 GB Notification: Performance of NFFlatten.resolveConnections: time 5.659e-05/0.8963, allocations: 13.56 kB / 1.215 GB, free: 6.137 MB / 0.9356 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0002841/0.8966, allocations: 119.5 kB / 1.215 GB, free: 6.02 MB / 0.9356 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0001745/0.8968, allocations: 99.59 kB / 1.215 GB, free: 5.922 MB / 0.9356 GB Notification: Performance of NFPackage.collectConstants: time 2.48e-05/0.8968, allocations: 8 kB / 1.215 GB, free: 5.914 MB / 0.9356 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0009661/0.8978, allocations: 451.3 kB / 1.216 GB, free: 5.473 MB / 0.9356 GB Notification: Performance of NFScalarize.scalarize: time 8.904e-05/0.8979, allocations: 43.83 kB / 1.216 GB, free: 5.43 MB / 0.9356 GB Notification: Performance of NFVerifyModel.verify: time 0.000114/0.898, allocations: 83.64 kB / 1.216 GB, free: 5.348 MB / 0.9356 GB Notification: Performance of NFConvertDAE.convert: time 0.0008996/0.8989, allocations: 408.7 kB / 1.216 GB, free: 4.953 MB / 0.9356 GB Notification: Performance of FrontEnd - DAE generated: time 5.821e-06/0.8989, allocations: 0 / 1.216 GB, free: 4.953 MB / 0.9356 GB Notification: Performance of FrontEnd: time 1.413e-06/0.8989, allocations: 4 kB / 1.216 GB, free: 4.949 MB / 0.9356 GB Notification: Performance of Transformations before backend: time 7.334e-06/0.899, allocations: 0 / 1.216 GB, free: 4.949 MB / 0.9356 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.0008339/0.8998, allocations: 0.5031 MB / 1.217 GB, free: 4.395 MB / 0.9356 GB Notification: Performance of prepare preOptimizeDAE: time 4.133e-05/0.8998, allocations: 12.03 kB / 1.217 GB, free: 4.383 MB / 0.9356 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.002006/0.9019, allocations: 176.5 kB / 1.217 GB, free: 4.211 MB / 0.9356 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000346/0.9022, allocations: 216.1 kB / 1.217 GB, free: 3.961 MB / 0.9356 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.478e-05/0.9022, allocations: 8.703 kB / 1.217 GB, free: 3.953 MB / 0.9356 GB Notification: Performance of preOpt expandDerOperator (simulation): time 4.105e-05/0.9023, allocations: 16.38 kB / 1.217 GB, free: 3.938 MB / 0.9356 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000628/0.9029, allocations: 308.3 kB / 1.217 GB, free: 3.602 MB / 0.9356 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.237e-05/0.903, allocations: 7.938 kB / 1.217 GB, free: 3.594 MB / 0.9356 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.66e-05/0.903, allocations: 15.98 kB / 1.217 GB, free: 3.578 MB / 0.9356 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.092e-05/0.903, allocations: 8 kB / 1.217 GB, free: 3.57 MB / 0.9356 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0007175/0.9037, allocations: 259.6 kB / 1.218 GB, free: 3.316 MB / 0.9356 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001691/0.9054, allocations: 1.385 MB / 1.219 GB, free: 1.816 MB / 0.9356 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0006572/0.9061, allocations: 190.5 kB / 1.219 GB, free: 1.621 MB / 0.9356 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002225/0.9063, allocations: 76.81 kB / 1.219 GB, free: 1.543 MB / 0.9356 GB Notification: Performance of preOpt evalFunc (simulation): time 3.126e-05/0.9064, allocations: 4 kB / 1.219 GB, free: 1.539 MB / 0.9356 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.599e-05/0.9064, allocations: 34.56 kB / 1.219 GB, free: 1.496 MB / 0.9356 GB Notification: Performance of pre-optimization done (n=18): time 1.683e-06/0.9064, allocations: 0 / 1.219 GB, free: 1.496 MB / 0.9356 GB Notification: Performance of matching and sorting (n=18): time 0.0007876/0.9072, allocations: 247.3 kB / 1.22 GB, free: 1.25 MB / 0.9356 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.594e-05/0.9073, allocations: 55.41 kB / 1.22 GB, free: 1.184 MB / 0.9356 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001702/0.9074, allocations: 160.3 kB / 1.22 GB, free: 1.02 MB / 0.9356 GB Notification: Performance of collectPreVariables (initialization): time 3.364e-05/0.9075, allocations: 29.7 kB / 1.22 GB, free: 0.9844 MB / 0.9356 GB Notification: Performance of collectInitialEqns (initialization): time 9.191e-05/0.9076, allocations: 132 kB / 1.22 GB, free: 0.8516 MB / 0.9356 GB Notification: Performance of collectInitialBindings (initialization): time 5.404e-05/0.9076, allocations: 67.09 kB / 1.22 GB, free: 0.7852 MB / 0.9356 GB Notification: Performance of simplifyInitialFunctions (initialization): time 8.99e-05/0.9077, allocations: 49.92 kB / 1.22 GB, free: 0.7266 MB / 0.9356 GB Notification: Performance of setup shared object (initialization): time 0.0001354/0.9079, allocations: 330.8 kB / 1.22 GB, free: 404 kB / 0.9356 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002104/0.9081, allocations: 60.42 kB / 1.22 GB, free: 344 kB / 0.9356 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002538/0.9084, allocations: 142.3 kB / 1.221 GB, free: 168 kB / 0.9356 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004814/0.9089, allocations: 226.8 kB / 1.221 GB, free: 15.91 MB / 0.9512 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.288e-06/0.9089, allocations: 8 kB / 1.221 GB, free: 15.9 MB / 0.9512 GB Notification: Performance of matching and sorting (n=28) (initialization): time 0.0005919/0.9095, allocations: 241.2 kB / 1.221 GB, free: 15.66 MB / 0.9512 GB Notification: Performance of prepare postOptimizeDAE: time 1.77e-05/0.9095, allocations: 8 kB / 1.221 GB, free: 15.65 MB / 0.9512 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.516e-06/0.9095, allocations: 320 / 1.221 GB, free: 15.65 MB / 0.9512 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.844e-05/0.9095, allocations: 11.94 kB / 1.221 GB, free: 15.64 MB / 0.9512 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003595/0.9099, allocations: 63.95 kB / 1.221 GB, free: 15.58 MB / 0.9512 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.262e-05/0.9099, allocations: 7.938 kB / 1.221 GB, free: 15.57 MB / 0.9512 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002489/0.9102, allocations: 35.67 kB / 1.221 GB, free: 15.54 MB / 0.9512 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.424e-05/0.9102, allocations: 11.98 kB / 1.221 GB, free: 15.52 MB / 0.9512 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.0001168/0.9103, allocations: 133.7 kB / 1.221 GB, free: 15.38 MB / 0.9512 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.223e-05/0.9104, allocations: 11.91 kB / 1.221 GB, free: 15.37 MB / 0.9512 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0006247/0.911, allocations: 227.7 kB / 1.221 GB, free: 15.14 MB / 0.9512 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.477e-06/0.911, allocations: 0 / 1.221 GB, free: 15.14 MB / 0.9512 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.167e-06/0.911, allocations: 0 / 1.221 GB, free: 15.14 MB / 0.9512 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.167e-06/0.911, allocations: 4 kB / 1.221 GB, free: 15.14 MB / 0.9512 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003112/0.9114, allocations: 241.4 kB / 1.222 GB, free: 14.85 MB / 0.9512 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.124e-06/0.9114, allocations: 0 / 1.222 GB, free: 14.85 MB / 0.9512 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003152/0.9117, allocations: 51.91 kB / 1.222 GB, free: 14.8 MB / 0.9512 GB Notification: Performance of postOpt tearingSystem (simulation): time 3.336e-06/0.9117, allocations: 0 / 1.222 GB, free: 14.8 MB / 0.9512 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.477e-05/0.9117, allocations: 11.98 kB / 1.222 GB, free: 14.79 MB / 0.9512 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.224e-06/0.9118, allocations: 3.938 kB / 1.222 GB, free: 14.79 MB / 0.9512 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.92e-07/0.9118, allocations: 0 / 1.222 GB, free: 14.79 MB / 0.9512 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0005542/0.9123, allocations: 297.2 kB / 1.222 GB, free: 14.48 MB / 0.9512 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0001344/0.9125, allocations: 108.8 kB / 1.222 GB, free: 14.36 MB / 0.9512 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.071e-05/0.9125, allocations: 7.938 kB / 1.222 GB, free: 14.35 MB / 0.9512 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002787/0.9128, allocations: 19.98 kB / 1.222 GB, free: 14.33 MB / 0.9512 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.897e-05/0.9128, allocations: 7.984 kB / 1.222 GB, free: 14.32 MB / 0.9512 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.633e-05/0.9128, allocations: 11.98 kB / 1.222 GB, free: 14.31 MB / 0.9512 GB Notification: Performance of sorting global known variables: time 8.444e-05/0.9129, allocations: 117.3 kB / 1.222 GB, free: 14.2 MB / 0.9512 GB Notification: Performance of sort global known variables: time 1.81e-07/0.9129, allocations: 0 / 1.222 GB, free: 14.2 MB / 0.9512 GB Notification: Performance of remove unused functions: time 0.000378/0.9133, allocations: 64.12 kB / 1.222 GB, free: 14.13 MB / 0.9512 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.000226/0.9136, allocations: 135.2 kB / 1.223 GB, free: 13.99 MB / 0.9512 GB Notification: Performance of simCode: created initialization part: time 0.0005491/0.9141, allocations: 186.1 kB / 1.223 GB, free: 13.81 MB / 0.9512 GB Notification: Performance of simCode: created event and clocks part: time 3.156e-06/0.9141, allocations: 0 / 1.223 GB, free: 13.81 MB / 0.9512 GB Notification: Performance of simCode: created simulation system equations: time 0.000242/0.9144, allocations: 95.78 kB / 1.223 GB, free: 13.72 MB / 0.9512 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004815/0.9149, allocations: 64.12 kB / 1.223 GB, free: 13.66 MB / 0.9512 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001006/0.9159, allocations: 409.7 kB / 1.223 GB, free: 13.23 MB / 0.9512 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002791/0.9162, allocations: 0.7173 MB / 1.224 GB, free: 12.49 MB / 0.9512 GB Notification: Performance of simCode: alias equations: time 0.0002515/0.9164, allocations: 49.94 kB / 1.224 GB, free: 12.44 MB / 0.9512 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 8.924e-05/0.9165, allocations: 23.42 kB / 1.224 GB, free: 12.42 MB / 0.9512 GB Notification: Performance of SimCode: time 2.51e-07/0.9165, allocations: 0 / 1.224 GB, free: 12.42 MB / 0.9512 GB Notification: Performance of Templates: time 0.007227/0.9238, allocations: 3.419 MB / 1.227 GB, free: 9.074 MB / 0.9512 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/jenkins/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