Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_9_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 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.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_9_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_9_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.001461/0.001461, allocations: 108.6 kB / 16.41 MB, free: 6.027 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.001658/0.001658, allocations: 188.7 kB / 17.34 MB, free: 5.633 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.395/1.395, allocations: 222.9 MB / 241 MB, free: 15.16 MB / 206.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.268/2.268, allocations: 390.2 MB / 0.6655 GB, free: 0.6758 MB / 0.5294 GB Notification: Performance of FrontEnd - loaded program: time 0.001428/0.001428, allocations: 63.89 kB / 0.9516 GB, free: 7.645 MB / 0.7325 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.784/0.7854, allocations: 140.4 MB / 1.089 GB, free: 5.535 MB / 0.8575 GB Notification: Performance of NFInst.instantiate(Buildings.Media.Examples.WaterProperties): time 0.005526/0.791, allocations: 4.716 MB / 1.093 GB, free: 2.121 MB / 0.8575 GB Notification: Performance of NFInst.instExpressions: time 0.002578/0.7936, allocations: 2.697 MB / 1.096 GB, free: 208 kB / 0.8575 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001028/0.7937, allocations: 5 kB / 1.096 GB, free: 204 kB / 0.8575 GB Notification: Performance of NFTyping.typeComponents: time 0.0002871/0.794, allocations: 46.02 kB / 1.096 GB, free: 180 kB / 0.8575 GB Notification: Performance of NFTyping.typeBindings: time 0.0002885/0.7943, allocations: 101.2 kB / 1.096 GB, free: 112 kB / 0.8575 GB Notification: Performance of NFTyping.typeClassSections: time 0.001364/0.7957, allocations: 0.4943 MB / 1.097 GB, free: 15.86 MB / 0.8731 GB Notification: Performance of NFFlatten.flatten: time 0.0003681/0.7961, allocations: 240 kB / 1.097 GB, free: 15.75 MB / 0.8731 GB Notification: Performance of NFFlatten.resolveConnections: time 5.43e-05/0.7961, allocations: 10.2 kB / 1.097 GB, free: 15.75 MB / 0.8731 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0002455/0.7964, allocations: 112.1 kB / 1.097 GB, free: 15.71 MB / 0.8731 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0001826/0.7966, allocations: 99.38 kB / 1.097 GB, free: 15.66 MB / 0.8731 GB Notification: Performance of NFPackage.collectConstants: time 3.086e-05/0.7966, allocations: 8.344 kB / 1.097 GB, free: 15.66 MB / 0.8731 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0008906/0.7975, allocations: 361.1 kB / 1.097 GB, free: 15.52 MB / 0.8731 GB Notification: Performance of NFScalarize.scalarize: time 9.258e-05/0.7976, allocations: 42.67 kB / 1.097 GB, free: 15.49 MB / 0.8731 GB Notification: Performance of NFVerifyModel.verify: time 0.0001348/0.7978, allocations: 82.41 kB / 1.097 GB, free: 15.45 MB / 0.8731 GB Notification: Performance of NFConvertDAE.convert: time 0.000732/0.7985, allocations: 354.2 kB / 1.098 GB, free: 15.34 MB / 0.8731 GB Notification: Performance of FrontEnd - DAE generated: time 4.529e-06/0.7985, allocations: 0.75 kB / 1.098 GB, free: 15.34 MB / 0.8731 GB Notification: Performance of FrontEnd: time 2.164e-06/0.7985, allocations: 0.6562 kB / 1.098 GB, free: 15.34 MB / 0.8731 GB Notification: Performance of Transformations before backend: time 1.147e-05/0.7985, allocations: 1.094 kB / 1.098 GB, free: 15.34 MB / 0.8731 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.0008623/0.7994, allocations: 0.503 MB / 1.098 GB, free: 14.88 MB / 0.8731 GB Notification: Performance of prepare preOptimizeDAE: time 4.292e-05/0.7995, allocations: 9.375 kB / 1.098 GB, free: 14.88 MB / 0.8731 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001791/0.7996, allocations: 23 kB / 1.098 GB, free: 14.88 MB / 0.8731 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003313/0.8, allocations: 218.6 kB / 1.098 GB, free: 14.65 MB / 0.8731 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.049e-05/0.8, allocations: 14.08 kB / 1.099 GB, free: 14.64 MB / 0.8731 GB Notification: Performance of preOpt expandDerOperator (simulation): time 2.851e-05/0.8, allocations: 14.88 kB / 1.099 GB, free: 14.64 MB / 0.8731 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000456/0.8005, allocations: 249.6 kB / 1.099 GB, free: 14.5 MB / 0.8731 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.001e-05/0.8005, allocations: 0.7812 kB / 1.099 GB, free: 14.5 MB / 0.8731 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.708e-05/0.8006, allocations: 7.734 kB / 1.099 GB, free: 14.5 MB / 0.8731 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.808e-05/0.8006, allocations: 5.969 kB / 1.099 GB, free: 14.5 MB / 0.8731 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0006258/0.8012, allocations: 441.3 kB / 1.099 GB, free: 14.41 MB / 0.8731 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001234/0.8025, allocations: 0.942 MB / 1.1 GB, free: 13.57 MB / 0.8731 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0003074/0.8028, allocations: 162.6 kB / 1.1 GB, free: 13.51 MB / 0.8731 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001183/0.8029, allocations: 65.03 kB / 1.1 GB, free: 13.48 MB / 0.8731 GB Notification: Performance of preOpt evalFunc (simulation): time 0.001441/0.8044, allocations: 1.832 MB / 1.102 GB, free: 11.44 MB / 0.8731 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.523e-05/0.8044, allocations: 33.27 kB / 1.102 GB, free: 11.4 MB / 0.8731 GB Notification: Performance of pre-optimization done (n=15): time 1.864e-06/0.8044, allocations: 0 / 1.102 GB, free: 11.4 MB / 0.8731 GB Notification: Performance of matching and sorting (n=15): time 0.0003526/0.8048, allocations: 150.1 kB / 1.102 GB, free: 11.33 MB / 0.8731 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.696e-05/0.8048, allocations: 56.69 kB / 1.102 GB, free: 11.27 MB / 0.8731 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001645/0.805, allocations: 175.4 kB / 1.103 GB, free: 11.13 MB / 0.8731 GB Notification: Performance of collectPreVariables (initialization): time 2.749e-05/0.805, allocations: 32.72 kB / 1.103 GB, free: 11.1 MB / 0.8731 GB Notification: Performance of collectInitialEqns (initialization): time 8.917e-05/0.8051, allocations: 145.5 kB / 1.103 GB, free: 10.96 MB / 0.8731 GB Notification: Performance of collectInitialBindings (initialization): time 4.764e-05/0.8052, allocations: 50.62 kB / 1.103 GB, free: 10.93 MB / 0.8731 GB Notification: Performance of simplifyInitialFunctions (initialization): time 7.673e-05/0.8053, allocations: 50.08 kB / 1.103 GB, free: 10.89 MB / 0.8731 GB Notification: Performance of setup shared object (initialization): time 0.0001131/0.8054, allocations: 322.3 kB / 1.103 GB, free: 10.58 MB / 0.8731 GB Notification: Performance of preBalanceInitialSystem (initialization): time 7.549e-05/0.8055, allocations: 42.86 kB / 1.103 GB, free: 10.56 MB / 0.8731 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001524/0.8056, allocations: 144.5 kB / 1.103 GB, free: 10.41 MB / 0.8731 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002467/0.8059, allocations: 198.2 kB / 1.103 GB, free: 10.23 MB / 0.8731 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.3e-06/0.8059, allocations: 1.125 kB / 1.103 GB, free: 10.23 MB / 0.8731 GB Notification: Performance of matching and sorting (n=30) (initialization): time 0.0003446/0.8062, allocations: 223.1 kB / 1.104 GB, free: 10.13 MB / 0.8731 GB Notification: Performance of prepare postOptimizeDAE: time 1.894e-05/0.8063, allocations: 7.188 kB / 1.104 GB, free: 10.13 MB / 0.8731 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.358e-06/0.8063, allocations: 3.406 kB / 1.104 GB, free: 10.13 MB / 0.8731 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.957e-05/0.8063, allocations: 5.547 kB / 1.104 GB, free: 10.13 MB / 0.8731 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001959/0.8065, allocations: 58.27 kB / 1.104 GB, free: 10.12 MB / 0.8731 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.506e-05/0.8065, allocations: 6.172 kB / 1.104 GB, free: 10.12 MB / 0.8731 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001179/0.8067, allocations: 24.81 kB / 1.104 GB, free: 10.1 MB / 0.8731 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.699e-05/0.8067, allocations: 19.69 kB / 1.104 GB, free: 10.09 MB / 0.8731 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.0001173/0.8068, allocations: 139.7 kB / 1.104 GB, free: 9.957 MB / 0.8731 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.526e-05/0.8069, allocations: 16.22 kB / 1.104 GB, free: 9.949 MB / 0.8731 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0003208/0.8072, allocations: 158.4 kB / 1.104 GB, free: 9.863 MB / 0.8731 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.245e-05/0.8072, allocations: 6.266 kB / 1.104 GB, free: 9.859 MB / 0.8731 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.24e-06/0.8072, allocations: 1.062 kB / 1.104 GB, free: 9.859 MB / 0.8731 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.679e-06/0.8072, allocations: 0.6094 kB / 1.104 GB, free: 9.859 MB / 0.8731 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002554/0.8075, allocations: 208.2 kB / 1.104 GB, free: 9.652 MB / 0.8731 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.034e-06/0.8075, allocations: 5.75 kB / 1.104 GB, free: 9.648 MB / 0.8731 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 9.474e-05/0.8076, allocations: 29.33 kB / 1.104 GB, free: 9.641 MB / 0.8731 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.034e-06/0.8076, allocations: 0.9375 kB / 1.104 GB, free: 9.641 MB / 0.8731 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.339e-05/0.8076, allocations: 6.641 kB / 1.104 GB, free: 9.637 MB / 0.8731 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.638e-06/0.8076, allocations: 4.656 kB / 1.104 GB, free: 9.633 MB / 0.8731 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.673e-06/0.8077, allocations: 1.359 kB / 1.104 GB, free: 9.633 MB / 0.8731 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002928/0.808, allocations: 214.4 kB / 1.105 GB, free: 9.473 MB / 0.8731 GB Notification: Performance of postOpt removeConstants (simulation): time 9.909e-05/0.8081, allocations: 110.7 kB / 1.105 GB, free: 9.363 MB / 0.8731 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.887e-05/0.8081, allocations: 10.28 kB / 1.105 GB, free: 9.355 MB / 0.8731 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000204/0.8083, allocations: 14.72 kB / 1.105 GB, free: 9.352 MB / 0.8731 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.728e-05/0.8083, allocations: 12.3 kB / 1.105 GB, free: 9.348 MB / 0.8731 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.523e-05/0.8084, allocations: 9.281 kB / 1.105 GB, free: 9.348 MB / 0.8731 GB Notification: Performance of sorting global known variables: time 0.0001039/0.8085, allocations: 120.7 kB / 1.105 GB, free: 9.262 MB / 0.8731 GB Notification: Performance of sort global known variables: time 1.6e-07/0.8085, allocations: 0 / 1.105 GB, free: 9.262 MB / 0.8731 GB Notification: Performance of remove unused functions: time 0.0004314/0.8089, allocations: 75.59 kB / 1.105 GB, free: 9.246 MB / 0.8731 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.0003585/0.8093, allocations: 185 kB / 1.105 GB, free: 9.121 MB / 0.8731 GB Notification: Performance of simCode: created initialization part: time 0.0002655/0.8096, allocations: 114.3 kB / 1.105 GB, free: 9.094 MB / 0.8731 GB Notification: Performance of simCode: created event and clocks part: time 2.975e-06/0.8096, allocations: 1.156 kB / 1.105 GB, free: 9.094 MB / 0.8731 GB Notification: Performance of simCode: created simulation system equations: time 8.096e-05/0.8097, allocations: 49.42 kB / 1.105 GB, free: 9.078 MB / 0.8731 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004828/0.8102, allocations: 58.08 kB / 1.105 GB, free: 9.055 MB / 0.8731 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0007552/0.8109, allocations: 369.4 kB / 1.106 GB, free: 8.816 MB / 0.8731 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003026/0.8112, allocations: 0.7157 MB / 1.106 GB, free: 8.117 MB / 0.8731 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 6.042e-05/0.8113, allocations: 29.3 kB / 1.106 GB, free: 8.105 MB / 0.8731 GB Notification: Performance of SimCode: time 2.7e-07/0.8113, allocations: 4 kB / 1.106 GB, free: 8.102 MB / 0.8731 GB Notification: Performance of Templates: time 0.006495/0.8178, allocations: 3.174 MB / 1.109 GB, free: 7.727 MB / 0.8731 GB make -j1 -f Buildings_9_Buildings.Media.Examples.WaterProperties.makefile (rm -f Buildings_9_Buildings.Media.Examples.WaterProperties.pipe ; mkfifo Buildings_9_Buildings.Media.Examples.WaterProperties.pipe ; head -c 1048576 < Buildings_9_Buildings.Media.Examples.WaterProperties.pipe >> ../files/Buildings_9_Buildings.Media.Examples.WaterProperties.sim & ./Buildings_9_Buildings.Media.Examples.WaterProperties -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Buildings_9_Buildings.Media.Examples.WaterProperties.pipe 2>&1) diffSimulationResults("Buildings_9_Buildings.Media.Examples.WaterProperties_res.mat","/mnt/ReferenceFiles/Buildings/csv/maint_9.1.x/Buildings_Media_Examples_WaterProperties.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_9_Buildings.Media.Examples.WaterProperties.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches