Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_9_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 9.1.3-maint.9.1.x/package.mo", uses=false) Using package Buildings with version 9.1.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.1.3-maint.9.1.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_9_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_9_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.009198/0.009198, allocations: 102.7 kB / 15.74 MB, free: 6.5 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.00172/0.00172, allocations: 199 kB / 16.68 MB, free: 6.375 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.466/1.466, allocations: 222.9 MB / 240.4 MB, free: 4.32 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.1.3-maint.9.1.x/package.mo): time 2.521/2.521, allocations: 390.2 MB / 0.6648 GB, free: 204 kB / 0.5137 GB Notification: Performance of FrontEnd - loaded program: time 0.001335/0.001335, allocations: 66.33 kB / 0.9508 GB, free: 5.621 MB / 0.7169 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3443/0.3456, allocations: 140.4 MB / 1.088 GB, free: 1.539 MB / 0.8419 GB Notification: Performance of NFInst.instantiate(Buildings.Media.Examples.SteamDerivativeCheck): time 0.0024/0.3481, allocations: 1.272 MB / 1.089 GB, free: 264 kB / 0.8419 GB Notification: Performance of NFInst.instExpressions: time 0.1646/0.5127, allocations: 137.7 MB / 1.224 GB, free: 6 MB / 0.9825 GB Notification: Performance of NFInst.updateImplicitVariability: time 3.959e-05/0.5128, allocations: 0 / 1.224 GB, free: 6 MB / 0.9825 GB Notification: Performance of NFTyping.typeComponents: time 2.726e-05/0.5129, allocations: 7.922 kB / 1.224 GB, free: 5.992 MB / 0.9825 GB Notification: Performance of NFTyping.typeBindings: time 4.501e-05/0.513, allocations: 3.938 kB / 1.224 GB, free: 5.988 MB / 0.9825 GB Notification: Performance of NFTyping.typeClassSections: time 0.001189/0.5142, allocations: 458.4 kB / 1.224 GB, free: 5.539 MB / 0.9825 GB Notification: Performance of NFFlatten.flatten: time 9.23e-05/0.5143, allocations: 43.84 kB / 1.224 GB, free: 5.496 MB / 0.9825 GB Notification: Performance of NFFlatten.resolveConnections: time 3.543e-05/0.5143, allocations: 7.984 kB / 1.224 GB, free: 5.488 MB / 0.9825 GB Notification: Performance of NFEvalConstants.evaluate: time 4.203e-05/0.5144, allocations: 15.94 kB / 1.224 GB, free: 5.473 MB / 0.9825 GB Notification: Performance of NFSimplifyModel.simplify: time 7.372e-05/0.5144, allocations: 15.97 kB / 1.224 GB, free: 5.457 MB / 0.9825 GB Notification: Performance of NFPackage.collectConstants: time 1.145e-05/0.5144, allocations: 4 kB / 1.224 GB, free: 5.453 MB / 0.9825 GB Notification: Performance of NFFlatten.collectFunctions: time 0.00136/0.5158, allocations: 0.8348 MB / 1.225 GB, free: 4.617 MB / 0.9825 GB Notification: Performance of NFScalarize.scalarize: time 2.674e-05/0.5159, allocations: 11.92 kB / 1.225 GB, free: 4.605 MB / 0.9825 GB Notification: Performance of NFVerifyModel.verify: time 3.526e-05/0.5159, allocations: 19.92 kB / 1.225 GB, free: 4.586 MB / 0.9825 GB Notification: Performance of NFConvertDAE.convert: time 0.0005619/0.5165, allocations: 439.1 kB / 1.225 GB, free: 4.156 MB / 0.9825 GB Notification: Performance of FrontEnd - DAE generated: time 3.958e-06/0.5165, allocations: 3.938 kB / 1.225 GB, free: 4.152 MB / 0.9825 GB Notification: Performance of FrontEnd: time 1.062e-06/0.5165, allocations: 0 / 1.225 GB, free: 4.152 MB / 0.9825 GB Notification: Performance of Transformations before backend: time 5.22e-06/0.5165, allocations: 0 / 1.225 GB, free: 4.152 MB / 0.9825 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.000495/0.517, allocations: 375.2 kB / 1.226 GB, free: 3.738 MB / 0.9825 GB Notification: Performance of prepare preOptimizeDAE: time 3.686e-05/0.517, allocations: 8.031 kB / 1.226 GB, free: 3.73 MB / 0.9825 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001797/0.5172, allocations: 20.88 kB / 1.226 GB, free: 3.711 MB / 0.9825 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001038/0.5173, allocations: 168.3 kB / 1.226 GB, free: 3.508 MB / 0.9825 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.128e-05/0.5174, allocations: 4.375 kB / 1.226 GB, free: 3.504 MB / 0.9825 GB Notification: Performance of preOpt expandDerOperator (simulation): time 2.537e-05/0.5174, allocations: 4.125 kB / 1.226 GB, free: 3.5 MB / 0.9825 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001434/0.5175, allocations: 65.64 kB / 1.226 GB, free: 3.43 MB / 0.9825 GB Notification: Performance of preOpt findStateOrder (simulation): time 7.003e-06/0.5175, allocations: 0 / 1.226 GB, free: 3.43 MB / 0.9825 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.177e-05/0.5176, allocations: 4 kB / 1.226 GB, free: 3.426 MB / 0.9825 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.037e-06/0.5176, allocations: 0 / 1.226 GB, free: 3.426 MB / 0.9825 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 6.421e-05/0.5176, allocations: 23.97 kB / 1.226 GB, free: 3.402 MB / 0.9825 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001768/0.5178, allocations: 161.7 kB / 1.226 GB, free: 3.195 MB / 0.9825 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001067/0.5179, allocations: 50.5 kB / 1.226 GB, free: 3.137 MB / 0.9825 GB Notification: Performance of preOpt resolveLoops (simulation): time 3.81e-05/0.518, allocations: 28.77 kB / 1.226 GB, free: 3.105 MB / 0.9825 GB Notification: Performance of preOpt evalFunc (simulation): time 0.01134/0.5293, allocations: 3.197 MB / 1.229 GB, free: 15.81 MB / 0.9981 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.911e-05/0.5294, allocations: 42.56 kB / 1.229 GB, free: 15.76 MB / 0.9981 GB Notification: Performance of pre-optimization done (n=7): time 1.432e-06/0.5294, allocations: 0 / 1.229 GB, free: 15.76 MB / 0.9981 GB Notification: Performance of matching and sorting (n=11): time 0.0447/0.5741, allocations: 14.99 MB / 1.244 GB, free: 0.6133 MB / 0.9981 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.005e-05/0.5742, allocations: 55.41 kB / 1.244 GB, free: 0.5469 MB / 0.9981 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 6.331e-05/0.5743, allocations: 93.8 kB / 1.244 GB, free: 456 kB / 0.9981 GB Notification: Performance of collectPreVariables (initialization): time 2.277e-05/0.5743, allocations: 33.7 kB / 1.244 GB, free: 416 kB / 0.9981 GB Notification: Performance of collectInitialEqns (initialization): time 3.029e-05/0.5743, allocations: 80.14 kB / 1.244 GB, free: 332 kB / 0.9981 GB Notification: Performance of collectInitialBindings (initialization): time 4.74e-05/0.5744, allocations: 43.62 kB / 1.244 GB, free: 288 kB / 0.9981 GB Notification: Performance of simplifyInitialFunctions (initialization): time 5.45e-05/0.5744, allocations: 33.7 kB / 1.244 GB, free: 248 kB / 0.9981 GB Notification: Performance of setup shared object (initialization): time 0.0001207/0.5746, allocations: 318.8 kB / 1.245 GB, free: 15.92 MB / 1.014 GB Notification: Performance of preBalanceInitialSystem (initialization): time 5.112e-05/0.5746, allocations: 32.11 kB / 1.245 GB, free: 15.89 MB / 1.014 GB Notification: Performance of partitionIndependentBlocks (initialization): time 5.673e-05/0.5747, allocations: 27.98 kB / 1.245 GB, free: 15.86 MB / 1.014 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001907/0.5749, allocations: 58.23 kB / 1.245 GB, free: 15.8 MB / 1.014 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.122e-06/0.5749, allocations: 3.938 kB / 1.245 GB, free: 15.8 MB / 1.014 GB Notification: Performance of matching and sorting (n=14) (initialization): time 0.0002233/0.5751, allocations: 101.6 kB / 1.245 GB, free: 15.7 MB / 1.014 GB Notification: Performance of prepare postOptimizeDAE: time 2.055e-05/0.5752, allocations: 9.562 kB / 1.245 GB, free: 15.69 MB / 1.014 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.344e-06/0.5752, allocations: 0 / 1.245 GB, free: 15.69 MB / 1.014 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.483e-05/0.5752, allocations: 3.938 kB / 1.245 GB, free: 15.68 MB / 1.014 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001224/0.5753, allocations: 27.98 kB / 1.245 GB, free: 15.66 MB / 1.014 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.492e-06/0.5753, allocations: 0 / 1.245 GB, free: 15.66 MB / 1.014 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 2.754e-05/0.5754, allocations: 4 kB / 1.245 GB, free: 15.65 MB / 1.014 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.334e-05/0.5754, allocations: 8 kB / 1.245 GB, free: 15.64 MB / 1.014 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 8.915e-05/0.5755, allocations: 117.8 kB / 1.245 GB, free: 15.52 MB / 1.014 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.559e-05/0.5755, allocations: 4 kB / 1.245 GB, free: 15.52 MB / 1.014 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002699/0.5758, allocations: 125.4 kB / 1.245 GB, free: 15.39 MB / 1.014 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.719e-06/0.5758, allocations: 8 kB / 1.245 GB, free: 15.38 MB / 1.014 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.187e-06/0.5758, allocations: 0 / 1.245 GB, free: 15.38 MB / 1.014 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.767e-06/0.5758, allocations: 0 / 1.245 GB, free: 15.38 MB / 1.014 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001426/0.576, allocations: 173.6 kB / 1.245 GB, free: 15.16 MB / 1.014 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.905e-06/0.576, allocations: 0 / 1.245 GB, free: 15.16 MB / 1.014 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000127/0.5761, allocations: 31.92 kB / 1.245 GB, free: 15.13 MB / 1.014 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.495e-06/0.5761, allocations: 0 / 1.245 GB, free: 15.13 MB / 1.014 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.182e-05/0.5762, allocations: 4 kB / 1.245 GB, free: 15.12 MB / 1.014 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.527e-06/0.5762, allocations: 3.984 kB / 1.245 GB, free: 15.12 MB / 1.014 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.402e-06/0.5762, allocations: 0 / 1.245 GB, free: 15.12 MB / 1.014 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002937/0.5765, allocations: 156.9 kB / 1.246 GB, free: 14.95 MB / 1.014 GB Notification: Performance of postOpt removeConstants (simulation): time 9.062e-05/0.5766, allocations: 93.09 kB / 1.246 GB, free: 14.84 MB / 1.014 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.931e-05/0.5766, allocations: 3.984 kB / 1.246 GB, free: 14.84 MB / 1.014 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001451/0.5768, allocations: 8 kB / 1.246 GB, free: 14.83 MB / 1.014 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.859e-05/0.5768, allocations: 11.98 kB / 1.246 GB, free: 14.82 MB / 1.014 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.147e-05/0.5768, allocations: 4 kB / 1.246 GB, free: 14.82 MB / 1.014 GB Notification: Performance of sorting global known variables: time 3.383e-05/0.5768, allocations: 79.28 kB / 1.246 GB, free: 14.74 MB / 1.014 GB Notification: Performance of sort global known variables: time 1.4e-07/0.5769, allocations: 0 / 1.246 GB, free: 14.74 MB / 1.014 GB Notification: Performance of remove unused functions: time 0.001741/0.5786, allocations: 0.5699 MB / 1.246 GB, free: 14.17 MB / 1.014 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.0034/0.582, allocations: 370.8 kB / 1.247 GB, free: 13.8 MB / 1.014 GB Notification: Performance of simCode: created initialization part: time 0.0001824/0.5822, allocations: 71.91 kB / 1.247 GB, free: 13.73 MB / 1.014 GB Notification: Performance of simCode: created event and clocks part: time 2.836e-06/0.5822, allocations: 0 / 1.247 GB, free: 13.73 MB / 1.014 GB Notification: Performance of simCode: created simulation system equations: time 6.553e-05/0.5823, allocations: 35.94 kB / 1.247 GB, free: 13.69 MB / 1.014 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001851/0.5825, allocations: 15.92 kB / 1.247 GB, free: 13.68 MB / 1.014 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0005974/0.5831, allocations: 349.3 kB / 1.247 GB, free: 13.31 MB / 1.014 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002549/0.5834, allocations: 0.6889 MB / 1.248 GB, free: 12.59 MB / 1.014 GB Notification: Performance of simCode: alias equations: time 8.317e-05/0.5834, allocations: 24.53 kB / 1.248 GB, free: 12.57 MB / 1.014 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.404e-05/0.5835, allocations: 19.44 kB / 1.248 GB, free: 12.55 MB / 1.014 GB Notification: Performance of SimCode: time 3.5e-07/0.5835, allocations: 3.938 kB / 1.248 GB, free: 12.55 MB / 1.014 GB Notification: Performance of Templates: time 0.6434/1.227, allocations: 24.26 MB / 1.272 GB, free: 161.7 MB / 1.014 GB make -j1 -f Buildings_9_Buildings.Media.Examples.SteamDerivativeCheck.makefile (rm -f Buildings_9_Buildings.Media.Examples.SteamDerivativeCheck.pipe ; mkfifo Buildings_9_Buildings.Media.Examples.SteamDerivativeCheck.pipe ; head -c 1048576 < Buildings_9_Buildings.Media.Examples.SteamDerivativeCheck.pipe >> ../files/Buildings_9_Buildings.Media.Examples.SteamDerivativeCheck.sim & ./Buildings_9_Buildings.Media.Examples.SteamDerivativeCheck -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Buildings_9_Buildings.Media.Examples.SteamDerivativeCheck.pipe 2>&1) diffSimulationResults("Buildings_9_Buildings.Media.Examples.SteamDerivativeCheck_res.mat","/mnt/ReferenceFiles/Buildings/csv/maint_9.1.x/Buildings_Media_Examples_SteamDerivativeCheck.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_9_Buildings.Media.Examples.SteamDerivativeCheck.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches