Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_9_Buildings.Media.Examples.AirProperties.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.Examples.AirProperties,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|p|X.1.|d|eta|h|hLiq|u|s|g|f|hIse|beta|kappa|ddpT|ddTp|dddX.1.|cp|cv|lambda|pMed|TMed|MM",fileNamePrefix="Buildings_9_Buildings.Media.Examples.AirProperties") translateModel(Buildings.Media.Examples.AirProperties,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|p|X.1.|d|eta|h|hLiq|u|s|g|f|hIse|beta|kappa|ddpT|ddTp|dddX.1.|cp|cv|lambda|pMed|TMed|MM",fileNamePrefix="Buildings_9_Buildings.Media.Examples.AirProperties") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.005328/0.005328, allocations: 101.9 kB / 15.73 MB, free: 6.043 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.001172/0.001172, allocations: 188.1 kB / 16.67 MB, free: 5.977 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.408/1.408, allocations: 222.9 MB / 240.4 MB, free: 4.32 MB / 190.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.482/2.482, allocations: 390.2 MB / 0.6648 GB, free: 236 kB / 0.5137 GB Notification: Performance of FrontEnd - loaded program: time 0.00131/0.00131, allocations: 74.19 kB / 0.9509 GB, free: 5.602 MB / 0.7169 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3348/0.3362, allocations: 140.4 MB / 1.088 GB, free: 1.469 MB / 0.8419 GB Notification: Performance of NFInst.instantiate(Buildings.Media.Examples.AirProperties): time 0.1649/0.5012, allocations: 149.1 MB / 1.234 GB, free: 11.78 MB / 0.9981 GB Notification: Performance of NFInst.instExpressions: time 0.00411/0.5053, allocations: 3.606 MB / 1.237 GB, free: 8.164 MB / 0.9981 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002068/0.5055, allocations: 4 kB / 1.237 GB, free: 8.16 MB / 0.9981 GB Notification: Performance of NFTyping.typeComponents: time 0.0004012/0.506, allocations: 63.64 kB / 1.237 GB, free: 8.098 MB / 0.9981 GB Notification: Performance of NFTyping.typeBindings: time 0.0004698/0.5065, allocations: 135.2 kB / 1.237 GB, free: 7.965 MB / 0.9981 GB Notification: Performance of NFTyping.typeClassSections: time 0.003637/0.5102, allocations: 1.016 MB / 1.238 GB, free: 6.949 MB / 0.9981 GB Notification: Performance of NFFlatten.flatten: time 0.0006643/0.5108, allocations: 327.6 kB / 1.239 GB, free: 6.629 MB / 0.9981 GB Notification: Performance of NFFlatten.resolveConnections: time 8.103e-05/0.5109, allocations: 21.55 kB / 1.239 GB, free: 6.605 MB / 0.9981 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0004886/0.5114, allocations: 179.2 kB / 1.239 GB, free: 6.43 MB / 0.9981 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0002231/0.5117, allocations: 143.4 kB / 1.239 GB, free: 6.289 MB / 0.9981 GB Notification: Performance of NFPackage.collectConstants: time 2.9e-05/0.5117, allocations: 8 kB / 1.239 GB, free: 6.281 MB / 0.9981 GB Notification: Performance of NFFlatten.collectFunctions: time 0.003073/0.5148, allocations: 1.224 MB / 1.24 GB, free: 5.055 MB / 0.9981 GB Notification: Performance of NFScalarize.scalarize: time 0.0001195/0.5149, allocations: 67.84 kB / 1.24 GB, free: 4.988 MB / 0.9981 GB Notification: Performance of NFVerifyModel.verify: time 0.0001327/0.5151, allocations: 107.5 kB / 1.24 GB, free: 4.883 MB / 0.9981 GB Notification: Performance of NFConvertDAE.convert: time 0.001465/0.5165, allocations: 0.6351 MB / 1.241 GB, free: 4.246 MB / 0.9981 GB Notification: Performance of FrontEnd - DAE generated: time 7.253e-06/0.5166, allocations: 0 / 1.241 GB, free: 4.246 MB / 0.9981 GB Notification: Performance of FrontEnd: time 2.004e-06/0.5166, allocations: 4 kB / 1.241 GB, free: 4.242 MB / 0.9981 GB Notification: Performance of Transformations before backend: time 1.239e-05/0.5166, allocations: 0 / 1.241 GB, free: 4.242 MB / 0.9981 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 52 * Number of variables: 52 Notification: Performance of Generate backend data structure: time 0.001248/0.5178, allocations: 0.5889 MB / 1.241 GB, free: 3.605 MB / 0.9981 GB Notification: Performance of prepare preOptimizeDAE: time 4.294e-05/0.5179, allocations: 8.031 kB / 1.241 GB, free: 3.598 MB / 0.9981 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001221/0.5191, allocations: 140.5 kB / 1.242 GB, free: 3.461 MB / 0.9981 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002994/0.5194, allocations: 220.1 kB / 1.242 GB, free: 3.207 MB / 0.9981 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.365e-05/0.5195, allocations: 16.31 kB / 1.242 GB, free: 3.191 MB / 0.9981 GB Notification: Performance of preOpt expandDerOperator (simulation): time 3.706e-05/0.5195, allocations: 16 kB / 1.242 GB, free: 3.176 MB / 0.9981 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005649/0.5201, allocations: 342 kB / 1.242 GB, free: 2.82 MB / 0.9981 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.318e-05/0.5201, allocations: 0 / 1.242 GB, free: 2.82 MB / 0.9981 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.222e-05/0.5201, allocations: 8 kB / 1.242 GB, free: 2.812 MB / 0.9981 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.451e-05/0.5202, allocations: 19.98 kB / 1.242 GB, free: 2.793 MB / 0.9981 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0005342/0.5207, allocations: 320.1 kB / 1.243 GB, free: 2.48 MB / 0.9981 GB Warning: The model contains alias variables with redundant start and/or conflicting nominal values. It is recommended to resolve the conflicts, because otherwise the system could be hard to solve. To print the conflicting alias sets and the chosen candidates please use -d=aliasConflicts. Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001913/0.5226, allocations: 1.109 MB / 1.244 GB, free: 1.281 MB / 0.9981 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0005173/0.5232, allocations: 186.5 kB / 1.244 GB, free: 1.09 MB / 0.9981 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001382/0.5233, allocations: 84.72 kB / 1.244 GB, free: 1.004 MB / 0.9981 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0005863/0.5239, allocations: 465.4 kB / 1.244 GB, free: 468 kB / 0.9981 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.926e-05/0.524, allocations: 38.5 kB / 1.244 GB, free: 420 kB / 0.9981 GB Notification: Performance of pre-optimization done (n=21): time 2.315e-06/0.524, allocations: 0 / 1.244 GB, free: 420 kB / 0.9981 GB Notification: Performance of matching and sorting (n=21): time 0.0006927/0.5247, allocations: 254.5 kB / 1.245 GB, free: 160 kB / 0.9981 GB Notification: Performance of inlineWhenForInitialization (initialization): time 5.451e-05/0.5247, allocations: 59.34 kB / 1.245 GB, free: 88 kB / 0.9981 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002458/0.525, allocations: 211 kB / 1.245 GB, free: 15.87 MB / 1.014 GB Notification: Performance of collectPreVariables (initialization): time 3.186e-05/0.525, allocations: 29.7 kB / 1.245 GB, free: 15.83 MB / 1.014 GB Notification: Performance of collectInitialEqns (initialization): time 9.002e-05/0.5251, allocations: 140 kB / 1.245 GB, free: 15.69 MB / 1.014 GB Notification: Performance of collectInitialBindings (initialization): time 5.651e-05/0.5252, allocations: 78.98 kB / 1.245 GB, free: 15.61 MB / 1.014 GB Notification: Performance of simplifyInitialFunctions (initialization): time 8.68e-05/0.5253, allocations: 53.61 kB / 1.245 GB, free: 15.55 MB / 1.014 GB Notification: Performance of setup shared object (initialization): time 0.0001473/0.5254, allocations: 326.8 kB / 1.245 GB, free: 15.23 MB / 1.014 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001284/0.5256, allocations: 68.22 kB / 1.246 GB, free: 15.16 MB / 1.014 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001783/0.5258, allocations: 168.7 kB / 1.246 GB, free: 14.96 MB / 1.014 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003122/0.5261, allocations: 249.7 kB / 1.246 GB, free: 14.68 MB / 1.014 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.665e-06/0.5261, allocations: 3.938 kB / 1.246 GB, free: 14.67 MB / 1.014 GB Notification: Performance of matching and sorting (n=34) (initialization): time 0.0005173/0.5266, allocations: 285.1 kB / 1.246 GB, free: 14.39 MB / 1.014 GB Notification: Performance of prepare postOptimizeDAE: time 1.93e-05/0.5266, allocations: 4.375 kB / 1.246 GB, free: 14.38 MB / 1.014 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.696e-06/0.5267, allocations: 8 kB / 1.246 GB, free: 14.38 MB / 1.014 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.091e-05/0.5267, allocations: 7.938 kB / 1.246 GB, free: 14.37 MB / 1.014 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002617/0.527, allocations: 51.92 kB / 1.246 GB, free: 14.32 MB / 1.014 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.4e-05/0.527, allocations: 15.92 kB / 1.246 GB, free: 14.3 MB / 1.014 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001986/0.5272, allocations: 27.69 kB / 1.246 GB, free: 14.27 MB / 1.014 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.846e-05/0.5272, allocations: 12 kB / 1.246 GB, free: 14.26 MB / 1.014 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 13 * 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 (31): * Single equations (assignments): 30 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 1 * 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.0001337/0.5274, allocations: 140.2 kB / 1.246 GB, free: 14.12 MB / 1.014 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001306/0.5275, allocations: 31.72 kB / 1.246 GB, free: 14.09 MB / 1.014 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0004771/0.528, allocations: 275.3 kB / 1.247 GB, free: 13.81 MB / 1.014 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.804e-06/0.528, allocations: 3.938 kB / 1.247 GB, free: 13.81 MB / 1.014 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.526e-06/0.528, allocations: 7.984 kB / 1.247 GB, free: 13.8 MB / 1.014 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.408e-06/0.528, allocations: 0 / 1.247 GB, free: 13.8 MB / 1.014 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0007192/0.5288, allocations: 0.5894 MB / 1.247 GB, free: 13.15 MB / 1.014 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.164e-06/0.5288, allocations: 0 / 1.247 GB, free: 13.15 MB / 1.014 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001798/0.529, allocations: 35.92 kB / 1.247 GB, free: 13.11 MB / 1.014 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.555e-06/0.529, allocations: 4.062 kB / 1.247 GB, free: 13.11 MB / 1.014 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.985e-05/0.529, allocations: 8 kB / 1.247 GB, free: 13.1 MB / 1.014 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.154e-06/0.529, allocations: 0 / 1.247 GB, free: 13.1 MB / 1.014 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.515e-06/0.529, allocations: 4 kB / 1.247 GB, free: 13.1 MB / 1.014 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004991/0.5295, allocations: 343.1 kB / 1.248 GB, free: 12.74 MB / 1.014 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0001283/0.5296, allocations: 124.8 kB / 1.248 GB, free: 12.6 MB / 1.014 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.509e-05/0.5297, allocations: 8 kB / 1.248 GB, free: 12.59 MB / 1.014 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002411/0.5299, allocations: 12 kB / 1.248 GB, free: 12.58 MB / 1.014 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.752e-05/0.53, allocations: 7.984 kB / 1.248 GB, free: 12.57 MB / 1.014 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.103e-05/0.53, allocations: 19.98 kB / 1.248 GB, free: 12.55 MB / 1.014 GB Notification: Performance of sorting global known variables: time 0.0001359/0.5302, allocations: 148.3 kB / 1.248 GB, free: 12.41 MB / 1.014 GB Notification: Performance of sort global known variables: time 1.1e-07/0.5302, allocations: 0 / 1.248 GB, free: 12.41 MB / 1.014 GB Notification: Performance of remove unused functions: time 0.000627/0.5308, allocations: 123.8 kB / 1.248 GB, free: 12.29 MB / 1.014 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 3 * 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 (19): * Single equations (assignments): 17 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 2 * 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.0005152/0.5313, allocations: 218.9 kB / 1.248 GB, free: 12.06 MB / 1.014 GB Notification: Performance of simCode: created initialization part: time 0.0004427/0.5318, allocations: 201.9 kB / 1.249 GB, free: 11.87 MB / 1.014 GB Notification: Performance of simCode: created event and clocks part: time 4.158e-06/0.5318, allocations: 128 / 1.249 GB, free: 11.87 MB / 1.014 GB Notification: Performance of simCode: created simulation system equations: time 0.0001805/0.532, allocations: 113.8 kB / 1.249 GB, free: 11.76 MB / 1.014 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006747/0.5327, allocations: 99.91 kB / 1.249 GB, free: 11.66 MB / 1.014 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0008581/0.5335, allocations: 465.4 kB / 1.249 GB, free: 11.18 MB / 1.014 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003535/0.5339, allocations: 0.7328 MB / 1.25 GB, free: 10.42 MB / 1.014 GB Notification: Performance of simCode: alias equations: time 0.0002291/0.5341, allocations: 62.23 kB / 1.25 GB, free: 10.36 MB / 1.014 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 8.082e-05/0.5342, allocations: 27.44 kB / 1.25 GB, free: 10.33 MB / 1.014 GB Notification: Performance of SimCode: time 2.61e-07/0.5342, allocations: 4 kB / 1.25 GB, free: 10.33 MB / 1.014 GB Notification: Performance of Templates: time 0.01012/0.5444, allocations: 5.507 MB / 1.255 GB, free: 4.895 MB / 1.014 GB make -j1 -f Buildings_9_Buildings.Media.Examples.AirProperties.makefile (rm -f Buildings_9_Buildings.Media.Examples.AirProperties.pipe ; mkfifo Buildings_9_Buildings.Media.Examples.AirProperties.pipe ; head -c 1048576 < Buildings_9_Buildings.Media.Examples.AirProperties.pipe >> ../files/Buildings_9_Buildings.Media.Examples.AirProperties.sim & ./Buildings_9_Buildings.Media.Examples.AirProperties -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Buildings_9_Buildings.Media.Examples.AirProperties.pipe 2>&1) diffSimulationResults("Buildings_9_Buildings.Media.Examples.AirProperties_res.mat","/mnt/ReferenceFiles/Buildings/csv/maint_9.1.x/Buildings_Media_Examples_AirProperties.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_9_Buildings.Media.Examples.AirProperties.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches