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.001348/0.001348, allocations: 104.4 kB / 15.99 MB, free: 6.359 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.001329/0.001329, allocations: 199.3 kB / 16.91 MB, free: 6.191 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.442/1.442, allocations: 222.9 MB / 240.6 MB, free: 13.72 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.553/2.553, allocations: 437.1 MB / 0.7107 GB, free: 4.664 MB / 0.5762 GB Notification: Performance of FrontEnd - loaded program: time 0.00192/0.00192, allocations: 60.28 kB / 0.8694 GB, free: 2.555 MB / 0.6387 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2611/0.263, allocations: 151.6 MB / 1.017 GB, free: 10.99 MB / 0.795 GB Notification: Performance of NFInst.instantiate(Buildings.Media.Examples.WaterProperties): time 0.006258/0.2693, allocations: 4.762 MB / 1.022 GB, free: 6.199 MB / 0.795 GB Notification: Performance of NFInst.instExpressions: time 0.003026/0.2724, allocations: 2.691 MB / 1.025 GB, free: 3.5 MB / 0.795 GB Notification: Performance of NFInst.updateImplicitVariability: time 6.912e-05/0.2725, allocations: 0 / 1.025 GB, free: 3.5 MB / 0.795 GB Notification: Performance of NFTyping.typeComponents: time 0.0002349/0.2727, allocations: 39.8 kB / 1.025 GB, free: 3.461 MB / 0.795 GB Notification: Performance of NFTyping.typeBindings: time 0.0002326/0.273, allocations: 91.48 kB / 1.025 GB, free: 3.371 MB / 0.795 GB Notification: Performance of NFTyping.typeClassSections: time 0.001041/0.274, allocations: 470.7 kB / 1.025 GB, free: 2.914 MB / 0.795 GB Notification: Performance of NFFlatten.flatten: time 0.0002555/0.2743, allocations: 224 kB / 1.026 GB, free: 2.691 MB / 0.795 GB Notification: Performance of NFFlatten.resolveConnections: time 4.976e-05/0.2744, allocations: 17.55 kB / 1.026 GB, free: 2.672 MB / 0.795 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001978/0.2746, allocations: 119.5 kB / 1.026 GB, free: 2.555 MB / 0.795 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0001282/0.2747, allocations: 83.67 kB / 1.026 GB, free: 2.473 MB / 0.795 GB Notification: Performance of NFPackage.collectConstants: time 1.935e-05/0.2747, allocations: 8 kB / 1.026 GB, free: 2.465 MB / 0.795 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0006375/0.2754, allocations: 379.2 kB / 1.026 GB, free: 2.094 MB / 0.795 GB Notification: Performance of NFScalarize.scalarize: time 8.301e-05/0.2755, allocations: 39.83 kB / 1.026 GB, free: 2.055 MB / 0.795 GB Notification: Performance of NFVerifyModel.verify: time 9.534e-05/0.2756, allocations: 83.66 kB / 1.026 GB, free: 1.973 MB / 0.795 GB Notification: Performance of NFConvertDAE.convert: time 0.0003593/0.2759, allocations: 247.7 kB / 1.026 GB, free: 1.73 MB / 0.795 GB Notification: Performance of FrontEnd - DAE generated: time 2.906e-06/0.2759, allocations: 0 / 1.026 GB, free: 1.73 MB / 0.795 GB Notification: Performance of FrontEnd: time 1.252e-06/0.2759, allocations: 0 / 1.026 GB, free: 1.73 MB / 0.795 GB Notification: Performance of Transformations before backend: time 4.839e-06/0.276, allocations: 4 kB / 1.026 GB, free: 1.727 MB / 0.795 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.0007601/0.2767, allocations: 0.4954 MB / 1.027 GB, free: 1.184 MB / 0.795 GB Notification: Performance of prepare preOptimizeDAE: time 3.263e-05/0.2768, allocations: 8.031 kB / 1.027 GB, free: 1.176 MB / 0.795 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001613/0.2769, allocations: 24.83 kB / 1.027 GB, free: 1.152 MB / 0.795 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002361/0.2772, allocations: 220 kB / 1.027 GB, free: 0.8984 MB / 0.795 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.528e-05/0.2772, allocations: 8.703 kB / 1.027 GB, free: 0.8906 MB / 0.795 GB Notification: Performance of preOpt expandDerOperator (simulation): time 2.884e-05/0.2772, allocations: 24.31 kB / 1.027 GB, free: 0.8672 MB / 0.795 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003921/0.2776, allocations: 244.2 kB / 1.027 GB, free: 0.6094 MB / 0.795 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.219e-05/0.2777, allocations: 4 kB / 1.027 GB, free: 0.6055 MB / 0.795 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.442e-05/0.2777, allocations: 8 kB / 1.027 GB, free: 0.5977 MB / 0.795 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.262e-05/0.2777, allocations: 11.94 kB / 1.027 GB, free: 0.5859 MB / 0.795 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0005139/0.2782, allocations: 431.3 kB / 1.028 GB, free: 168 kB / 0.795 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001194/0.2794, allocations: 0.941 MB / 1.029 GB, free: 15.13 MB / 0.8106 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0002885/0.2797, allocations: 161.5 kB / 1.029 GB, free: 14.97 MB / 0.8106 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001028/0.2799, allocations: 64.88 kB / 1.029 GB, free: 14.9 MB / 0.8106 GB Notification: Performance of preOpt evalFunc (simulation): time 0.001543/0.2814, allocations: 1.829 MB / 1.031 GB, free: 12.71 MB / 0.8106 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.98e-05/0.2815, allocations: 38.56 kB / 1.031 GB, free: 12.67 MB / 0.8106 GB Notification: Performance of pre-optimization done (n=15): time 1.452e-06/0.2815, allocations: 0 / 1.031 GB, free: 12.67 MB / 0.8106 GB Notification: Performance of matching and sorting (n=15): time 0.0003314/0.2818, allocations: 144 kB / 1.031 GB, free: 12.52 MB / 0.8106 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.585e-05/0.2819, allocations: 59.34 kB / 1.031 GB, free: 12.45 MB / 0.8106 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001554/0.282, allocations: 164.9 kB / 1.031 GB, free: 12.28 MB / 0.8106 GB Notification: Performance of collectPreVariables (initialization): time 3.679e-05/0.2821, allocations: 29.7 kB / 1.031 GB, free: 12.25 MB / 0.8106 GB Notification: Performance of collectInitialEqns (initialization): time 9.191e-05/0.2822, allocations: 143.8 kB / 1.031 GB, free: 12.1 MB / 0.8106 GB Notification: Performance of collectInitialBindings (initialization): time 4.507e-05/0.2822, allocations: 55.2 kB / 1.031 GB, free: 12.05 MB / 0.8106 GB Notification: Performance of simplifyInitialFunctions (initialization): time 8.628e-05/0.2823, allocations: 49.7 kB / 1.031 GB, free: 11.99 MB / 0.8106 GB Notification: Performance of setup shared object (initialization): time 0.000144/0.2825, allocations: 326.8 kB / 1.032 GB, free: 11.66 MB / 0.8106 GB Notification: Performance of preBalanceInitialSystem (initialization): time 7.111e-05/0.2825, allocations: 39.97 kB / 1.032 GB, free: 11.62 MB / 0.8106 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001593/0.2827, allocations: 142.2 kB / 1.032 GB, free: 11.44 MB / 0.8106 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002552/0.283, allocations: 205.5 kB / 1.032 GB, free: 11.19 MB / 0.8106 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.454e-06/0.283, allocations: 4 kB / 1.032 GB, free: 11.18 MB / 0.8106 GB Notification: Performance of matching and sorting (n=30) (initialization): time 0.0003417/0.2833, allocations: 215.3 kB / 1.032 GB, free: 10.97 MB / 0.8106 GB Notification: Performance of prepare postOptimizeDAE: time 1.303e-05/0.2833, allocations: 4 kB / 1.032 GB, free: 10.96 MB / 0.8106 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.354e-06/0.2834, allocations: 4.469 kB / 1.032 GB, free: 10.96 MB / 0.8106 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.436e-05/0.2834, allocations: 4 kB / 1.032 GB, free: 10.96 MB / 0.8106 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002003/0.2836, allocations: 67.84 kB / 1.032 GB, free: 10.89 MB / 0.8106 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.228e-06/0.2836, allocations: 4 kB / 1.032 GB, free: 10.89 MB / 0.8106 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001175/0.2837, allocations: 27.69 kB / 1.032 GB, free: 10.86 MB / 0.8106 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.706e-05/0.2838, allocations: 15.94 kB / 1.032 GB, free: 10.84 MB / 0.8106 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.0001127/0.2839, allocations: 125.8 kB / 1.033 GB, free: 10.71 MB / 0.8106 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.26e-05/0.2839, allocations: 19.81 kB / 1.033 GB, free: 10.69 MB / 0.8106 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0003116/0.2843, allocations: 163 kB / 1.033 GB, free: 10.53 MB / 0.8106 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.087e-05/0.2843, allocations: 3.938 kB / 1.033 GB, free: 10.53 MB / 0.8106 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.64e-06/0.2843, allocations: 4 kB / 1.033 GB, free: 10.52 MB / 0.8106 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.196e-06/0.2843, allocations: 0 / 1.033 GB, free: 10.52 MB / 0.8106 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002748/0.2846, allocations: 221.4 kB / 1.033 GB, free: 10.26 MB / 0.8106 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.774e-06/0.2846, allocations: 0 / 1.033 GB, free: 10.26 MB / 0.8106 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 9.562e-05/0.2847, allocations: 31.91 kB / 1.033 GB, free: 10.23 MB / 0.8106 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.044e-06/0.2847, allocations: 0 / 1.033 GB, free: 10.23 MB / 0.8106 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.355e-05/0.2847, allocations: 4 kB / 1.033 GB, free: 10.22 MB / 0.8106 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.679e-06/0.2847, allocations: 7.875 kB / 1.033 GB, free: 10.21 MB / 0.8106 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.11e-07/0.2847, allocations: 4 kB / 1.033 GB, free: 10.21 MB / 0.8106 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002545/0.285, allocations: 211.4 kB / 1.033 GB, free: 9.988 MB / 0.8106 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0001074/0.2851, allocations: 112.9 kB / 1.033 GB, free: 9.859 MB / 0.8106 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.487e-05/0.2851, allocations: 4 kB / 1.033 GB, free: 9.855 MB / 0.8106 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000211/0.2854, allocations: 23.91 kB / 1.033 GB, free: 9.832 MB / 0.8106 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.065e-05/0.2854, allocations: 7.984 kB / 1.033 GB, free: 9.824 MB / 0.8106 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.438e-05/0.2854, allocations: 12 kB / 1.033 GB, free: 9.812 MB / 0.8106 GB Notification: Performance of sorting global known variables: time 9.572e-05/0.2855, allocations: 120.9 kB / 1.034 GB, free: 9.695 MB / 0.8106 GB Notification: Performance of sort global known variables: time 1.4e-07/0.2855, allocations: 7.938 kB / 1.034 GB, free: 9.688 MB / 0.8106 GB Notification: Performance of remove unused functions: time 0.0003856/0.2859, allocations: 79.92 kB / 1.034 GB, free: 9.609 MB / 0.8106 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.0003315/0.2862, allocations: 171.1 kB / 1.034 GB, free: 9.434 MB / 0.8106 GB Notification: Performance of simCode: created initialization part: time 0.0002416/0.2865, allocations: 130 kB / 1.034 GB, free: 9.309 MB / 0.8106 GB Notification: Performance of simCode: created event and clocks part: time 2.114e-06/0.2865, allocations: 0 / 1.034 GB, free: 9.309 MB / 0.8106 GB Notification: Performance of simCode: created simulation system equations: time 7.115e-05/0.2866, allocations: 43.92 kB / 1.034 GB, free: 9.266 MB / 0.8106 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004349/0.287, allocations: 59.7 kB / 1.034 GB, free: 9.211 MB / 0.8106 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0007353/0.2878, allocations: 420.7 kB / 1.034 GB, free: 8.77 MB / 0.8106 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003626/0.2881, allocations: 0.7205 MB / 1.035 GB, free: 8.023 MB / 0.8106 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.502e-05/0.2882, allocations: 27.44 kB / 1.035 GB, free: 7.996 MB / 0.8106 GB Notification: Performance of SimCode: time 2.7e-07/0.2882, allocations: 0 / 1.035 GB, free: 7.996 MB / 0.8106 GB Notification: Performance of Templates: time 0.005447/0.2937, allocations: 3.16 MB / 1.038 GB, free: 4.855 MB / 0.8106 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=400 -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