Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_10_Buildings.Media.Examples.WaterProperties.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 10.1.1-maint.10.0.x/package.mo", uses=false) Using package Buildings with version 10.1.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 10.1.1-maint.10.0.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.Examples.WaterProperties,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_10_Buildings.Media.Examples.WaterProperties") translateModel(Buildings.Media.Examples.WaterProperties,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_10_Buildings.Media.Examples.WaterProperties") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0015/0.0015, allocations: 111.3 kB / 15.23 MB, free: 0.6406 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.001477/0.001477, allocations: 198.1 kB / 16.14 MB, free: 6.711 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.552/1.552, allocations: 222.9 MB / 239.8 MB, free: 4.621 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 10.1.1-maint.10.0.x/package.mo): time 2.849/2.849, allocations: 437 MB / 0.7099 GB, free: 5.344 MB / 0.5606 GB Notification: Performance of FrontEnd - loaded program: time 0.002245/0.002245, allocations: 63.89 kB / 0.8685 GB, free: 5.176 MB / 0.7169 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.8892/0.8914, allocations: 151.6 MB / 1.017 GB, free: 2.75 MB / 0.7637 GB Notification: Performance of NFInst.instantiate(Buildings.Media.Examples.WaterProperties): time 0.007531/0.899, allocations: 4.754 MB / 1.021 GB, free: 13.97 MB / 0.7794 GB Notification: Performance of NFInst.instExpressions: time 0.003559/0.9026, allocations: 2.726 MB / 1.024 GB, free: 11.23 MB / 0.7794 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001248/0.9028, allocations: 4 kB / 1.024 GB, free: 11.23 MB / 0.7794 GB Notification: Performance of NFTyping.typeComponents: time 0.0003283/0.9031, allocations: 35.8 kB / 1.024 GB, free: 11.2 MB / 0.7794 GB Notification: Performance of NFTyping.typeBindings: time 0.0003256/0.9035, allocations: 91.42 kB / 1.024 GB, free: 11.11 MB / 0.7794 GB Notification: Performance of NFTyping.typeClassSections: time 0.001522/0.9051, allocations: 475.1 kB / 1.025 GB, free: 10.64 MB / 0.7794 GB Notification: Performance of NFFlatten.flatten: time 0.0003843/0.9055, allocations: 295.9 kB / 1.025 GB, free: 10.35 MB / 0.7794 GB Notification: Performance of NFFlatten.resolveConnections: time 5.783e-05/0.9055, allocations: 13.55 kB / 1.025 GB, free: 10.34 MB / 0.7794 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0002252/0.9057, allocations: 111.5 kB / 1.025 GB, free: 10.23 MB / 0.7794 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0001708/0.9059, allocations: 95.59 kB / 1.025 GB, free: 10.13 MB / 0.7794 GB Notification: Performance of NFPackage.collectConstants: time 3.123e-05/0.906, allocations: 8 kB / 1.025 GB, free: 10.12 MB / 0.7794 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0008366/0.9068, allocations: 367.2 kB / 1.025 GB, free: 9.766 MB / 0.7794 GB Notification: Performance of NFScalarize.scalarize: time 9.855e-05/0.9069, allocations: 51.77 kB / 1.025 GB, free: 9.715 MB / 0.7794 GB Notification: Performance of NFVerifyModel.verify: time 0.0001011/0.907, allocations: 71.67 kB / 1.025 GB, free: 9.645 MB / 0.7794 GB Notification: Performance of NFConvertDAE.convert: time 0.000655/0.9077, allocations: 357.1 kB / 1.026 GB, free: 9.297 MB / 0.7794 GB Notification: Performance of FrontEnd - DAE generated: time 1.339e-05/0.9077, allocations: 4 kB / 1.026 GB, free: 9.293 MB / 0.7794 GB Notification: Performance of FrontEnd: time 1.082e-06/0.9077, allocations: 3.938 kB / 1.026 GB, free: 9.289 MB / 0.7794 GB Notification: Performance of Transformations before backend: time 6.843e-06/0.9077, allocations: 4 kB / 1.026 GB, free: 9.285 MB / 0.7794 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.0009568/0.9087, allocations: 0.4972 MB / 1.026 GB, free: 8.742 MB / 0.7794 GB Notification: Performance of prepare preOptimizeDAE: time 6.509e-05/0.9088, allocations: 12.03 kB / 1.026 GB, free: 8.73 MB / 0.7794 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001768/0.909, allocations: 24.83 kB / 1.026 GB, free: 8.707 MB / 0.7794 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002551/0.9092, allocations: 212 kB / 1.027 GB, free: 8.461 MB / 0.7794 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.076e-05/0.9092, allocations: 12.7 kB / 1.027 GB, free: 8.449 MB / 0.7794 GB Notification: Performance of preOpt expandDerOperator (simulation): time 2.632e-05/0.9093, allocations: 16.31 kB / 1.027 GB, free: 8.434 MB / 0.7794 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004416/0.9097, allocations: 244.3 kB / 1.027 GB, free: 8.176 MB / 0.7794 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.414e-05/0.9098, allocations: 3.938 kB / 1.027 GB, free: 8.172 MB / 0.7794 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.97e-05/0.9098, allocations: 8 kB / 1.027 GB, free: 8.164 MB / 0.7794 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.856e-05/0.9098, allocations: 8 kB / 1.027 GB, free: 8.156 MB / 0.7794 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0005482/0.9104, allocations: 435.3 kB / 1.027 GB, free: 7.73 MB / 0.7794 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001339/0.9117, allocations: 0.9371 MB / 1.028 GB, free: 6.703 MB / 0.7794 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0003162/0.9121, allocations: 161.1 kB / 1.028 GB, free: 6.539 MB / 0.7794 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001151/0.9122, allocations: 64.88 kB / 1.028 GB, free: 6.473 MB / 0.7794 GB Notification: Performance of preOpt evalFunc (simulation): time 0.001972/0.9142, allocations: 1.825 MB / 1.03 GB, free: 4.289 MB / 0.7794 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.513e-05/0.9142, allocations: 34.56 kB / 1.03 GB, free: 4.246 MB / 0.7794 GB Notification: Performance of pre-optimization done (n=15): time 1.623e-06/0.9142, allocations: 0 / 1.03 GB, free: 4.246 MB / 0.7794 GB Notification: Performance of matching and sorting (n=15): time 0.0003633/0.9146, allocations: 146.8 kB / 1.03 GB, free: 4.098 MB / 0.7794 GB Notification: Performance of inlineWhenForInitialization (initialization): time 5.731e-05/0.9146, allocations: 63.28 kB / 1.03 GB, free: 4.023 MB / 0.7794 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001705/0.9148, allocations: 173.1 kB / 1.031 GB, free: 3.844 MB / 0.7794 GB Notification: Performance of collectPreVariables (initialization): time 2.832e-05/0.9149, allocations: 33.64 kB / 1.031 GB, free: 3.805 MB / 0.7794 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001076/0.915, allocations: 147.8 kB / 1.031 GB, free: 3.656 MB / 0.7794 GB Notification: Performance of collectInitialBindings (initialization): time 4.281e-05/0.915, allocations: 43.36 kB / 1.031 GB, free: 3.613 MB / 0.7794 GB Notification: Performance of simplifyInitialFunctions (initialization): time 7.437e-05/0.9151, allocations: 53.61 kB / 1.031 GB, free: 3.555 MB / 0.7794 GB Notification: Performance of setup shared object (initialization): time 0.0001532/0.9153, allocations: 326.8 kB / 1.031 GB, free: 3.227 MB / 0.7794 GB Notification: Performance of preBalanceInitialSystem (initialization): time 7.012e-05/0.9153, allocations: 31.98 kB / 1.031 GB, free: 3.195 MB / 0.7794 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001664/0.9155, allocations: 141.7 kB / 1.031 GB, free: 3.008 MB / 0.7794 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002606/0.9158, allocations: 206.6 kB / 1.031 GB, free: 2.758 MB / 0.7794 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.725e-06/0.9158, allocations: 0 / 1.031 GB, free: 2.758 MB / 0.7794 GB Notification: Performance of matching and sorting (n=30) (initialization): time 0.0003464/0.9161, allocations: 217.9 kB / 1.032 GB, free: 2.539 MB / 0.7794 GB Notification: Performance of prepare postOptimizeDAE: time 1.888e-05/0.9162, allocations: 8 kB / 1.032 GB, free: 2.531 MB / 0.7794 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.232e-06/0.9162, allocations: 0 / 1.032 GB, free: 2.531 MB / 0.7794 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.919e-05/0.9162, allocations: 8 kB / 1.032 GB, free: 2.523 MB / 0.7794 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001809/0.9164, allocations: 59.84 kB / 1.032 GB, free: 2.465 MB / 0.7794 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.135e-05/0.9164, allocations: 11.94 kB / 1.032 GB, free: 2.453 MB / 0.7794 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001171/0.9165, allocations: 23.75 kB / 1.032 GB, free: 2.43 MB / 0.7794 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.115e-05/0.9166, allocations: 12 kB / 1.032 GB, free: 2.418 MB / 0.7794 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 16 * 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 (30): * Single equations (assignments): 29 * Array equations: 1 * 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.0001319/0.9167, allocations: 135.7 kB / 1.032 GB, free: 2.277 MB / 0.7794 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.657e-05/0.9168, allocations: 23.8 kB / 1.032 GB, free: 2.254 MB / 0.7794 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0003222/0.9171, allocations: 156.5 kB / 1.032 GB, free: 2.102 MB / 0.7794 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.589e-05/0.9171, allocations: 7.938 kB / 1.032 GB, free: 2.094 MB / 0.7794 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.559e-06/0.9171, allocations: 0 / 1.032 GB, free: 2.094 MB / 0.7794 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.993e-06/0.9172, allocations: 3.984 kB / 1.032 GB, free: 2.09 MB / 0.7794 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002762/0.9174, allocations: 205.6 kB / 1.032 GB, free: 1.84 MB / 0.7794 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.673e-06/0.9175, allocations: 0 / 1.032 GB, free: 1.84 MB / 0.7794 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 9.514e-05/0.9176, allocations: 35.92 kB / 1.032 GB, free: 1.805 MB / 0.7794 GB Notification: Performance of postOpt tearingSystem (simulation): time 4.137e-06/0.9176, allocations: 0 / 1.032 GB, free: 1.805 MB / 0.7794 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.392e-05/0.9176, allocations: 11.94 kB / 1.032 GB, free: 1.793 MB / 0.7794 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 5.811e-06/0.9176, allocations: 3.938 kB / 1.032 GB, free: 1.789 MB / 0.7794 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.12e-07/0.9176, allocations: 0 / 1.032 GB, free: 1.789 MB / 0.7794 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002729/0.9179, allocations: 217.5 kB / 1.033 GB, free: 1.562 MB / 0.7794 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0001844/0.9181, allocations: 112.8 kB / 1.033 GB, free: 1.434 MB / 0.7794 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.073e-05/0.9181, allocations: 8 kB / 1.033 GB, free: 1.426 MB / 0.7794 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002028/0.9183, allocations: 23.86 kB / 1.033 GB, free: 1.402 MB / 0.7794 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.794e-05/0.9184, allocations: 11.98 kB / 1.033 GB, free: 1.391 MB / 0.7794 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.484e-05/0.9184, allocations: 8 kB / 1.033 GB, free: 1.383 MB / 0.7794 GB Notification: Performance of sorting global known variables: time 0.0001116/0.9185, allocations: 125.6 kB / 1.033 GB, free: 1.262 MB / 0.7794 GB Notification: Performance of sort global known variables: time 1.81e-07/0.9185, allocations: 0 / 1.033 GB, free: 1.262 MB / 0.7794 GB Notification: Performance of remove unused functions: time 0.0003995/0.9189, allocations: 79.98 kB / 1.033 GB, free: 1.184 MB / 0.7794 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 (15): * Single equations (assignments): 14 * Array equations: 1 * 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.0004531/0.9194, allocations: 175.7 kB / 1.033 GB, free: 1.004 MB / 0.7794 GB Notification: Performance of simCode: created initialization part: time 0.0002608/0.9196, allocations: 115.8 kB / 1.033 GB, free: 0.8906 MB / 0.7794 GB Notification: Performance of simCode: created event and clocks part: time 2.394e-06/0.9196, allocations: 0.9375 kB / 1.033 GB, free: 0.8906 MB / 0.7794 GB Notification: Performance of simCode: created simulation system equations: time 7.338e-05/0.9197, allocations: 43.92 kB / 1.033 GB, free: 0.8477 MB / 0.7794 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004731/0.9202, allocations: 47.95 kB / 1.033 GB, free: 0.8008 MB / 0.7794 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0009023/0.9211, allocations: 402.4 kB / 1.034 GB, free: 396 kB / 0.7794 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005228/0.9217, allocations: 0.7131 MB / 1.034 GB, free: 15.65 MB / 0.795 GB Notification: Performance of simCode: alias equations: time 0.0001829/0.9219, allocations: 53.78 kB / 1.034 GB, free: 15.59 MB / 0.795 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.738e-05/0.9219, allocations: 23.44 kB / 1.034 GB, free: 15.57 MB / 0.795 GB Notification: Performance of SimCode: time 2.41e-07/0.9219, allocations: 4 kB / 1.034 GB, free: 15.57 MB / 0.795 GB Notification: Performance of Templates: time 0.008476/0.9304, allocations: 3.305 MB / 1.038 GB, free: 12.29 MB / 0.795 GB make -j1 -f Buildings_10_Buildings.Media.Examples.WaterProperties.makefile (rm -f Buildings_10_Buildings.Media.Examples.WaterProperties.pipe ; mkfifo Buildings_10_Buildings.Media.Examples.WaterProperties.pipe ; head -c 1048576 < Buildings_10_Buildings.Media.Examples.WaterProperties.pipe >> ../files/Buildings_10_Buildings.Media.Examples.WaterProperties.sim & ./Buildings_10_Buildings.Media.Examples.WaterProperties -abortSlowSimulation -alarm=400 -emit_protected -lv LOG_STATS > Buildings_10_Buildings.Media.Examples.WaterProperties.pipe 2>&1) diffSimulationResults("Buildings_10_Buildings.Media.Examples.WaterProperties_res.mat","/mnt/ReferenceFiles/Buildings/csv/maint_10.0.x/Buildings_Media_Examples_WaterProperties.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_10_Buildings.Media.Examples.WaterProperties.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches