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.0-maint.10.0.x/package.mo", uses=false) Using package Buildings with version 10.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 10.1.0-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.0008184/0.0008183, allocations: 92.23 kB / 16.02 MB, free: 80 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.001185/0.001185, allocations: 177.7 kB / 16.92 MB, free: 6.652 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.398/1.398, allocations: 223.3 MB / 241 MB, free: 5.27 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 10.1.0-maint.10.0.x/package.mo): time 2.585/2.585, allocations: 437.8 MB / 0.7128 GB, free: 6.938 MB / 0.5606 GB Notification: Performance of FrontEnd - loaded program: time 0.0003392/0.0003393, allocations: 8 kB / 0.8735 GB, free: 3.27 MB / 0.7169 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.6005/0.6009, allocations: 153.8 MB / 1.024 GB, free: 15.81 MB / 0.7794 GB Notification: Performance of NFInst.instantiate(Buildings.Media.Examples.WaterProperties): time 0.005277/0.6062, allocations: 4.365 MB / 1.028 GB, free: 11.42 MB / 0.7794 GB Notification: Performance of NFInst.instExpressions: time 0.003049/0.6093, allocations: 2.687 MB / 1.031 GB, free: 8.723 MB / 0.7794 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.000116/0.6094, allocations: 3.938 kB / 1.031 GB, free: 8.719 MB / 0.7794 GB Notification: Performance of NFTyping.typeComponents: time 0.0002474/0.6097, allocations: 39.8 kB / 1.031 GB, free: 8.68 MB / 0.7794 GB Notification: Performance of NFTyping.typeBindings: time 0.0002657/0.6099, allocations: 87.48 kB / 1.031 GB, free: 8.594 MB / 0.7794 GB Notification: Performance of NFTyping.typeClassSections: time 0.001272/0.6112, allocations: 456.5 kB / 1.031 GB, free: 8.148 MB / 0.7794 GB Notification: Performance of NFFlatten.flatten: time 0.0003246/0.6116, allocations: 307.8 kB / 1.031 GB, free: 7.844 MB / 0.7794 GB Notification: Performance of NFFlatten.resolveConnections: time 5.064e-05/0.6116, allocations: 17.55 kB / 1.031 GB, free: 7.824 MB / 0.7794 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0002164/0.6118, allocations: 107.6 kB / 1.032 GB, free: 7.719 MB / 0.7794 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0001451/0.612, allocations: 91.66 kB / 1.032 GB, free: 7.629 MB / 0.7794 GB Notification: Performance of NFPackage.collectConstants: time 2.638e-05/0.612, allocations: 12 kB / 1.032 GB, free: 7.617 MB / 0.7794 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0007584/0.6128, allocations: 375.1 kB / 1.032 GB, free: 7.25 MB / 0.7794 GB Notification: Performance of NFScalarize.scalarize: time 7.449e-05/0.6129, allocations: 35.89 kB / 1.032 GB, free: 7.215 MB / 0.7794 GB Notification: Performance of NFVerifyModel.verify: time 0.0001028/0.613, allocations: 105.3 kB / 1.032 GB, free: 7.105 MB / 0.7794 GB Notification: Performance of NFConvertDAE.convert: time 0.0004271/0.6134, allocations: 237.5 kB / 1.032 GB, free: 6.875 MB / 0.7794 GB Notification: Performance of FrontEnd - DAE generated: time 4.248e-06/0.6134, allocations: 0 / 1.032 GB, free: 6.875 MB / 0.7794 GB Notification: Performance of FrontEnd: time 4.398e-06/0.6135, allocations: 0 / 1.032 GB, free: 6.875 MB / 0.7794 GB Notification: Performance of Transformations before backend: time 5.801e-06/0.6135, allocations: 3.938 kB / 1.032 GB, free: 6.871 MB / 0.7794 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.0006437/0.6141, allocations: 468.8 kB / 1.033 GB, free: 6.363 MB / 0.7794 GB Notification: Performance of prepare preOptimizeDAE: time 3.948e-05/0.6142, allocations: 16.03 kB / 1.033 GB, free: 6.348 MB / 0.7794 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001619/0.6143, allocations: 20.75 kB / 1.033 GB, free: 6.328 MB / 0.7794 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000206/0.6145, allocations: 216 kB / 1.033 GB, free: 6.078 MB / 0.7794 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.949e-05/0.6146, allocations: 16.69 kB / 1.033 GB, free: 6.062 MB / 0.7794 GB Notification: Performance of preOpt expandDerOperator (simulation): time 2.1e-05/0.6146, allocations: 16.31 kB / 1.033 GB, free: 6.047 MB / 0.7794 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004254/0.615, allocations: 248.3 kB / 1.033 GB, free: 5.785 MB / 0.7794 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.189e-05/0.6151, allocations: 7.984 kB / 1.033 GB, free: 5.777 MB / 0.7794 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.708e-05/0.6151, allocations: 8 kB / 1.033 GB, free: 5.77 MB / 0.7794 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.86e-05/0.6151, allocations: 8 kB / 1.033 GB, free: 5.762 MB / 0.7794 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0006049/0.6157, allocations: 435.2 kB / 1.034 GB, free: 5.336 MB / 0.7794 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001154/0.6169, allocations: 0.9449 MB / 1.035 GB, free: 4.301 MB / 0.7794 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0002674/0.6172, allocations: 163.1 kB / 1.035 GB, free: 4.133 MB / 0.7794 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001031/0.6173, allocations: 61.53 kB / 1.035 GB, free: 4.07 MB / 0.7794 GB Notification: Performance of preOpt evalFunc (simulation): time 0.001429/0.6187, allocations: 1.825 MB / 1.037 GB, free: 1.887 MB / 0.7794 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.663e-05/0.6188, allocations: 38.56 kB / 1.037 GB, free: 1.84 MB / 0.7794 GB Notification: Performance of pre-optimization done (n=15): time 1.963e-06/0.6188, allocations: 3.938 kB / 1.037 GB, free: 1.836 MB / 0.7794 GB Notification: Performance of matching and sorting (n=15): time 0.000332/0.6191, allocations: 142.7 kB / 1.037 GB, free: 1.691 MB / 0.7794 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.672e-05/0.6192, allocations: 59.34 kB / 1.037 GB, free: 1.621 MB / 0.7794 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001463/0.6193, allocations: 167.3 kB / 1.037 GB, free: 1.445 MB / 0.7794 GB Notification: Performance of collectPreVariables (initialization): time 2.526e-05/0.6194, allocations: 29.7 kB / 1.037 GB, free: 1.41 MB / 0.7794 GB Notification: Performance of collectInitialEqns (initialization): time 8.771e-05/0.6194, allocations: 139.8 kB / 1.037 GB, free: 1.27 MB / 0.7794 GB Notification: Performance of collectInitialBindings (initialization): time 3.915e-05/0.6195, allocations: 55.25 kB / 1.037 GB, free: 1.215 MB / 0.7794 GB Notification: Performance of simplifyInitialFunctions (initialization): time 3.85e-05/0.6195, allocations: 29.7 kB / 1.037 GB, free: 1.18 MB / 0.7794 GB Notification: Performance of setup shared object (initialization): time 0.000118/0.6197, allocations: 322.8 kB / 1.038 GB, free: 0.8555 MB / 0.7794 GB Notification: Performance of preBalanceInitialSystem (initialization): time 6.839e-05/0.6197, allocations: 35.92 kB / 1.038 GB, free: 0.8203 MB / 0.7794 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001354/0.6199, allocations: 145.6 kB / 1.038 GB, free: 0.6289 MB / 0.7794 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002246/0.6201, allocations: 196.6 kB / 1.038 GB, free: 400 kB / 0.7794 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.645e-06/0.6201, allocations: 0 / 1.038 GB, free: 400 kB / 0.7794 GB Notification: Performance of matching and sorting (n=30) (initialization): time 0.0003251/0.6204, allocations: 217 kB / 1.038 GB, free: 176 kB / 0.7794 GB Notification: Performance of prepare postOptimizeDAE: time 1.82e-05/0.6205, allocations: 13.39 kB / 1.038 GB, free: 164 kB / 0.7794 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.176e-06/0.6205, allocations: 4 kB / 1.038 GB, free: 160 kB / 0.7794 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.679e-05/0.6205, allocations: 7.938 kB / 1.038 GB, free: 152 kB / 0.7794 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001668/0.6207, allocations: 55.86 kB / 1.038 GB, free: 96 kB / 0.7794 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.738e-06/0.6207, allocations: 4 kB / 1.038 GB, free: 92 kB / 0.7794 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001217/0.6208, allocations: 28.22 kB / 1.038 GB, free: 64 kB / 0.7794 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.174e-05/0.6209, allocations: 19.98 kB / 1.038 GB, free: 44 kB / 0.7794 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.0001342/0.621, allocations: 134.2 kB / 1.038 GB, free: 15.9 MB / 0.795 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.374e-05/0.621, allocations: 11.91 kB / 1.038 GB, free: 15.89 MB / 0.795 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0003338/0.6214, allocations: 151 kB / 1.039 GB, free: 15.74 MB / 0.795 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.146e-05/0.6214, allocations: 3.938 kB / 1.039 GB, free: 15.74 MB / 0.795 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.589e-06/0.6214, allocations: 0 / 1.039 GB, free: 15.74 MB / 0.795 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.61e-06/0.6214, allocations: 3.984 kB / 1.039 GB, free: 15.73 MB / 0.795 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002445/0.6217, allocations: 217.6 kB / 1.039 GB, free: 15.47 MB / 0.795 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.413e-06/0.6217, allocations: 0 / 1.039 GB, free: 15.47 MB / 0.795 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 8.8e-05/0.6218, allocations: 27.92 kB / 1.039 GB, free: 15.45 MB / 0.795 GB Notification: Performance of postOpt tearingSystem (simulation): time 4.578e-06/0.6218, allocations: 4 kB / 1.039 GB, free: 15.44 MB / 0.795 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.267e-06/0.6218, allocations: 0 / 1.039 GB, free: 15.44 MB / 0.795 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.316e-06/0.6218, allocations: 3.938 kB / 1.039 GB, free: 15.44 MB / 0.795 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.62e-07/0.6218, allocations: 0 / 1.039 GB, free: 15.44 MB / 0.795 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.000294/0.6221, allocations: 225.8 kB / 1.039 GB, free: 15.2 MB / 0.795 GB Notification: Performance of postOpt removeConstants (simulation): time 9.465e-05/0.6222, allocations: 116.8 kB / 1.039 GB, free: 15.07 MB / 0.795 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.481e-05/0.6223, allocations: 7.938 kB / 1.039 GB, free: 15.06 MB / 0.795 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002147/0.6225, allocations: 19.92 kB / 1.039 GB, free: 15.04 MB / 0.795 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.424e-05/0.6225, allocations: 15.98 kB / 1.039 GB, free: 15.03 MB / 0.795 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.156e-05/0.6225, allocations: 11.98 kB / 1.039 GB, free: 15.02 MB / 0.795 GB Notification: Performance of sorting global known variables: time 8.686e-05/0.6226, allocations: 122.3 kB / 1.039 GB, free: 14.9 MB / 0.795 GB Notification: Performance of sort global known variables: time 1.3e-07/0.6226, allocations: 0 / 1.039 GB, free: 14.9 MB / 0.795 GB Notification: Performance of remove unused functions: time 0.0004097/0.6231, allocations: 83.98 kB / 1.039 GB, free: 14.82 MB / 0.795 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.0003306/0.6234, allocations: 179 kB / 1.04 GB, free: 14.63 MB / 0.795 GB Notification: Performance of simCode: created initialization part: time 0.0002257/0.6236, allocations: 120.5 kB / 1.04 GB, free: 14.52 MB / 0.795 GB Notification: Performance of simCode: created event and clocks part: time 2.935e-06/0.6236, allocations: 0 / 1.04 GB, free: 14.52 MB / 0.795 GB Notification: Performance of simCode: created simulation system equations: time 6.523e-05/0.6237, allocations: 47.92 kB / 1.04 GB, free: 14.47 MB / 0.795 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004568/0.6242, allocations: 47.95 kB / 1.04 GB, free: 14.42 MB / 0.795 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0007161/0.6249, allocations: 467.3 kB / 1.04 GB, free: 13.93 MB / 0.795 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002616/0.6252, allocations: 0.7053 MB / 1.041 GB, free: 13.2 MB / 0.795 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 6.283e-05/0.6252, allocations: 31.42 kB / 1.041 GB, free: 13.17 MB / 0.795 GB Notification: Performance of SimCode: time 2.7e-07/0.6253, allocations: 7.938 kB / 1.041 GB, free: 13.16 MB / 0.795 GB Notification: Performance of Templates: time 0.005488/0.6307, allocations: 3.138 MB / 1.044 GB, free: 10.05 MB / 0.795 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