Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_10_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 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.SteamDerivativeCheck,tolerance=1e-10,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|der.hVapSym.|der.hVapCod.|der.cpSym.|der.cpCod.|der.cvSym.|der.cvCod.",fileNamePrefix="Buildings_10_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_10_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.001096/0.001096, allocations: 100.9 kB / 16.35 MB, free: 6.285 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.001074/0.001074, allocations: 196.2 kB / 17.29 MB, free: 5.863 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 / 241 MB, free: 15.15 MB / 206.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.455/2.455, allocations: 437.1 MB / 0.7112 GB, free: 4.418 MB / 0.5762 GB Notification: Performance of FrontEnd - loaded program: time 0.001377/0.001377, allocations: 61.34 kB / 0.8707 GB, free: 1.496 MB / 0.6387 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2866/0.288, allocations: 151.6 MB / 1.019 GB, free: 9.906 MB / 0.795 GB Notification: Performance of NFInst.instantiate(Buildings.Media.Examples.SteamDerivativeCheck): time 0.00269/0.2907, allocations: 1.26 MB / 1.02 GB, free: 8.633 MB / 0.795 GB Notification: Performance of NFInst.instExpressions: time 0.5992/0.8899, allocations: 137.7 MB / 1.154 GB, free: 12.83 MB / 0.8731 GB Notification: Performance of NFInst.updateImplicitVariability: time 4.104e-05/0.89, allocations: 1.156 kB / 1.154 GB, free: 12.83 MB / 0.8731 GB Notification: Performance of NFTyping.typeComponents: time 1.651e-05/0.89, allocations: 0 / 1.154 GB, free: 12.83 MB / 0.8731 GB Notification: Performance of NFTyping.typeBindings: time 5.814e-05/0.8902, allocations: 11.58 kB / 1.154 GB, free: 12.82 MB / 0.8731 GB Notification: Performance of NFTyping.typeClassSections: time 0.001707/0.8919, allocations: 465.1 kB / 1.155 GB, free: 12.66 MB / 0.8731 GB Notification: Performance of NFFlatten.flatten: time 9.18e-05/0.892, allocations: 43.17 kB / 1.155 GB, free: 12.64 MB / 0.8731 GB Notification: Performance of NFFlatten.resolveConnections: time 3.561e-05/0.892, allocations: 2.25 kB / 1.155 GB, free: 12.64 MB / 0.8731 GB Notification: Performance of NFEvalConstants.evaluate: time 4.854e-05/0.8921, allocations: 23.39 kB / 1.155 GB, free: 12.63 MB / 0.8731 GB Notification: Performance of NFSimplifyModel.simplify: time 7.175e-05/0.8921, allocations: 17.78 kB / 1.155 GB, free: 12.62 MB / 0.8731 GB Notification: Performance of NFPackage.collectConstants: time 1.147e-05/0.8922, allocations: 2.656 kB / 1.155 GB, free: 12.62 MB / 0.8731 GB Notification: Performance of NFFlatten.collectFunctions: time 0.001761/0.8939, allocations: 0.8302 MB / 1.156 GB, free: 12.43 MB / 0.8731 GB Notification: Performance of NFScalarize.scalarize: time 1.941e-05/0.894, allocations: 8.062 kB / 1.156 GB, free: 12.42 MB / 0.8731 GB Notification: Performance of NFVerifyModel.verify: time 3.458e-05/0.894, allocations: 18.17 kB / 1.156 GB, free: 12.41 MB / 0.8731 GB Notification: Performance of NFConvertDAE.convert: time 0.0007441/0.8948, allocations: 447.3 kB / 1.156 GB, free: 12.31 MB / 0.8731 GB Notification: Performance of FrontEnd - DAE generated: time 4.789e-06/0.8948, allocations: 1.156 kB / 1.156 GB, free: 12.31 MB / 0.8731 GB Notification: Performance of FrontEnd: time 1.283e-06/0.8948, allocations: 0 / 1.156 GB, free: 12.31 MB / 0.8731 GB Notification: Performance of Transformations before backend: time 6.693e-06/0.8948, allocations: 0 / 1.156 GB, free: 12.31 MB / 0.8731 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.0005888/0.8954, allocations: 375.2 kB / 1.157 GB, free: 11.93 MB / 0.8731 GB Notification: Performance of prepare preOptimizeDAE: time 3.438e-05/0.8954, allocations: 8.906 kB / 1.157 GB, free: 11.93 MB / 0.8731 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001886/0.8956, allocations: 11.88 kB / 1.157 GB, free: 11.93 MB / 0.8731 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001052/0.8957, allocations: 162.2 kB / 1.157 GB, free: 11.74 MB / 0.8731 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.347e-05/0.8958, allocations: 5.562 kB / 1.157 GB, free: 11.73 MB / 0.8731 GB Notification: Performance of preOpt expandDerOperator (simulation): time 2.937e-05/0.8958, allocations: 13.09 kB / 1.157 GB, free: 11.73 MB / 0.8731 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000143/0.8959, allocations: 64.14 kB / 1.157 GB, free: 11.68 MB / 0.8731 GB Notification: Performance of preOpt findStateOrder (simulation): time 6.402e-06/0.896, allocations: 0 / 1.157 GB, free: 11.68 MB / 0.8731 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.166e-05/0.896, allocations: 1.562 kB / 1.157 GB, free: 11.68 MB / 0.8731 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.509e-06/0.896, allocations: 1.5 kB / 1.157 GB, free: 11.68 MB / 0.8731 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 6.757e-05/0.8961, allocations: 21.27 kB / 1.157 GB, free: 11.67 MB / 0.8731 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001601/0.8962, allocations: 166.6 kB / 1.157 GB, free: 11.47 MB / 0.8731 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001026/0.8963, allocations: 53.03 kB / 1.157 GB, free: 11.44 MB / 0.8731 GB Notification: Performance of preOpt resolveLoops (simulation): time 3.091e-05/0.8964, allocations: 18 kB / 1.157 GB, free: 11.43 MB / 0.8731 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0111/0.9075, allocations: 3.202 MB / 1.16 GB, free: 10.66 MB / 0.8731 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.151e-05/0.9075, allocations: 39.88 kB / 1.16 GB, free: 10.61 MB / 0.8731 GB Notification: Performance of pre-optimization done (n=7): time 1.453e-06/0.9075, allocations: 0 / 1.16 GB, free: 10.61 MB / 0.8731 GB Notification: Performance of matching and sorting (n=11): time 0.04068/0.9482, allocations: 15 MB / 1.175 GB, free: 6.207 MB / 0.8731 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.569e-05/0.9483, allocations: 53.84 kB / 1.175 GB, free: 6.145 MB / 0.8731 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 6.635e-05/0.9484, allocations: 93.84 kB / 1.175 GB, free: 6.043 MB / 0.8731 GB Notification: Performance of collectPreVariables (initialization): time 2.572e-05/0.9484, allocations: 31.89 kB / 1.175 GB, free: 6.008 MB / 0.8731 GB Notification: Performance of collectInitialEqns (initialization): time 2.663e-05/0.9484, allocations: 80.14 kB / 1.175 GB, free: 5.926 MB / 0.8731 GB Notification: Performance of collectInitialBindings (initialization): time 4.416e-05/0.9485, allocations: 45.22 kB / 1.175 GB, free: 5.887 MB / 0.8731 GB Notification: Performance of simplifyInitialFunctions (initialization): time 5.123e-05/0.9485, allocations: 27.81 kB / 1.175 GB, free: 5.863 MB / 0.8731 GB Notification: Performance of setup shared object (initialization): time 9.989e-05/0.9487, allocations: 318.8 kB / 1.176 GB, free: 5.543 MB / 0.8731 GB Notification: Performance of preBalanceInitialSystem (initialization): time 4.518e-05/0.9487, allocations: 26.73 kB / 1.176 GB, free: 5.531 MB / 0.8731 GB Notification: Performance of partitionIndependentBlocks (initialization): time 5.169e-05/0.9488, allocations: 17.41 kB / 1.176 GB, free: 5.527 MB / 0.8731 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001231/0.9489, allocations: 69.75 kB / 1.176 GB, free: 5.488 MB / 0.8731 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.392e-06/0.9489, allocations: 0 / 1.176 GB, free: 5.488 MB / 0.8731 GB Notification: Performance of matching and sorting (n=14) (initialization): time 0.0002293/0.9491, allocations: 106.8 kB / 1.176 GB, free: 5.422 MB / 0.8731 GB Notification: Performance of prepare postOptimizeDAE: time 1.933e-05/0.9492, allocations: 5 kB / 1.176 GB, free: 5.422 MB / 0.8731 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.326e-06/0.9492, allocations: 7.984 kB / 1.176 GB, free: 5.414 MB / 0.8731 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.739e-05/0.9492, allocations: 6.531 kB / 1.176 GB, free: 5.41 MB / 0.8731 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001109/0.9493, allocations: 21.56 kB / 1.176 GB, free: 5.406 MB / 0.8731 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.823e-06/0.9493, allocations: 2.469 kB / 1.176 GB, free: 5.406 MB / 0.8731 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 2.816e-05/0.9494, allocations: 0 / 1.176 GB, free: 5.406 MB / 0.8731 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.519e-05/0.9494, allocations: 10.55 kB / 1.176 GB, free: 5.398 MB / 0.8731 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.632e-05/0.9495, allocations: 127.4 kB / 1.176 GB, free: 5.27 MB / 0.8731 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.635e-05/0.9495, allocations: 6.5 kB / 1.176 GB, free: 5.27 MB / 0.8731 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002588/0.9498, allocations: 127.5 kB / 1.176 GB, free: 5.176 MB / 0.8731 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.496e-06/0.9498, allocations: 2.906 kB / 1.176 GB, free: 5.176 MB / 0.8731 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.388e-06/0.9498, allocations: 0 / 1.176 GB, free: 5.176 MB / 0.8731 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.468e-06/0.9498, allocations: 0 / 1.176 GB, free: 5.176 MB / 0.8731 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.000138/0.95, allocations: 171.7 kB / 1.176 GB, free: 4.969 MB / 0.8731 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.443e-06/0.95, allocations: 2.719 kB / 1.176 GB, free: 4.969 MB / 0.8731 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001295/0.9501, allocations: 27.52 kB / 1.176 GB, free: 4.961 MB / 0.8731 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.965e-06/0.9501, allocations: 4 kB / 1.176 GB, free: 4.957 MB / 0.8731 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.378e-05/0.9502, allocations: 2.906 kB / 1.176 GB, free: 4.957 MB / 0.8731 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.463e-06/0.9502, allocations: 3.938 kB / 1.176 GB, free: 4.953 MB / 0.8731 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.112e-06/0.9502, allocations: 0 / 1.176 GB, free: 4.953 MB / 0.8731 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002854/0.9505, allocations: 152.8 kB / 1.176 GB, free: 4.84 MB / 0.8731 GB Notification: Performance of postOpt removeConstants (simulation): time 6.874e-05/0.9505, allocations: 89.98 kB / 1.176 GB, free: 4.738 MB / 0.8731 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.835e-05/0.9506, allocations: 4 kB / 1.176 GB, free: 4.734 MB / 0.8731 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001481/0.9507, allocations: 15.39 kB / 1.177 GB, free: 4.727 MB / 0.8731 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.497e-05/0.9507, allocations: 8.891 kB / 1.177 GB, free: 4.723 MB / 0.8731 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.388e-05/0.9508, allocations: 9.156 kB / 1.177 GB, free: 4.719 MB / 0.8731 GB Notification: Performance of sorting global known variables: time 2.914e-05/0.9508, allocations: 79.22 kB / 1.177 GB, free: 4.641 MB / 0.8731 GB Notification: Performance of sort global known variables: time 2.1e-07/0.9508, allocations: 0 / 1.177 GB, free: 4.641 MB / 0.8731 GB Notification: Performance of remove unused functions: time 0.001762/0.9526, allocations: 0.5638 MB / 1.177 GB, free: 4.609 MB / 0.8731 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.9561, allocations: 359.6 kB / 1.177 GB, free: 4.43 MB / 0.8731 GB Notification: Performance of simCode: created initialization part: time 0.0001677/0.9562, allocations: 64.38 kB / 1.178 GB, free: 4.406 MB / 0.8731 GB Notification: Performance of simCode: created event and clocks part: time 2.825e-06/0.9562, allocations: 4 kB / 1.178 GB, free: 4.402 MB / 0.8731 GB Notification: Performance of simCode: created simulation system equations: time 6.617e-05/0.9563, allocations: 42.64 kB / 1.178 GB, free: 4.383 MB / 0.8731 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001784/0.9565, allocations: 6.594 kB / 1.178 GB, free: 4.379 MB / 0.8731 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0005594/0.9571, allocations: 348.6 kB / 1.178 GB, free: 4.09 MB / 0.8731 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002103/0.9573, allocations: 0.6869 MB / 1.179 GB, free: 3.387 MB / 0.8731 GB Notification: Performance of simCode: alias equations: time 8.225e-05/0.9574, allocations: 26.31 kB / 1.179 GB, free: 3.371 MB / 0.8731 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.92e-05/0.9574, allocations: 18.52 kB / 1.179 GB, free: 3.359 MB / 0.8731 GB Notification: Performance of SimCode: time 2.3e-07/0.9574, allocations: 0 / 1.179 GB, free: 3.359 MB / 0.8731 GB Notification: Performance of Templates: time 0.03461/0.992, allocations: 24.26 MB / 1.202 GB, free: 12.52 MB / 0.9044 GB make -j1 -f Buildings_10_Buildings.Media.Examples.SteamDerivativeCheck.makefile (rm -f Buildings_10_Buildings.Media.Examples.SteamDerivativeCheck.pipe ; mkfifo Buildings_10_Buildings.Media.Examples.SteamDerivativeCheck.pipe ; head -c 1048576 < Buildings_10_Buildings.Media.Examples.SteamDerivativeCheck.pipe >> ../files/Buildings_10_Buildings.Media.Examples.SteamDerivativeCheck.sim & ./Buildings_10_Buildings.Media.Examples.SteamDerivativeCheck -abortSlowSimulation -alarm=480 -s gbode -emit_protected -lv LOG_STATS > Buildings_10_Buildings.Media.Examples.SteamDerivativeCheck.pipe 2>&1) diffSimulationResults("Buildings_10_Buildings.Media.Examples.SteamDerivativeCheck_res.mat","/mnt/ReferenceFiles/Buildings/csv/maint_10.0.x/Buildings_Media_Examples_SteamDerivativeCheck.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_10_Buildings.Media.Examples.SteamDerivativeCheck.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches