Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_11_Buildings.Media.Examples.SteamDerivativeCheck.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 11.1.0-maint.11.x/package.mo", uses=false) Using package Buildings with version 11.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.1.0-maint.11.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.SteamDerivativeCheck,tolerance=1e-10,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|der.hVapSym.|der.hVapCod.|der.cpSym.|der.cpCod.|der.cvSym.|der.cvCod.",fileNamePrefix="Buildings_11_Buildings.Media.Examples.SteamDerivativeCheck") translateModel(Buildings.Media.Examples.SteamDerivativeCheck,tolerance=1e-10,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|der.hVapSym.|der.hVapCod.|der.cpSym.|der.cpCod.|der.cvSym.|der.cvCod.",fileNamePrefix="Buildings_11_Buildings.Media.Examples.SteamDerivativeCheck") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.008653/0.008653, allocations: 102.8 kB / 15.74 MB, free: 6.066 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.001682/0.001682, allocations: 188 kB / 16.67 MB, free: 5.977 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.435/1.435, allocations: 222.9 MB / 240.4 MB, free: 15.08 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.1.0-maint.11.x/package.mo): time 2.65/2.65, allocations: 469.8 MB / 0.7425 GB, free: 3.344 MB / 0.6075 GB Notification: Performance of FrontEnd - loaded program: time 0.001288/0.001288, allocations: 67.89 kB / 1.065 GB, free: 13.6 MB / 0.8419 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.9408/0.9421, allocations: 159.1 MB / 1.221 GB, free: 2.094 MB / 0.9356 GB Notification: Performance of NFInst.instantiate(Buildings.Media.Examples.SteamDerivativeCheck): time 0.00224/0.9443, allocations: 1.269 MB / 1.222 GB, free: 0.8164 MB / 0.9356 GB Notification: Performance of NFInst.instExpressions: time 0.1743/1.119, allocations: 138.1 MB / 1.357 GB, free: 6.199 MB / 1.076 GB Notification: Performance of NFInst.updateImplicitVariability: time 4.308e-05/1.119, allocations: 0 / 1.357 GB, free: 6.199 MB / 1.076 GB Notification: Performance of NFTyping.typeComponents: time 3.106e-05/1.119, allocations: 0 / 1.357 GB, free: 6.199 MB / 1.076 GB Notification: Performance of NFTyping.typeBindings: time 6.066e-05/1.119, allocations: 3.938 kB / 1.357 GB, free: 6.195 MB / 1.076 GB Notification: Performance of NFTyping.typeClassSections: time 0.001766/1.12, allocations: 474.3 kB / 1.357 GB, free: 5.73 MB / 1.076 GB Notification: Performance of NFFlatten.flatten: time 0.0001103/1.121, allocations: 35.92 kB / 1.357 GB, free: 5.695 MB / 1.076 GB Notification: Performance of NFFlatten.resolveConnections: time 5.171e-05/1.121, allocations: 3.984 kB / 1.357 GB, free: 5.691 MB / 1.076 GB Notification: Performance of NFEvalConstants.evaluate: time 5.782e-05/1.121, allocations: 23.92 kB / 1.357 GB, free: 5.668 MB / 1.076 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0001034/1.121, allocations: 15.92 kB / 1.357 GB, free: 5.652 MB / 1.076 GB Notification: Performance of NFPackage.collectConstants: time 1.461e-05/1.121, allocations: 3.984 kB / 1.357 GB, free: 5.648 MB / 1.076 GB Notification: Performance of NFFlatten.collectFunctions: time 0.001799/1.123, allocations: 0.8271 MB / 1.358 GB, free: 4.82 MB / 1.076 GB Notification: Performance of NFScalarize.scalarize: time 2.48e-05/1.123, allocations: 11.97 kB / 1.358 GB, free: 4.809 MB / 1.076 GB Notification: Performance of NFVerifyModel.verify: time 3.858e-05/1.123, allocations: 15.94 kB / 1.358 GB, free: 4.793 MB / 1.076 GB Notification: Performance of NFConvertDAE.convert: time 0.0008409/1.124, allocations: 451.6 kB / 1.358 GB, free: 4.355 MB / 1.076 GB Notification: Performance of FrontEnd - DAE generated: time 5.39e-06/1.124, allocations: 3.938 kB / 1.358 GB, free: 4.352 MB / 1.076 GB Notification: Performance of FrontEnd: time 1.793e-06/1.124, allocations: 0 / 1.358 GB, free: 4.352 MB / 1.076 GB Notification: Performance of Transformations before backend: time 6.071e-06/1.124, allocations: 0 / 1.358 GB, free: 4.352 MB / 1.076 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 7 * Number of variables: 7 Notification: Performance of Generate backend data structure: time 0.0005831/1.124, allocations: 367.2 kB / 1.359 GB, free: 3.945 MB / 1.076 GB Notification: Performance of prepare preOptimizeDAE: time 4.149e-05/1.124, allocations: 12.03 kB / 1.359 GB, free: 3.934 MB / 1.076 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.000214/1.124, allocations: 12.92 kB / 1.359 GB, free: 3.922 MB / 1.076 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001234/1.125, allocations: 164.4 kB / 1.359 GB, free: 3.723 MB / 1.076 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.317e-05/1.125, allocations: 8.312 kB / 1.359 GB, free: 3.715 MB / 1.076 GB Notification: Performance of preOpt expandDerOperator (simulation): time 2.903e-05/1.125, allocations: 12.08 kB / 1.359 GB, free: 3.703 MB / 1.076 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001611/1.125, allocations: 53.67 kB / 1.359 GB, free: 3.645 MB / 1.076 GB Notification: Performance of preOpt findStateOrder (simulation): time 8.246e-06/1.125, allocations: 0 / 1.359 GB, free: 3.645 MB / 1.076 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.776e-05/1.125, allocations: 4 kB / 1.359 GB, free: 3.641 MB / 1.076 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.53e-06/1.125, allocations: 0 / 1.359 GB, free: 3.641 MB / 1.076 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 8.608e-05/1.125, allocations: 19.92 kB / 1.359 GB, free: 3.621 MB / 1.076 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001891/1.125, allocations: 169.6 kB / 1.359 GB, free: 3.406 MB / 1.076 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001193/1.125, allocations: 50.56 kB / 1.359 GB, free: 3.348 MB / 1.076 GB Notification: Performance of preOpt resolveLoops (simulation): time 3.271e-05/1.125, allocations: 16.8 kB / 1.359 GB, free: 3.328 MB / 1.076 GB Notification: Performance of preOpt evalFunc (simulation): time 0.01062/1.136, allocations: 3.206 MB / 1.362 GB, free: 28 kB / 1.076 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.985e-05/1.136, allocations: 34.56 kB / 1.362 GB, free: 15.98 MB / 1.092 GB Notification: Performance of pre-optimization done (n=7): time 2.064e-06/1.136, allocations: 0 / 1.362 GB, free: 15.98 MB / 1.092 GB Notification: Performance of matching and sorting (n=11): time 0.0409/1.177, allocations: 15.01 MB / 1.377 GB, free: 0.8203 MB / 1.092 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.371e-05/1.177, allocations: 51.41 kB / 1.377 GB, free: 0.7578 MB / 1.092 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 8.36e-05/1.177, allocations: 89.86 kB / 1.377 GB, free: 0.6602 MB / 1.092 GB Notification: Performance of collectPreVariables (initialization): time 2.341e-05/1.177, allocations: 33.7 kB / 1.377 GB, free: 0.6211 MB / 1.092 GB Notification: Performance of collectInitialEqns (initialization): time 2.905e-05/1.177, allocations: 80.14 kB / 1.377 GB, free: 0.5391 MB / 1.092 GB Notification: Performance of collectInitialBindings (initialization): time 5.187e-05/1.177, allocations: 43.77 kB / 1.377 GB, free: 0.4961 MB / 1.092 GB Notification: Performance of simplifyInitialFunctions (initialization): time 5.719e-05/1.177, allocations: 25.72 kB / 1.377 GB, free: 476 kB / 1.092 GB Notification: Performance of setup shared object (initialization): time 0.0001246/1.177, allocations: 326.8 kB / 1.378 GB, free: 140 kB / 1.092 GB Notification: Performance of preBalanceInitialSystem (initialization): time 4.985e-05/1.177, allocations: 23.98 kB / 1.378 GB, free: 116 kB / 1.092 GB Notification: Performance of partitionIndependentBlocks (initialization): time 5.559e-05/1.177, allocations: 16 kB / 1.378 GB, free: 100 kB / 1.092 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.000128/1.177, allocations: 66.47 kB / 1.378 GB, free: 32 kB / 1.092 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.603e-06/1.177, allocations: 0 / 1.378 GB, free: 32 kB / 1.092 GB Notification: Performance of matching and sorting (n=14) (initialization): time 0.0002587/1.178, allocations: 109.6 kB / 1.378 GB, free: 15.92 MB / 1.107 GB Notification: Performance of prepare postOptimizeDAE: time 2.103e-05/1.178, allocations: 8 kB / 1.378 GB, free: 15.91 MB / 1.107 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.752e-06/1.178, allocations: 4 kB / 1.378 GB, free: 15.91 MB / 1.107 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.833e-05/1.178, allocations: 0 / 1.378 GB, free: 15.91 MB / 1.107 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001227/1.178, allocations: 24 kB / 1.378 GB, free: 15.88 MB / 1.107 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.046e-06/1.178, allocations: 3.984 kB / 1.378 GB, free: 15.88 MB / 1.107 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 2.895e-05/1.178, allocations: 0 / 1.378 GB, free: 15.88 MB / 1.107 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.201e-05/1.178, allocations: 4 kB / 1.378 GB, free: 15.88 MB / 1.107 GB Notification: Model statistics after passing the back-end for initialization: * 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 initialization (14): * Single equations (assignments): 14 * Array equations: 0 * 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.0001088/1.178, allocations: 122.2 kB / 1.378 GB, free: 15.75 MB / 1.107 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.804e-05/1.178, allocations: 8 kB / 1.378 GB, free: 15.74 MB / 1.107 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002633/1.178, allocations: 121.4 kB / 1.378 GB, free: 15.61 MB / 1.107 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.651e-06/1.178, allocations: 11.92 kB / 1.378 GB, free: 15.6 MB / 1.107 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.188e-06/1.178, allocations: 0 / 1.378 GB, free: 15.6 MB / 1.107 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.306e-06/1.178, allocations: 0 / 1.378 GB, free: 15.6 MB / 1.107 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001543/1.178, allocations: 181.6 kB / 1.378 GB, free: 15.38 MB / 1.107 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.643e-06/1.178, allocations: 0 / 1.378 GB, free: 15.38 MB / 1.107 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001221/1.179, allocations: 27.92 kB / 1.378 GB, free: 15.35 MB / 1.107 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.946e-06/1.179, allocations: 4 kB / 1.378 GB, free: 15.34 MB / 1.107 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.246e-05/1.179, allocations: 4 kB / 1.378 GB, free: 15.34 MB / 1.107 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.853e-06/1.179, allocations: 4 kB / 1.378 GB, free: 15.34 MB / 1.107 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.42e-07/1.179, allocations: 0 / 1.378 GB, free: 15.34 MB / 1.107 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003011/1.179, allocations: 156.9 kB / 1.379 GB, free: 15.16 MB / 1.107 GB Notification: Performance of postOpt removeConstants (simulation): time 8.341e-05/1.179, allocations: 89.09 kB / 1.379 GB, free: 15.06 MB / 1.107 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.758e-05/1.179, allocations: 4 kB / 1.379 GB, free: 15.05 MB / 1.107 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001401/1.179, allocations: 15.98 kB / 1.379 GB, free: 15.04 MB / 1.107 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.427e-05/1.179, allocations: 7.984 kB / 1.379 GB, free: 15.03 MB / 1.107 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.418e-05/1.179, allocations: 8 kB / 1.379 GB, free: 15.02 MB / 1.107 GB Notification: Performance of sorting global known variables: time 3.225e-05/1.179, allocations: 75.28 kB / 1.379 GB, free: 14.95 MB / 1.107 GB Notification: Performance of sort global known variables: time 8.1e-08/1.179, allocations: 0 / 1.379 GB, free: 14.95 MB / 1.107 GB Notification: Performance of remove unused functions: time 0.002019/1.181, allocations: 0.5661 MB / 1.379 GB, free: 14.38 MB / 1.107 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 3 (hVapSym,cpSym,cvSym) * 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 (11): * Single equations (assignments): 11 * Array equations: 0 * 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.003824/1.185, allocations: 358.7 kB / 1.38 GB, free: 14.02 MB / 1.107 GB Notification: Performance of simCode: created initialization part: time 0.0002038/1.185, allocations: 57.62 kB / 1.38 GB, free: 13.97 MB / 1.107 GB Notification: Performance of simCode: created event and clocks part: time 3.075e-06/1.185, allocations: 4 kB / 1.38 GB, free: 13.96 MB / 1.107 GB Notification: Performance of simCode: created simulation system equations: time 7.256e-05/1.185, allocations: 39.86 kB / 1.38 GB, free: 13.93 MB / 1.107 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002181/1.186, allocations: 11.94 kB / 1.38 GB, free: 13.91 MB / 1.107 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0006705/1.186, allocations: 349.6 kB / 1.38 GB, free: 13.55 MB / 1.107 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002802/1.187, allocations: 0.6812 MB / 1.381 GB, free: 12.84 MB / 1.107 GB Notification: Performance of simCode: alias equations: time 8.487e-05/1.187, allocations: 28.53 kB / 1.381 GB, free: 12.81 MB / 1.107 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.188e-05/1.187, allocations: 19.44 kB / 1.381 GB, free: 12.79 MB / 1.107 GB Notification: Performance of SimCode: time 5.71e-07/1.187, allocations: 0 / 1.381 GB, free: 12.79 MB / 1.107 GB Notification: Performance of Templates: time 0.03762/1.224, allocations: 24.27 MB / 1.405 GB, free: 4.492 MB / 1.123 GB make -j1 -f Buildings_11_Buildings.Media.Examples.SteamDerivativeCheck.makefile (rm -f Buildings_11_Buildings.Media.Examples.SteamDerivativeCheck.pipe ; mkfifo Buildings_11_Buildings.Media.Examples.SteamDerivativeCheck.pipe ; head -c 1048576 < Buildings_11_Buildings.Media.Examples.SteamDerivativeCheck.pipe >> ../files/Buildings_11_Buildings.Media.Examples.SteamDerivativeCheck.sim & ./Buildings_11_Buildings.Media.Examples.SteamDerivativeCheck -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Buildings_11_Buildings.Media.Examples.SteamDerivativeCheck.pipe 2>&1) diffSimulationResults("Buildings_11_Buildings.Media.Examples.SteamDerivativeCheck_res.mat","/mnt/ReferenceFiles/Buildings/csv/maint_11.x/Buildings_Media_Examples_SteamDerivativeCheck.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_11_Buildings.Media.Examples.SteamDerivativeCheck.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches