Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_latest_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.0.0-master/package.mo", uses=false) Using package Buildings with version 11.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.0.0-master/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_latest_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_latest_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.001334/0.001334, allocations: 100.1 kB / 15.88 MB, free: 12 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.001556/0.001556, allocations: 200.4 kB / 16.79 MB, free: 6.809 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.331/1.331, allocations: 222.9 MB / 240.5 MB, free: 4.523 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.0.0-master/package.mo): time 2.642/2.642, allocations: 461.9 MB / 0.7348 GB, free: 14.19 MB / 0.5919 GB Notification: Performance of FrontEnd - loaded program: time 0.001405/0.001405, allocations: 64.47 kB / 0.899 GB, free: 37.09 MB / 0.7169 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2739/0.2753, allocations: 157.4 MB / 1.053 GB, free: 8.332 MB / 0.8106 GB Notification: Performance of NFInst.instantiate(Buildings.Media.Examples.SteamDerivativeCheck): time 0.002388/0.2777, allocations: 1.329 MB / 1.054 GB, free: 6.988 MB / 0.8106 GB Notification: Performance of NFInst.instExpressions: time 0.138/0.4158, allocations: 135.7 MB / 1.187 GB, free: 14.79 MB / 0.9512 GB Notification: Performance of NFInst.updateImplicitVariability: time 3.516e-05/0.4158, allocations: 4 kB / 1.187 GB, free: 14.79 MB / 0.9512 GB Notification: Performance of NFTyping.typeComponents: time 2.829e-05/0.4159, allocations: 7.922 kB / 1.187 GB, free: 14.78 MB / 0.9512 GB Notification: Performance of NFTyping.typeBindings: time 7.821e-05/0.416, allocations: 7.984 kB / 1.187 GB, free: 14.77 MB / 0.9512 GB Notification: Performance of NFTyping.typeClassSections: time 0.001272/0.4173, allocations: 362.8 kB / 1.187 GB, free: 14.42 MB / 0.9512 GB Notification: Performance of NFFlatten.flatten: time 8.169e-05/0.4174, allocations: 47.83 kB / 1.187 GB, free: 14.37 MB / 0.9512 GB Notification: Performance of NFFlatten.resolveConnections: time 4.257e-05/0.4174, allocations: 4 kB / 1.187 GB, free: 14.37 MB / 0.9512 GB Notification: Performance of NFEvalConstants.evaluate: time 5.927e-05/0.4175, allocations: 23.92 kB / 1.187 GB, free: 14.34 MB / 0.9512 GB Notification: Performance of NFSimplifyModel.simplify: time 7.789e-05/0.4176, allocations: 19.97 kB / 1.187 GB, free: 14.32 MB / 0.9512 GB Notification: Performance of NFPackage.collectConstants: time 1.198e-05/0.4176, allocations: 0 / 1.187 GB, free: 14.32 MB / 0.9512 GB Notification: Performance of NFFlatten.collectFunctions: time 0.001547/0.4192, allocations: 0.8192 MB / 1.188 GB, free: 13.5 MB / 0.9512 GB Notification: Performance of NFScalarize.scalarize: time 1.83e-05/0.4192, allocations: 7.938 kB / 1.188 GB, free: 13.5 MB / 0.9512 GB Notification: Performance of NFVerifyModel.verify: time 3.713e-05/0.4192, allocations: 23.91 kB / 1.188 GB, free: 13.47 MB / 0.9512 GB Notification: Performance of NFConvertDAE.convert: time 0.0004203/0.4197, allocations: 287.7 kB / 1.188 GB, free: 13.19 MB / 0.9512 GB Notification: Performance of FrontEnd - DAE generated: time 1.35e-05/0.4197, allocations: 4 kB / 1.188 GB, free: 13.19 MB / 0.9512 GB Notification: Performance of FrontEnd: time 1.273e-06/0.4197, allocations: 0 / 1.188 GB, free: 13.19 MB / 0.9512 GB Notification: Performance of Transformations before backend: time 4.599e-06/0.4197, allocations: 0 / 1.188 GB, free: 13.19 MB / 0.9512 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.0005503/0.4202, allocations: 367.5 kB / 1.188 GB, free: 12.78 MB / 0.9512 GB Notification: Performance of prepare preOptimizeDAE: time 4.139e-05/0.4203, allocations: 11.97 kB / 1.188 GB, free: 12.77 MB / 0.9512 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001922/0.4205, allocations: 16.92 kB / 1.188 GB, free: 12.75 MB / 0.9512 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001209/0.4206, allocations: 172.2 kB / 1.189 GB, free: 12.55 MB / 0.9512 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.335e-05/0.4207, allocations: 4.375 kB / 1.189 GB, free: 12.54 MB / 0.9512 GB Notification: Performance of preOpt expandDerOperator (simulation): time 2.517e-05/0.4207, allocations: 8.125 kB / 1.189 GB, free: 12.54 MB / 0.9512 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001609/0.4209, allocations: 61.59 kB / 1.189 GB, free: 12.47 MB / 0.9512 GB Notification: Performance of preOpt findStateOrder (simulation): time 7.654e-06/0.4209, allocations: 0 / 1.189 GB, free: 12.47 MB / 0.9512 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.425e-05/0.4209, allocations: 4 kB / 1.189 GB, free: 12.46 MB / 0.9512 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.509e-06/0.4209, allocations: 0 / 1.189 GB, free: 12.46 MB / 0.9512 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 6.728e-05/0.421, allocations: 19.97 kB / 1.189 GB, free: 12.45 MB / 0.9512 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001852/0.4212, allocations: 165.7 kB / 1.189 GB, free: 12.23 MB / 0.9512 GB Notification: Performance of preOpt comSubExp (simulation): time 0.000111/0.4213, allocations: 50.56 kB / 1.189 GB, free: 12.18 MB / 0.9512 GB Notification: Performance of preOpt resolveLoops (simulation): time 3.239e-05/0.4213, allocations: 20.72 kB / 1.189 GB, free: 12.15 MB / 0.9512 GB Notification: Performance of preOpt evalFunc (simulation): time 0.01066/0.432, allocations: 3.17 MB / 1.192 GB, free: 8.887 MB / 0.9512 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.684e-05/0.432, allocations: 34.56 kB / 1.192 GB, free: 8.844 MB / 0.9512 GB Notification: Performance of pre-optimization done (n=7): time 4.128e-06/0.4321, allocations: 3.984 kB / 1.192 GB, free: 8.84 MB / 0.9512 GB Notification: Performance of matching and sorting (n=11): time 0.04066/0.4727, allocations: 14.85 MB / 1.207 GB, free: 9.836 MB / 0.9669 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.78e-05/0.4728, allocations: 55.41 kB / 1.207 GB, free: 9.77 MB / 0.9669 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 6.497e-05/0.4729, allocations: 93.86 kB / 1.207 GB, free: 9.668 MB / 0.9669 GB Notification: Performance of collectPreVariables (initialization): time 1.884e-05/0.4729, allocations: 29.83 kB / 1.207 GB, free: 9.633 MB / 0.9669 GB Notification: Performance of collectInitialEqns (initialization): time 3.534e-05/0.4729, allocations: 80.14 kB / 1.207 GB, free: 9.551 MB / 0.9669 GB Notification: Performance of collectInitialBindings (initialization): time 4.726e-05/0.473, allocations: 51.38 kB / 1.207 GB, free: 9.5 MB / 0.9669 GB Notification: Performance of simplifyInitialFunctions (initialization): time 5.522e-05/0.4731, allocations: 29.7 kB / 1.207 GB, free: 9.465 MB / 0.9669 GB Notification: Performance of setup shared object (initialization): time 0.0001159/0.4732, allocations: 326.7 kB / 1.207 GB, free: 9.137 MB / 0.9669 GB Notification: Performance of preBalanceInitialSystem (initialization): time 5.331e-05/0.4732, allocations: 19.98 kB / 1.207 GB, free: 9.117 MB / 0.9669 GB Notification: Performance of partitionIndependentBlocks (initialization): time 5.551e-05/0.4733, allocations: 30.98 kB / 1.207 GB, free: 9.09 MB / 0.9669 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001221/0.4734, allocations: 64.8 kB / 1.207 GB, free: 9.023 MB / 0.9669 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.152e-06/0.4734, allocations: 0 / 1.207 GB, free: 9.023 MB / 0.9669 GB Notification: Performance of matching and sorting (n=14) (initialization): time 0.0002251/0.4737, allocations: 109.6 kB / 1.207 GB, free: 8.91 MB / 0.9669 GB Notification: Performance of prepare postOptimizeDAE: time 1.721e-05/0.4737, allocations: 4 kB / 1.207 GB, free: 8.906 MB / 0.9669 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.56e-06/0.4737, allocations: 0 / 1.207 GB, free: 8.906 MB / 0.9669 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.575e-05/0.4737, allocations: 4 kB / 1.207 GB, free: 8.902 MB / 0.9669 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001233/0.4738, allocations: 27.92 kB / 1.207 GB, free: 8.875 MB / 0.9669 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.891e-06/0.4739, allocations: 0 / 1.207 GB, free: 8.875 MB / 0.9669 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 2.94e-05/0.4739, allocations: 4 kB / 1.207 GB, free: 8.871 MB / 0.9669 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.114e-05/0.4739, allocations: 4 kB / 1.207 GB, free: 8.867 MB / 0.9669 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.212e-05/0.474, allocations: 117.8 kB / 1.208 GB, free: 8.742 MB / 0.9669 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.993e-05/0.4741, allocations: 4 kB / 1.208 GB, free: 8.738 MB / 0.9669 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002806/0.4743, allocations: 129.5 kB / 1.208 GB, free: 8.605 MB / 0.9669 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.857e-06/0.4744, allocations: 3.938 kB / 1.208 GB, free: 8.602 MB / 0.9669 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.929e-06/0.4744, allocations: 0 / 1.208 GB, free: 8.602 MB / 0.9669 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.414e-06/0.4744, allocations: 7.984 kB / 1.208 GB, free: 8.594 MB / 0.9669 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001744/0.4746, allocations: 181.6 kB / 1.208 GB, free: 8.367 MB / 0.9669 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.563e-06/0.4746, allocations: 0 / 1.208 GB, free: 8.367 MB / 0.9669 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001195/0.4747, allocations: 20 kB / 1.208 GB, free: 8.348 MB / 0.9669 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.725e-06/0.4747, allocations: 3.938 kB / 1.208 GB, free: 8.344 MB / 0.9669 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.335e-05/0.4747, allocations: 7.984 kB / 1.208 GB, free: 8.336 MB / 0.9669 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.834e-06/0.4747, allocations: 0 / 1.208 GB, free: 8.336 MB / 0.9669 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.52e-07/0.4747, allocations: 0 / 1.208 GB, free: 8.336 MB / 0.9669 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002825/0.475, allocations: 153 kB / 1.208 GB, free: 8.168 MB / 0.9669 GB Notification: Performance of postOpt removeConstants (simulation): time 7.081e-05/0.4751, allocations: 97.03 kB / 1.208 GB, free: 8.055 MB / 0.9669 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.816e-05/0.4751, allocations: 7.938 kB / 1.208 GB, free: 8.047 MB / 0.9669 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001444/0.4753, allocations: 12 kB / 1.208 GB, free: 8.035 MB / 0.9669 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.475e-05/0.4753, allocations: 7.984 kB / 1.208 GB, free: 8.027 MB / 0.9669 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.309e-05/0.4753, allocations: 8 kB / 1.208 GB, free: 8.02 MB / 0.9669 GB Notification: Performance of sorting global known variables: time 3.474e-05/0.4754, allocations: 75.28 kB / 1.208 GB, free: 7.945 MB / 0.9669 GB Notification: Performance of sort global known variables: time 1.7e-07/0.4754, allocations: 0 / 1.208 GB, free: 7.945 MB / 0.9669 GB Notification: Performance of remove unused functions: time 0.001689/0.4771, allocations: 0.5625 MB / 1.209 GB, free: 7.383 MB / 0.9669 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.00347/0.4805, allocations: 359 kB / 1.209 GB, free: 7.023 MB / 0.9669 GB Notification: Performance of simCode: created initialization part: time 0.0001855/0.4807, allocations: 79.03 kB / 1.209 GB, free: 6.949 MB / 0.9669 GB Notification: Performance of simCode: created event and clocks part: time 2.204e-06/0.4808, allocations: 0 / 1.209 GB, free: 6.949 MB / 0.9669 GB Notification: Performance of simCode: created simulation system equations: time 6.201e-05/0.4808, allocations: 31.98 kB / 1.209 GB, free: 6.918 MB / 0.9669 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001809/0.481, allocations: 11.94 kB / 1.209 GB, free: 6.906 MB / 0.9669 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.000627/0.4816, allocations: 381.4 kB / 1.21 GB, free: 6.504 MB / 0.9669 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002506/0.4819, allocations: 0.6926 MB / 1.21 GB, free: 5.785 MB / 0.9669 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.179e-05/0.482, allocations: 19.42 kB / 1.21 GB, free: 5.766 MB / 0.9669 GB Notification: Performance of SimCode: time 3.2e-07/0.482, allocations: 0 / 1.21 GB, free: 5.766 MB / 0.9669 GB Notification: Performance of Templates: time 0.02224/0.5042, allocations: 14.32 MB / 1.224 GB, free: 7.449 MB / 0.9825 GB make -j1 -f Buildings_latest_Buildings.Media.Examples.SteamDerivativeCheck.makefile (rm -f Buildings_latest_Buildings.Media.Examples.SteamDerivativeCheck.pipe ; mkfifo Buildings_latest_Buildings.Media.Examples.SteamDerivativeCheck.pipe ; head -c 1048576 < Buildings_latest_Buildings.Media.Examples.SteamDerivativeCheck.pipe >> ../files/Buildings_latest_Buildings.Media.Examples.SteamDerivativeCheck.sim & ./Buildings_latest_Buildings.Media.Examples.SteamDerivativeCheck -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Buildings_latest_Buildings.Media.Examples.SteamDerivativeCheck.pipe 2>&1) diffSimulationResults("Buildings_latest_Buildings.Media.Examples.SteamDerivativeCheck_res.mat","/mnt/ReferenceFiles/Buildings/csv/master/Buildings_Media_Examples_SteamDerivativeCheck.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_latest_Buildings.Media.Examples.SteamDerivativeCheck.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches