Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_latest_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 12.0.0-master/package.mo", uses=false) Using package Buildings with version 12.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.0.0-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.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_latest_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_latest_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.001381/0.001381, allocations: 108 kB / 15.61 MB, free: 152 kB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001446/0.001446, allocations: 197.2 kB / 16.53 MB, free: 6.664 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.471/1.471, allocations: 222.9 MB / 240.2 MB, free: 4.41 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.0.0-master/package.mo): time 3.04/3.04, allocations: 472.6 MB / 0.7451 GB, free: 4.625 MB / 0.5919 GB Notification: Performance of FrontEnd - loaded program: time 0.001277/0.001277, allocations: 67.38 kB / 0.912 GB, free: 33.34 MB / 0.7169 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3244/0.3257, allocations: 159.9 MB / 1.068 GB, free: 10.41 MB / 0.8262 GB Notification: Performance of NFInst.instantiate(Buildings.Media.Examples.WaterProperties): time 0.006493/0.3322, allocations: 4.713 MB / 1.073 GB, free: 5.668 MB / 0.8262 GB Notification: Performance of NFInst.instExpressions: time 0.003074/0.3353, allocations: 2.702 MB / 1.075 GB, free: 2.957 MB / 0.8262 GB Notification: Performance of NFInst.updateImplicitVariability: time 8.797e-05/0.3354, allocations: 0 / 1.075 GB, free: 2.957 MB / 0.8262 GB Notification: Performance of NFTyping.typeComponents: time 0.000269/0.3357, allocations: 47.69 kB / 1.075 GB, free: 2.91 MB / 0.8262 GB Notification: Performance of NFTyping.typeBindings: time 0.0002601/0.336, allocations: 91.41 kB / 1.076 GB, free: 2.82 MB / 0.8262 GB Notification: Performance of NFTyping.typeClassSections: time 0.001073/0.3371, allocations: 0.5012 MB / 1.076 GB, free: 2.32 MB / 0.8262 GB Notification: Performance of NFFlatten.flatten: time 0.0002934/0.3374, allocations: 232 kB / 1.076 GB, free: 2.094 MB / 0.8262 GB Notification: Performance of NFFlatten.resolveConnections: time 6.943e-05/0.3375, allocations: 9.562 kB / 1.076 GB, free: 2.086 MB / 0.8262 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001962/0.3377, allocations: 115.5 kB / 1.076 GB, free: 1.973 MB / 0.8262 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0001273/0.3378, allocations: 91.66 kB / 1.076 GB, free: 1.883 MB / 0.8262 GB Notification: Performance of NFPackage.collectConstants: time 2.491e-05/0.3378, allocations: 8 kB / 1.077 GB, free: 1.875 MB / 0.8262 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0007301/0.3386, allocations: 371.3 kB / 1.077 GB, free: 1.512 MB / 0.8262 GB Notification: Performance of NFScalarize.scalarize: time 7.139e-05/0.3387, allocations: 39.83 kB / 1.077 GB, free: 1.473 MB / 0.8262 GB Notification: Performance of NFVerifyModel.verify: time 0.0001073/0.3388, allocations: 87.64 kB / 1.077 GB, free: 1.387 MB / 0.8262 GB Notification: Performance of NFConvertDAE.convert: time 0.0005425/0.3393, allocations: 351.3 kB / 1.077 GB, free: 1.043 MB / 0.8262 GB Notification: Performance of FrontEnd - DAE generated: time 5.921e-06/0.3393, allocations: 4 kB / 1.077 GB, free: 1.039 MB / 0.8262 GB Notification: Performance of FrontEnd: time 2.114e-06/0.3393, allocations: 0 / 1.077 GB, free: 1.039 MB / 0.8262 GB Notification: Performance of Transformations before backend: time 7.454e-06/0.3393, allocations: 0 / 1.077 GB, free: 1.039 MB / 0.8262 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.0008393/0.3402, allocations: 0.4915 MB / 1.078 GB, free: 0.5 MB / 0.8262 GB Notification: Performance of prepare preOptimizeDAE: time 4.313e-05/0.3402, allocations: 12.03 kB / 1.078 GB, free: 500 kB / 0.8262 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002774/0.3405, allocations: 32.73 kB / 1.078 GB, free: 468 kB / 0.8262 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002683/0.3408, allocations: 212.1 kB / 1.078 GB, free: 216 kB / 0.8262 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.117e-05/0.3409, allocations: 12.7 kB / 1.078 GB, free: 204 kB / 0.8262 GB Notification: Performance of preOpt expandDerOperator (simulation): time 2.962e-05/0.3409, allocations: 16.36 kB / 1.078 GB, free: 188 kB / 0.8262 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005527/0.3415, allocations: 256.2 kB / 1.078 GB, free: 15.91 MB / 0.8419 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.045e-05/0.3415, allocations: 0 / 1.078 GB, free: 15.91 MB / 0.8419 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.587e-05/0.3415, allocations: 15.98 kB / 1.078 GB, free: 15.9 MB / 0.8419 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.687e-05/0.3416, allocations: 4 kB / 1.078 GB, free: 15.89 MB / 0.8419 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0007355/0.3423, allocations: 427.5 kB / 1.079 GB, free: 15.48 MB / 0.8419 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001613/0.3439, allocations: 0.9487 MB / 1.08 GB, free: 14.44 MB / 0.8419 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0004661/0.3444, allocations: 162.4 kB / 1.08 GB, free: 14.27 MB / 0.8419 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001489/0.3446, allocations: 68.81 kB / 1.08 GB, free: 14.2 MB / 0.8419 GB Notification: Performance of preOpt evalFunc (simulation): time 0.002019/0.3466, allocations: 1.829 MB / 1.082 GB, free: 12.02 MB / 0.8419 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.318e-05/0.3467, allocations: 30.56 kB / 1.082 GB, free: 11.98 MB / 0.8419 GB Notification: Performance of pre-optimization done (n=15): time 2.114e-06/0.3467, allocations: 0 / 1.082 GB, free: 11.98 MB / 0.8419 GB Notification: Performance of matching and sorting (n=15): time 0.0005052/0.3472, allocations: 151.2 kB / 1.082 GB, free: 11.82 MB / 0.8419 GB Notification: Performance of inlineWhenForInitialization (initialization): time 5.485e-05/0.3473, allocations: 59.28 kB / 1.082 GB, free: 11.75 MB / 0.8419 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002011/0.3475, allocations: 169.2 kB / 1.082 GB, free: 11.58 MB / 0.8419 GB Notification: Performance of collectPreVariables (initialization): time 3.1e-05/0.3475, allocations: 33.69 kB / 1.082 GB, free: 11.54 MB / 0.8419 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001218/0.3476, allocations: 139.8 kB / 1.082 GB, free: 11.4 MB / 0.8419 GB Notification: Performance of collectInitialBindings (initialization): time 5.952e-05/0.3477, allocations: 59.19 kB / 1.082 GB, free: 11.34 MB / 0.8419 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001639/0.3479, allocations: 53.64 kB / 1.082 GB, free: 11.28 MB / 0.8419 GB Notification: Performance of setup shared object (initialization): time 0.0001617/0.3481, allocations: 322.8 kB / 1.083 GB, free: 10.96 MB / 0.8419 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001236/0.3482, allocations: 35.98 kB / 1.083 GB, free: 10.92 MB / 0.8419 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002722/0.3485, allocations: 142.7 kB / 1.083 GB, free: 10.73 MB / 0.8419 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003866/0.3489, allocations: 194.3 kB / 1.083 GB, free: 10.5 MB / 0.8419 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.981e-06/0.3489, allocations: 4 kB / 1.083 GB, free: 10.49 MB / 0.8419 GB Notification: Performance of matching and sorting (n=30) (initialization): time 0.0005687/0.3495, allocations: 214.8 kB / 1.083 GB, free: 10.28 MB / 0.8419 GB Notification: Performance of prepare postOptimizeDAE: time 2.613e-05/0.3495, allocations: 8 kB / 1.083 GB, free: 10.27 MB / 0.8419 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.26e-05/0.3495, allocations: 4 kB / 1.083 GB, free: 10.27 MB / 0.8419 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.505e-05/0.3496, allocations: 4 kB / 1.083 GB, free: 10.26 MB / 0.8419 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002884/0.3499, allocations: 55.84 kB / 1.083 GB, free: 10.21 MB / 0.8419 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.795e-05/0.3499, allocations: 11.94 kB / 1.083 GB, free: 10.2 MB / 0.8419 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002115/0.3501, allocations: 27.69 kB / 1.083 GB, free: 10.17 MB / 0.8419 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.978e-05/0.3502, allocations: 12.41 kB / 1.083 GB, free: 10.16 MB / 0.8419 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.0001546/0.3503, allocations: 141.8 kB / 1.083 GB, free: 10.01 MB / 0.8419 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 9.5e-05/0.3504, allocations: 15.81 kB / 1.083 GB, free: 9.992 MB / 0.8419 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.000447/0.3509, allocations: 147 kB / 1.084 GB, free: 9.84 MB / 0.8419 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.813e-05/0.3509, allocations: 7.938 kB / 1.084 GB, free: 9.832 MB / 0.8419 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.871e-06/0.3509, allocations: 0 / 1.084 GB, free: 9.832 MB / 0.8419 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.38e-06/0.351, allocations: 3.938 kB / 1.084 GB, free: 9.828 MB / 0.8419 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003591/0.3513, allocations: 217.4 kB / 1.084 GB, free: 9.566 MB / 0.8419 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.43e-06/0.3513, allocations: 4 kB / 1.084 GB, free: 9.562 MB / 0.8419 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001382/0.3515, allocations: 35.86 kB / 1.084 GB, free: 9.527 MB / 0.8419 GB Notification: Performance of postOpt tearingSystem (simulation): time 3.957e-06/0.3515, allocations: 0 / 1.084 GB, free: 9.527 MB / 0.8419 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.505e-05/0.3515, allocations: 4 kB / 1.084 GB, free: 9.523 MB / 0.8419 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.308e-06/0.3515, allocations: 3.938 kB / 1.084 GB, free: 9.52 MB / 0.8419 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.763e-06/0.3516, allocations: 0 / 1.084 GB, free: 9.52 MB / 0.8419 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003875/0.3519, allocations: 233.2 kB / 1.084 GB, free: 9.277 MB / 0.8419 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0001422/0.3521, allocations: 105 kB / 1.084 GB, free: 9.156 MB / 0.8419 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.005e-05/0.3522, allocations: 8 kB / 1.084 GB, free: 9.148 MB / 0.8419 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003182/0.3525, allocations: 15.92 kB / 1.084 GB, free: 9.133 MB / 0.8419 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.003e-05/0.3525, allocations: 11.98 kB / 1.084 GB, free: 9.121 MB / 0.8419 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.147e-05/0.3526, allocations: 8 kB / 1.084 GB, free: 9.113 MB / 0.8419 GB Notification: Performance of sorting global known variables: time 0.0001211/0.3527, allocations: 121.8 kB / 1.084 GB, free: 8.996 MB / 0.8419 GB Notification: Performance of sort global known variables: time 3.5e-07/0.3527, allocations: 0 / 1.084 GB, free: 8.996 MB / 0.8419 GB Notification: Performance of remove unused functions: time 0.0008462/0.3536, allocations: 79.92 kB / 1.084 GB, free: 8.918 MB / 0.8419 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.0005094/0.3541, allocations: 171.7 kB / 1.085 GB, free: 8.738 MB / 0.8419 GB Notification: Performance of simCode: created initialization part: time 0.000358/0.3545, allocations: 124.6 kB / 1.085 GB, free: 8.617 MB / 0.8419 GB Notification: Performance of simCode: created event and clocks part: time 3.316e-06/0.3545, allocations: 0 / 1.085 GB, free: 8.617 MB / 0.8419 GB Notification: Performance of simCode: created simulation system equations: time 0.0001071/0.3546, allocations: 45.61 kB / 1.085 GB, free: 8.574 MB / 0.8419 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006959/0.3553, allocations: 57.28 kB / 1.085 GB, free: 8.52 MB / 0.8419 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001099/0.3564, allocations: 362.7 kB / 1.085 GB, free: 8.137 MB / 0.8419 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005259/0.357, allocations: 0.7128 MB / 1.086 GB, free: 7.398 MB / 0.8419 GB Notification: Performance of simCode: alias equations: time 0.0002696/0.3573, allocations: 41.81 kB / 1.086 GB, free: 7.359 MB / 0.8419 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 6.911e-05/0.3573, allocations: 27.44 kB / 1.086 GB, free: 7.332 MB / 0.8419 GB Notification: Performance of SimCode: time 5.01e-07/0.3573, allocations: 0 / 1.086 GB, free: 7.332 MB / 0.8419 GB Notification: Performance of Templates: time 0.01242/0.3698, allocations: 3.419 MB / 1.089 GB, free: 3.953 MB / 0.8419 GB make -j1 -f Buildings_latest_Buildings.Media.Examples.WaterProperties.makefile (rm -f Buildings_latest_Buildings.Media.Examples.WaterProperties.pipe ; mkfifo Buildings_latest_Buildings.Media.Examples.WaterProperties.pipe ; head -c 1048576 < Buildings_latest_Buildings.Media.Examples.WaterProperties.pipe >> ../files/Buildings_latest_Buildings.Media.Examples.WaterProperties.sim & ./Buildings_latest_Buildings.Media.Examples.WaterProperties -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Buildings_latest_Buildings.Media.Examples.WaterProperties.pipe 2>&1) diffSimulationResults("Buildings_latest_Buildings.Media.Examples.WaterProperties_res.mat","/mnt/ReferenceFiles/Buildings/csv/master/Buildings_Media_Examples_WaterProperties.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_latest_Buildings.Media.Examples.WaterProperties.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches