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.2-maint.9.1.x/package.mo", uses=false) Using package Buildings with version 9.1.2 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.1.2-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.0008127/0.0008128, allocations: 91.3 kB / 15.06 MB, free: 1.098 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.0008748/0.0008749, allocations: 172.7 kB / 15.95 MB, free: 208 kB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.432/1.432, allocations: 223.3 MB / 240 MB, free: 5.242 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.1.2-maint.9.1.x/package.mo): time 2.458/2.458, allocations: 390.9 MB / 0.666 GB, free: 2.457 MB / 0.5137 GB Notification: Performance of FrontEnd - loaded program: time 0.0003398/0.0003402, allocations: 8 kB / 0.8153 GB, free: 13.66 MB / 0.67 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.811/0.8114, allocations: 142.4 MB / 0.9544 GB, free: 7.719 MB / 0.7169 GB Notification: Performance of NFInst.instantiate(Buildings.Media.Examples.AirProperties): time 0.1626/0.9741, allocations: 135.2 MB / 1.086 GB, free: 7.922 MB / 0.8419 GB Notification: Performance of NFInst.instExpressions: time 0.004259/0.9784, allocations: 3.328 MB / 1.09 GB, free: 4.586 MB / 0.8419 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001646/0.9786, allocations: 0 / 1.09 GB, free: 4.586 MB / 0.8419 GB Notification: Performance of NFTyping.typeComponents: time 0.0002923/0.9789, allocations: 47.72 kB / 1.09 GB, free: 4.539 MB / 0.8419 GB Notification: Performance of NFTyping.typeBindings: time 0.0003765/0.9793, allocations: 131.3 kB / 1.09 GB, free: 4.41 MB / 0.8419 GB Notification: Performance of NFTyping.typeClassSections: time 0.002146/0.9814, allocations: 0.6372 MB / 1.091 GB, free: 3.773 MB / 0.8419 GB Notification: Performance of NFFlatten.flatten: time 0.0004906/0.9819, allocations: 415.5 kB / 1.091 GB, free: 3.367 MB / 0.8419 GB Notification: Performance of NFFlatten.resolveConnections: time 5.66e-05/0.982, allocations: 9.562 kB / 1.091 GB, free: 3.355 MB / 0.8419 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0004286/0.9824, allocations: 175.4 kB / 1.091 GB, free: 3.184 MB / 0.8419 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0002365/0.9827, allocations: 139.5 kB / 1.091 GB, free: 3.047 MB / 0.8419 GB Notification: Performance of NFPackage.collectConstants: time 2.791e-05/0.9827, allocations: 8 kB / 1.091 GB, free: 3.039 MB / 0.8419 GB Notification: Performance of NFFlatten.collectFunctions: time 0.00159/0.9843, allocations: 0.6586 MB / 1.092 GB, free: 2.379 MB / 0.8419 GB Notification: Performance of NFScalarize.scalarize: time 0.0001373/0.9845, allocations: 71.77 kB / 1.092 GB, free: 2.309 MB / 0.8419 GB Notification: Performance of NFVerifyModel.verify: time 9.617e-05/0.9846, allocations: 61.64 kB / 1.092 GB, free: 2.242 MB / 0.8419 GB Notification: Performance of NFConvertDAE.convert: time 0.000839/0.9854, allocations: 389.1 kB / 1.092 GB, free: 1.863 MB / 0.8419 GB Notification: Performance of FrontEnd - DAE generated: time 6.272e-06/0.9854, allocations: 0 / 1.092 GB, free: 1.863 MB / 0.8419 GB Notification: Performance of FrontEnd: time 2.214e-06/0.9854, allocations: 0 / 1.092 GB, free: 1.863 MB / 0.8419 GB Notification: Performance of Transformations before backend: time 8.286e-06/0.9855, allocations: 4 kB / 1.092 GB, free: 1.859 MB / 0.8419 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.001186/0.9866, allocations: 0.5419 MB / 1.093 GB, free: 1.27 MB / 0.8419 GB Notification: Performance of prepare preOptimizeDAE: time 4.649e-05/0.9867, allocations: 12.03 kB / 1.093 GB, free: 1.258 MB / 0.8419 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001205/0.9879, allocations: 131.6 kB / 1.093 GB, free: 1.129 MB / 0.8419 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002978/0.9882, allocations: 222.7 kB / 1.093 GB, free: 0.8711 MB / 0.8419 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.281e-05/0.9882, allocations: 12.38 kB / 1.093 GB, free: 0.8594 MB / 0.8419 GB Notification: Performance of preOpt expandDerOperator (simulation): time 3.976e-05/0.9883, allocations: 23.98 kB / 1.093 GB, free: 0.8359 MB / 0.8419 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005967/0.9889, allocations: 338.3 kB / 1.094 GB, free: 500 kB / 0.8419 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.593e-05/0.9889, allocations: 7.938 kB / 1.094 GB, free: 492 kB / 0.8419 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.35e-05/0.989, allocations: 11.95 kB / 1.094 GB, free: 480 kB / 0.8419 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.963e-05/0.989, allocations: 15.98 kB / 1.094 GB, free: 464 kB / 0.8419 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.000541/0.9896, allocations: 316.1 kB / 1.094 GB, free: 148 kB / 0.8419 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.001648/0.9912, allocations: 1.109 MB / 1.095 GB, free: 14.94 MB / 0.8575 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0004964/0.9917, allocations: 186.7 kB / 1.095 GB, free: 14.75 MB / 0.8575 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001428/0.9919, allocations: 82.12 kB / 1.095 GB, free: 14.67 MB / 0.8575 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0005763/0.9925, allocations: 461.5 kB / 1.096 GB, free: 14.12 MB / 0.8575 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.455e-05/0.9925, allocations: 42.47 kB / 1.096 GB, free: 14.07 MB / 0.8575 GB Notification: Performance of pre-optimization done (n=21): time 1.683e-06/0.9925, allocations: 0 / 1.096 GB, free: 14.07 MB / 0.8575 GB Notification: Performance of matching and sorting (n=21): time 0.0006938/0.9932, allocations: 262.2 kB / 1.096 GB, free: 13.82 MB / 0.8575 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.456e-05/0.9933, allocations: 55.41 kB / 1.096 GB, free: 13.75 MB / 0.8575 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002261/0.9935, allocations: 207.1 kB / 1.096 GB, free: 13.54 MB / 0.8575 GB Notification: Performance of collectPreVariables (initialization): time 3.005e-05/0.9935, allocations: 29.7 kB / 1.096 GB, free: 13.5 MB / 0.8575 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001203/0.9937, allocations: 144.1 kB / 1.096 GB, free: 13.36 MB / 0.8575 GB Notification: Performance of collectInitialBindings (initialization): time 5.715e-05/0.9937, allocations: 74.89 kB / 1.096 GB, free: 13.28 MB / 0.8575 GB Notification: Performance of simplifyInitialFunctions (initialization): time 1.472e-05/0.9938, allocations: 4 kB / 1.097 GB, free: 13.28 MB / 0.8575 GB Notification: Performance of setup shared object (initialization): time 0.000164/0.9939, allocations: 334.8 kB / 1.097 GB, free: 12.94 MB / 0.8575 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001274/0.9941, allocations: 64.23 kB / 1.097 GB, free: 12.88 MB / 0.8575 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001955/0.9943, allocations: 164.7 kB / 1.097 GB, free: 12.68 MB / 0.8575 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001645/0.9944, allocations: 91.95 kB / 1.097 GB, free: 12.59 MB / 0.8575 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.765e-06/0.9944, allocations: 0 / 1.097 GB, free: 12.59 MB / 0.8575 GB Notification: Performance of matching and sorting (n=34) (initialization): time 0.0005384/0.995, allocations: 278.3 kB / 1.097 GB, free: 12.31 MB / 0.8575 GB Notification: Performance of prepare postOptimizeDAE: time 2.216e-05/0.995, allocations: 15.98 kB / 1.097 GB, free: 12.3 MB / 0.8575 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.879e-06/0.995, allocations: 4 kB / 1.097 GB, free: 12.29 MB / 0.8575 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.852e-05/0.9951, allocations: 4 kB / 1.097 GB, free: 12.29 MB / 0.8575 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000278/0.9953, allocations: 55.91 kB / 1.097 GB, free: 12.23 MB / 0.8575 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.496e-05/0.9954, allocations: 11.94 kB / 1.097 GB, free: 12.22 MB / 0.8575 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000229/0.9956, allocations: 35.59 kB / 1.098 GB, free: 12.19 MB / 0.8575 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.911e-05/0.9957, allocations: 12 kB / 1.098 GB, free: 12.18 MB / 0.8575 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 (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0001558/0.9958, allocations: 141.8 kB / 1.098 GB, free: 12.03 MB / 0.8575 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001231/0.9959, allocations: 23.81 kB / 1.098 GB, free: 12 MB / 0.8575 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0005062/0.9965, allocations: 277.1 kB / 1.098 GB, free: 11.73 MB / 0.8575 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.196e-05/0.9965, allocations: 7.953 kB / 1.098 GB, free: 11.72 MB / 0.8575 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.14e-06/0.9965, allocations: 0 / 1.098 GB, free: 11.72 MB / 0.8575 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.658e-06/0.9965, allocations: 0 / 1.098 GB, free: 11.72 MB / 0.8575 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0007937/0.9973, allocations: 0.5818 MB / 1.099 GB, free: 11.08 MB / 0.8575 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.166e-06/0.9973, allocations: 0 / 1.099 GB, free: 11.08 MB / 0.8575 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000189/0.9975, allocations: 35.94 kB / 1.099 GB, free: 11.04 MB / 0.8575 GB Notification: Performance of postOpt tearingSystem (simulation): time 5.2e-06/0.9975, allocations: 3.938 kB / 1.099 GB, free: 11.04 MB / 0.8575 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.839e-05/0.9975, allocations: 8 kB / 1.099 GB, free: 11.03 MB / 0.8575 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.385e-06/0.9976, allocations: 3.938 kB / 1.099 GB, free: 11.03 MB / 0.8575 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.935e-06/0.9976, allocations: 4 kB / 1.099 GB, free: 11.02 MB / 0.8575 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0005287/0.9981, allocations: 341 kB / 1.099 GB, free: 10.67 MB / 0.8575 GB Notification: Performance of postOpt removeConstants (simulation): time 0.000142/0.9983, allocations: 120.7 kB / 1.099 GB, free: 10.53 MB / 0.8575 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.36e-05/0.9983, allocations: 12 kB / 1.099 GB, free: 10.52 MB / 0.8575 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002446/0.9986, allocations: 12.61 kB / 1.099 GB, free: 10.51 MB / 0.8575 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.976e-05/0.9986, allocations: 19.91 kB / 1.099 GB, free: 10.49 MB / 0.8575 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.855e-05/0.9987, allocations: 16 kB / 1.099 GB, free: 10.47 MB / 0.8575 GB Notification: Performance of sorting global known variables: time 0.000153/0.9988, allocations: 152.3 kB / 1.099 GB, free: 10.32 MB / 0.8575 GB Notification: Performance of sort global known variables: time 3.01e-07/0.9988, allocations: 0 / 1.099 GB, free: 10.32 MB / 0.8575 GB Notification: Performance of remove unused functions: time 0.0005884/0.9994, allocations: 111.9 kB / 1.099 GB, free: 10.21 MB / 0.8575 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 (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0004605/0.9999, allocations: 194.9 kB / 1.1 GB, free: 10.02 MB / 0.8575 GB Notification: Performance of simCode: created initialization part: time 0.0004447/1, allocations: 208.2 kB / 1.1 GB, free: 9.812 MB / 0.8575 GB Notification: Performance of simCode: created event and clocks part: time 6.302e-06/1, allocations: 4 kB / 1.1 GB, free: 9.809 MB / 0.8575 GB Notification: Performance of simCode: created simulation system equations: time 0.0001601/1.001, allocations: 99.88 kB / 1.1 GB, free: 9.711 MB / 0.8575 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000668/1.001, allocations: 101.5 kB / 1.1 GB, free: 9.613 MB / 0.8575 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.000948/1.002, allocations: 0.558 MB / 1.1 GB, free: 9.02 MB / 0.8575 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003897/1.003, allocations: 0.7406 MB / 1.101 GB, free: 8.254 MB / 0.8575 GB Notification: Performance of simCode: alias equations: time 0.000323/1.003, allocations: 54.25 kB / 1.101 GB, free: 8.203 MB / 0.8575 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 7.932e-05/1.003, allocations: 23.44 kB / 1.101 GB, free: 8.18 MB / 0.8575 GB Notification: Performance of SimCode: time 5.91e-07/1.003, allocations: 0 / 1.101 GB, free: 8.18 MB / 0.8575 GB Notification: Performance of Templates: time 0.01054/1.014, allocations: 5.126 MB / 1.106 GB, free: 3.125 MB / 0.8575 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