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.001146/0.001146, allocations: 108 kB / 16.41 MB, free: 5.977 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.001269/0.001269, allocations: 191 kB / 17.34 MB, free: 5.586 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.329/1.329, allocations: 222.9 MB / 241 MB, free: 15.08 MB / 206.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.419/2.419, allocations: 437.1 MB / 0.7112 GB, free: 4.352 MB / 0.5762 GB Notification: Performance of FrontEnd - loaded program: time 0.001237/0.001238, allocations: 63.83 kB / 1.019 GB, free: 9.371 MB / 0.795 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.8018/0.8031, allocations: 151.6 MB / 1.167 GB, free: 3.836 MB / 0.8887 GB Notification: Performance of NFInst.instantiate(Buildings.Media.Examples.WaterProperties): time 0.005907/0.809, allocations: 4.722 MB / 1.172 GB, free: 15.08 MB / 0.9044 GB Notification: Performance of NFInst.instExpressions: time 0.002783/0.8118, allocations: 2.702 MB / 1.175 GB, free: 12.38 MB / 0.9044 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001248/0.812, allocations: 7.938 kB / 1.175 GB, free: 12.37 MB / 0.9044 GB Notification: Performance of NFTyping.typeComponents: time 0.0002735/0.8122, allocations: 51.67 kB / 1.175 GB, free: 12.32 MB / 0.9044 GB Notification: Performance of NFTyping.typeBindings: time 0.000289/0.8126, allocations: 91.36 kB / 1.175 GB, free: 12.23 MB / 0.9044 GB Notification: Performance of NFTyping.typeClassSections: time 0.001228/0.8138, allocations: 0.5136 MB / 1.175 GB, free: 11.71 MB / 0.9044 GB Notification: Performance of NFFlatten.flatten: time 0.0002824/0.8141, allocations: 232 kB / 1.175 GB, free: 11.49 MB / 0.9044 GB Notification: Performance of NFFlatten.resolveConnections: time 4.983e-05/0.8141, allocations: 9.562 kB / 1.175 GB, free: 11.47 MB / 0.9044 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0002187/0.8144, allocations: 123.5 kB / 1.176 GB, free: 11.35 MB / 0.9044 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0001459/0.8145, allocations: 87.67 kB / 1.176 GB, free: 11.27 MB / 0.9044 GB Notification: Performance of NFPackage.collectConstants: time 2.559e-05/0.8146, allocations: 8 kB / 1.176 GB, free: 11.26 MB / 0.9044 GB Notification: Performance of NFFlatten.collectFunctions: time 0.000693/0.8153, allocations: 367.3 kB / 1.176 GB, free: 10.9 MB / 0.9044 GB Notification: Performance of NFScalarize.scalarize: time 6.853e-05/0.8153, allocations: 39.89 kB / 1.176 GB, free: 10.86 MB / 0.9044 GB Notification: Performance of NFVerifyModel.verify: time 8.907e-05/0.8154, allocations: 83.59 kB / 1.176 GB, free: 10.78 MB / 0.9044 GB Notification: Performance of NFConvertDAE.convert: time 0.0006054/0.816, allocations: 356.8 kB / 1.176 GB, free: 10.43 MB / 0.9044 GB Notification: Performance of FrontEnd - DAE generated: time 3.817e-06/0.8161, allocations: 0 / 1.176 GB, free: 10.43 MB / 0.9044 GB Notification: Performance of FrontEnd: time 1.583e-06/0.8161, allocations: 0 / 1.176 GB, free: 10.43 MB / 0.9044 GB Notification: Performance of Transformations before backend: time 6.923e-06/0.8161, allocations: 0 / 1.176 GB, free: 10.43 MB / 0.9044 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.0007354/0.8168, allocations: 0.4992 MB / 1.177 GB, free: 9.883 MB / 0.9044 GB Notification: Performance of prepare preOptimizeDAE: time 3.306e-05/0.8169, allocations: 8.031 kB / 1.177 GB, free: 9.875 MB / 0.9044 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001751/0.817, allocations: 32.73 kB / 1.177 GB, free: 9.844 MB / 0.9044 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000261/0.8173, allocations: 216.1 kB / 1.177 GB, free: 9.594 MB / 0.9044 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.029e-05/0.8173, allocations: 12.7 kB / 1.177 GB, free: 9.582 MB / 0.9044 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.934e-05/0.8174, allocations: 12.38 kB / 1.177 GB, free: 9.57 MB / 0.9044 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003527/0.8177, allocations: 248.2 kB / 1.177 GB, free: 9.309 MB / 0.9044 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.032e-05/0.8177, allocations: 0 / 1.177 GB, free: 9.309 MB / 0.9044 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.242e-05/0.8178, allocations: 8 kB / 1.177 GB, free: 9.301 MB / 0.9044 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.545e-05/0.8178, allocations: 8 kB / 1.177 GB, free: 9.293 MB / 0.9044 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004488/0.8182, allocations: 423.5 kB / 1.178 GB, free: 8.879 MB / 0.9044 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001083/0.8193, allocations: 0.9564 MB / 1.179 GB, free: 7.832 MB / 0.9044 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0002624/0.8196, allocations: 162.9 kB / 1.179 GB, free: 7.664 MB / 0.9044 GB Notification: Performance of preOpt resolveLoops (simulation): time 9.877e-05/0.8197, allocations: 64.88 kB / 1.179 GB, free: 7.598 MB / 0.9044 GB Notification: Performance of preOpt evalFunc (simulation): time 0.001252/0.821, allocations: 1.829 MB / 1.181 GB, free: 5.41 MB / 0.9044 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.399e-05/0.821, allocations: 34.56 kB / 1.181 GB, free: 5.367 MB / 0.9044 GB Notification: Performance of pre-optimization done (n=15): time 1.763e-06/0.821, allocations: 0 / 1.181 GB, free: 5.367 MB / 0.9044 GB Notification: Performance of matching and sorting (n=15): time 0.0003241/0.8214, allocations: 151.7 kB / 1.181 GB, free: 5.215 MB / 0.9044 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.843e-05/0.8214, allocations: 63.34 kB / 1.181 GB, free: 5.141 MB / 0.9044 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001365/0.8216, allocations: 163.3 kB / 1.181 GB, free: 4.969 MB / 0.9044 GB Notification: Performance of collectPreVariables (initialization): time 2.394e-05/0.8216, allocations: 33.7 kB / 1.181 GB, free: 4.93 MB / 0.9044 GB Notification: Performance of collectInitialEqns (initialization): time 7.91e-05/0.8217, allocations: 143.8 kB / 1.181 GB, free: 4.785 MB / 0.9044 GB Notification: Performance of collectInitialBindings (initialization): time 3.398e-05/0.8217, allocations: 47.25 kB / 1.181 GB, free: 4.738 MB / 0.9044 GB Notification: Performance of simplifyInitialFunctions (initialization): time 6.219e-05/0.8218, allocations: 57.64 kB / 1.181 GB, free: 4.676 MB / 0.9044 GB Notification: Performance of setup shared object (initialization): time 0.0001082/0.8219, allocations: 326.8 kB / 1.182 GB, free: 4.348 MB / 0.9044 GB Notification: Performance of preBalanceInitialSystem (initialization): time 6.269e-05/0.822, allocations: 31.98 kB / 1.182 GB, free: 4.316 MB / 0.9044 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001248/0.8221, allocations: 149.6 kB / 1.182 GB, free: 4.121 MB / 0.9044 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002221/0.8223, allocations: 201.5 kB / 1.182 GB, free: 3.875 MB / 0.9044 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.505e-06/0.8223, allocations: 0 / 1.182 GB, free: 3.875 MB / 0.9044 GB Notification: Performance of matching and sorting (n=30) (initialization): time 0.0003146/0.8226, allocations: 220.1 kB / 1.182 GB, free: 3.656 MB / 0.9044 GB Notification: Performance of prepare postOptimizeDAE: time 1.674e-05/0.8227, allocations: 11.94 kB / 1.182 GB, free: 3.645 MB / 0.9044 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.304e-06/0.8227, allocations: 0 / 1.182 GB, free: 3.645 MB / 0.9044 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.767e-05/0.8227, allocations: 8 kB / 1.182 GB, free: 3.637 MB / 0.9044 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001685/0.8229, allocations: 55.84 kB / 1.182 GB, free: 3.582 MB / 0.9044 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.954e-05/0.8229, allocations: 4 kB / 1.182 GB, free: 3.578 MB / 0.9044 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001131/0.823, allocations: 27.73 kB / 1.182 GB, free: 3.551 MB / 0.9044 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.83e-05/0.823, allocations: 16 kB / 1.182 GB, free: 3.535 MB / 0.9044 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.0001058/0.8232, allocations: 136.2 kB / 1.183 GB, free: 3.395 MB / 0.9044 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.044e-05/0.8232, allocations: 15.81 kB / 1.183 GB, free: 3.379 MB / 0.9044 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002846/0.8235, allocations: 162.9 kB / 1.183 GB, free: 3.215 MB / 0.9044 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.059e-05/0.8235, allocations: 3.938 kB / 1.183 GB, free: 3.211 MB / 0.9044 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.258e-06/0.8235, allocations: 4 kB / 1.183 GB, free: 3.207 MB / 0.9044 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.927e-06/0.8235, allocations: 0 / 1.183 GB, free: 3.207 MB / 0.9044 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002302/0.8238, allocations: 217.5 kB / 1.183 GB, free: 2.945 MB / 0.9044 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.284e-06/0.8238, allocations: 0 / 1.183 GB, free: 2.945 MB / 0.9044 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 8.867e-05/0.8239, allocations: 27.98 kB / 1.183 GB, free: 2.918 MB / 0.9044 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.444e-06/0.8239, allocations: 4 kB / 1.183 GB, free: 2.914 MB / 0.9044 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.378e-06/0.8239, allocations: 0 / 1.183 GB, free: 2.914 MB / 0.9044 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.118e-06/0.8239, allocations: 7.938 kB / 1.183 GB, free: 2.906 MB / 0.9044 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.342e-06/0.8239, allocations: 0 / 1.183 GB, free: 2.906 MB / 0.9044 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002322/0.8242, allocations: 219.2 kB / 1.183 GB, free: 2.676 MB / 0.9044 GB Notification: Performance of postOpt removeConstants (simulation): time 9.059e-05/0.8243, allocations: 108.9 kB / 1.183 GB, free: 2.551 MB / 0.9044 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.927e-05/0.8243, allocations: 8 kB / 1.183 GB, free: 2.543 MB / 0.9044 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001895/0.8245, allocations: 15.92 kB / 1.183 GB, free: 2.527 MB / 0.9044 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.066e-05/0.8245, allocations: 11.98 kB / 1.183 GB, free: 2.516 MB / 0.9044 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.089e-05/0.8245, allocations: 12 kB / 1.183 GB, free: 2.504 MB / 0.9044 GB Notification: Performance of sorting global known variables: time 8.228e-05/0.8246, allocations: 124.9 kB / 1.184 GB, free: 2.383 MB / 0.9044 GB Notification: Performance of sort global known variables: time 1.2e-07/0.8246, allocations: 0 / 1.184 GB, free: 2.383 MB / 0.9044 GB Notification: Performance of remove unused functions: time 0.0003888/0.825, allocations: 79.98 kB / 1.184 GB, free: 2.305 MB / 0.9044 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.0002804/0.8253, allocations: 187 kB / 1.184 GB, free: 2.109 MB / 0.9044 GB Notification: Performance of simCode: created initialization part: time 0.0002285/0.8256, allocations: 109 kB / 1.184 GB, free: 2.004 MB / 0.9044 GB Notification: Performance of simCode: created event and clocks part: time 3.587e-06/0.8256, allocations: 4 kB / 1.184 GB, free: 2 MB / 0.9044 GB Notification: Performance of simCode: created simulation system equations: time 6.403e-05/0.8256, allocations: 47.53 kB / 1.184 GB, free: 1.957 MB / 0.9044 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004237/0.8261, allocations: 55.89 kB / 1.184 GB, free: 1.902 MB / 0.9044 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0007249/0.8268, allocations: 376.3 kB / 1.184 GB, free: 1.504 MB / 0.9044 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002831/0.8271, allocations: 0.7128 MB / 1.185 GB, free: 0.7656 MB / 0.9044 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.451e-05/0.8272, allocations: 27.44 kB / 1.185 GB, free: 0.7383 MB / 0.9044 GB Notification: Performance of SimCode: time 2.2e-07/0.8272, allocations: 0 / 1.185 GB, free: 0.7383 MB / 0.9044 GB Notification: Performance of Templates: time 0.005372/0.8325, allocations: 3.169 MB / 1.188 GB, free: 13.59 MB / 0.92 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=480 -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/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_10_Buildings.Media.Examples.WaterProperties.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches