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: "" <> buildModelFMU(Buildings.Media.Examples.SteamDerivativeCheck,fileNamePrefix="Buildings_9_Buildings_Media_Examples_SteamDerivativeCheck",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Media.Examples.SteamDerivativeCheck,fileNamePrefix="Buildings_9_Buildings_Media_Examples_SteamDerivativeCheck",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001216/0.001216, allocations: 108 kB / 15.61 MB, free: 152 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.001133/0.001132, allocations: 194.6 kB / 16.53 MB, free: 6.664 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.226/1.226, allocations: 222.9 MB / 240.2 MB, free: 4.418 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.237/2.237, allocations: 390.3 MB / 0.6647 GB, free: 464 kB / 0.5137 GB Notification: Performance of FrontEnd - loaded program: time 0.001281/0.001281, allocations: 63.89 kB / 0.8126 GB, free: 14.42 MB / 0.67 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.5596/0.5609, allocations: 140.4 MB / 0.9497 GB, free: 9.168 MB / 0.7169 GB Notification: Performance of NFInst.instantiate(Buildings.Media.Examples.SteamDerivativeCheck): time 0.001998/0.5629, allocations: 1.257 MB / 0.9509 GB, free: 8.164 MB / 0.7169 GB Notification: Performance of NFInst.instExpressions: time 0.1353/0.6982, allocations: 137.7 MB / 1.085 GB, free: 6.324 MB / 0.8419 GB Notification: Performance of NFInst.updateImplicitVariability: time 3.295e-05/0.6983, allocations: 0 / 1.085 GB, free: 6.324 MB / 0.8419 GB Notification: Performance of NFTyping.typeComponents: time 2.043e-05/0.6983, allocations: 4 kB / 1.085 GB, free: 6.32 MB / 0.8419 GB Notification: Performance of NFTyping.typeBindings: time 5.192e-05/0.6984, allocations: 3.938 kB / 1.085 GB, free: 6.316 MB / 0.8419 GB Notification: Performance of NFTyping.typeClassSections: time 0.00134/0.6997, allocations: 462.3 kB / 1.086 GB, free: 5.863 MB / 0.8419 GB Notification: Performance of NFFlatten.flatten: time 7.447e-05/0.6998, allocations: 39.91 kB / 1.086 GB, free: 5.824 MB / 0.8419 GB Notification: Performance of NFFlatten.resolveConnections: time 3.995e-05/0.6999, allocations: 4 kB / 1.086 GB, free: 5.82 MB / 0.8419 GB Notification: Performance of NFEvalConstants.evaluate: time 8.465e-05/0.7, allocations: 27.91 kB / 1.086 GB, free: 5.793 MB / 0.8419 GB Notification: Performance of NFSimplifyModel.simplify: time 7.234e-05/0.7001, allocations: 23.91 kB / 1.086 GB, free: 5.77 MB / 0.8419 GB Notification: Performance of NFPackage.collectConstants: time 1.144e-05/0.7001, allocations: 0 / 1.086 GB, free: 5.77 MB / 0.8419 GB Notification: Performance of NFFlatten.collectFunctions: time 0.001456/0.7015, allocations: 0.7998 MB / 1.087 GB, free: 4.969 MB / 0.8419 GB Notification: Performance of NFScalarize.scalarize: time 2.075e-05/0.7016, allocations: 15.97 kB / 1.087 GB, free: 4.953 MB / 0.8419 GB Notification: Performance of NFVerifyModel.verify: time 3.12e-05/0.7016, allocations: 11.94 kB / 1.087 GB, free: 4.941 MB / 0.8419 GB Notification: Performance of NFConvertDAE.convert: time 0.000604/0.7022, allocations: 457.3 kB / 1.087 GB, free: 4.496 MB / 0.8419 GB Notification: Performance of FrontEnd - DAE generated: time 2.525e-06/0.7022, allocations: 0 / 1.087 GB, free: 4.496 MB / 0.8419 GB Notification: Performance of FrontEnd: time 8.51e-07/0.7022, allocations: 0 / 1.087 GB, free: 4.496 MB / 0.8419 GB Notification: Performance of Transformations before backend: time 5.13e-06/0.7022, allocations: 0 / 1.087 GB, free: 4.496 MB / 0.8419 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.0005258/0.7028, allocations: 379.4 kB / 1.088 GB, free: 4.078 MB / 0.8419 GB Notification: Performance of prepare preOptimizeDAE: time 3.281e-05/0.7028, allocations: 8.031 kB / 1.088 GB, free: 4.07 MB / 0.8419 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.423e-05/0.7029, allocations: 34.75 kB / 1.088 GB, free: 4.027 MB / 0.8419 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001533/0.703, allocations: 12.92 kB / 1.088 GB, free: 4.016 MB / 0.8419 GB Notification: Performance of preOpt evaluateParameters (simulation): time 9.336e-05/0.7031, allocations: 164.4 kB / 1.088 GB, free: 3.816 MB / 0.8419 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.071e-05/0.7031, allocations: 4.375 kB / 1.088 GB, free: 3.812 MB / 0.8419 GB Notification: Performance of preOpt expandDerOperator (simulation): time 2.205e-05/0.7032, allocations: 11.84 kB / 1.088 GB, free: 3.801 MB / 0.8419 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001249/0.7033, allocations: 53.67 kB / 1.088 GB, free: 3.742 MB / 0.8419 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.375e-05/0.7033, allocations: 4 kB / 1.088 GB, free: 3.738 MB / 0.8419 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.064e-05/0.7033, allocations: 3.938 kB / 1.088 GB, free: 3.734 MB / 0.8419 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.592e-06/0.7033, allocations: 4 kB / 1.088 GB, free: 3.73 MB / 0.8419 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 5.889e-05/0.7034, allocations: 19.92 kB / 1.088 GB, free: 3.711 MB / 0.8419 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0002027/0.7036, allocations: 165.7 kB / 1.088 GB, free: 3.5 MB / 0.8419 GB Notification: Performance of preOpt comSubExp (simulation): time 9.601e-05/0.7037, allocations: 54.5 kB / 1.088 GB, free: 3.438 MB / 0.8419 GB Notification: Performance of preOpt resolveLoops (simulation): time 2.737e-05/0.7037, allocations: 20.78 kB / 1.088 GB, free: 3.414 MB / 0.8419 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0113/0.715, allocations: 3.171 MB / 1.091 GB, free: 152 kB / 0.8419 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.441e-05/0.7151, allocations: 34.56 kB / 1.091 GB, free: 108 kB / 0.8419 GB Notification: Performance of pre-optimization done (n=7): time 3.417e-06/0.7151, allocations: 0 / 1.091 GB, free: 108 kB / 0.8419 GB Notification: Performance of matching and sorting (n=11): time 0.04214/0.7573, allocations: 14.86 MB / 1.106 GB, free: 1.086 MB / 0.8575 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.568e-05/0.7573, allocations: 55.41 kB / 1.106 GB, free: 1.02 MB / 0.8575 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 6.697e-05/0.7574, allocations: 93.86 kB / 1.106 GB, free: 0.918 MB / 0.8575 GB Notification: Performance of collectPreVariables (initialization): time 2.061e-05/0.7574, allocations: 25.7 kB / 1.106 GB, free: 0.8867 MB / 0.8575 GB Notification: Performance of collectInitialEqns (initialization): time 5.364e-05/0.7575, allocations: 84.14 kB / 1.106 GB, free: 0.8008 MB / 0.8575 GB Notification: Performance of collectInitialBindings (initialization): time 4.205e-05/0.7575, allocations: 39.39 kB / 1.106 GB, free: 0.7617 MB / 0.8575 GB Notification: Performance of simplifyInitialFunctions (initialization): time 4.736e-05/0.7576, allocations: 33.7 kB / 1.106 GB, free: 0.7227 MB / 0.8575 GB Notification: Performance of setup shared object (initialization): time 0.0001151/0.7577, allocations: 318.9 kB / 1.106 GB, free: 412 kB / 0.8575 GB Notification: Performance of preBalanceInitialSystem (initialization): time 4.715e-05/0.7578, allocations: 23.98 kB / 1.106 GB, free: 388 kB / 0.8575 GB Notification: Performance of partitionIndependentBlocks (initialization): time 5.201e-05/0.7578, allocations: 27.98 kB / 1.106 GB, free: 360 kB / 0.8575 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001236/0.758, allocations: 52.86 kB / 1.106 GB, free: 304 kB / 0.8575 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.122e-06/0.758, allocations: 0 / 1.106 GB, free: 304 kB / 0.8575 GB Notification: Performance of matching and sorting (n=14) (initialization): time 0.000223/0.7582, allocations: 120.6 kB / 1.107 GB, free: 180 kB / 0.8575 GB Notification: Performance of prepare postOptimizeDAE: time 1.877e-05/0.7582, allocations: 5.562 kB / 1.107 GB, free: 176 kB / 0.8575 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.566e-06/0.7582, allocations: 4 kB / 1.107 GB, free: 172 kB / 0.8575 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.861e-05/0.7583, allocations: 0 / 1.107 GB, free: 172 kB / 0.8575 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001386/0.7584, allocations: 23.98 kB / 1.107 GB, free: 148 kB / 0.8575 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.044e-06/0.7584, allocations: 0 / 1.107 GB, free: 148 kB / 0.8575 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 2.796e-05/0.7585, allocations: 12 kB / 1.107 GB, free: 136 kB / 0.8575 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.099e-05/0.7585, allocations: 4 kB / 1.107 GB, free: 132 kB / 0.8575 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.114e-05/0.7586, allocations: 117.7 kB / 1.107 GB, free: 4 kB / 0.8575 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.218e-05/0.7586, allocations: 4 kB / 1.107 GB, free: 0 / 0.8575 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002915/0.7589, allocations: 129.5 kB / 1.107 GB, free: 15.87 MB / 0.8731 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.236e-06/0.7589, allocations: 0 / 1.107 GB, free: 15.87 MB / 0.8731 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.769e-06/0.7589, allocations: 0 / 1.107 GB, free: 15.87 MB / 0.8731 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.53e-06/0.759, allocations: 3.984 kB / 1.107 GB, free: 15.86 MB / 0.8731 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001527/0.7591, allocations: 177.5 kB / 1.107 GB, free: 15.64 MB / 0.8731 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.363e-06/0.7591, allocations: 0 / 1.107 GB, free: 15.64 MB / 0.8731 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001179/0.7592, allocations: 27.92 kB / 1.107 GB, free: 15.62 MB / 0.8731 GB Notification: Performance of postOpt tearingSystem (simulation): time 5.42e-06/0.7593, allocations: 4 kB / 1.107 GB, free: 15.61 MB / 0.8731 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.189e-05/0.7593, allocations: 7.984 kB / 1.107 GB, free: 15.61 MB / 0.8731 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.064e-06/0.7593, allocations: 0 / 1.107 GB, free: 15.61 MB / 0.8731 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.182e-06/0.7593, allocations: 4 kB / 1.107 GB, free: 15.6 MB / 0.8731 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003078/0.7596, allocations: 157 kB / 1.107 GB, free: 15.43 MB / 0.8731 GB Notification: Performance of postOpt removeConstants (simulation): time 6.231e-05/0.7597, allocations: 89.05 kB / 1.107 GB, free: 15.32 MB / 0.8731 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.918e-05/0.7597, allocations: 3.984 kB / 1.107 GB, free: 15.32 MB / 0.8731 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001406/0.7598, allocations: 12 kB / 1.107 GB, free: 15.31 MB / 0.8731 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.769e-05/0.7599, allocations: 7.984 kB / 1.107 GB, free: 15.3 MB / 0.8731 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.068e-05/0.7599, allocations: 12 kB / 1.107 GB, free: 15.29 MB / 0.8731 GB Notification: Performance of sorting global known variables: time 3.427e-05/0.7599, allocations: 79.28 kB / 1.107 GB, free: 15.21 MB / 0.8731 GB Notification: Performance of sort global known variables: time 1.553e-06/0.7599, allocations: 0 / 1.107 GB, free: 15.21 MB / 0.8731 GB Notification: Performance of remove unused functions: time 0.001728/0.7617, allocations: 0.5663 MB / 1.108 GB, free: 14.64 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.004007/0.7657, allocations: 0.9366 MB / 1.109 GB, free: 13.68 MB / 0.8731 GB Notification: Performance of simCode: created initialization part: time 0.0001992/0.7659, allocations: 75.91 kB / 1.109 GB, free: 13.61 MB / 0.8731 GB Notification: Performance of simCode: created event and clocks part: time 3.155e-06/0.7659, allocations: 0 / 1.109 GB, free: 13.61 MB / 0.8731 GB Notification: Performance of simCode: created simulation system equations: time 6.143e-05/0.766, allocations: 31.94 kB / 1.109 GB, free: 13.57 MB / 0.8731 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000189/0.7662, allocations: 15.92 kB / 1.109 GB, free: 13.56 MB / 0.8731 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002641/0.7688, allocations: 1.55 MB / 1.111 GB, free: 11.93 MB / 0.8731 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003056/0.7691, allocations: 0.6846 MB / 1.111 GB, free: 11.22 MB / 0.8731 GB Notification: Performance of simCode: alias equations: time 9.748e-05/0.7692, allocations: 24.53 kB / 1.111 GB, free: 11.2 MB / 0.8731 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.071e-05/0.7693, allocations: 19.44 kB / 1.111 GB, free: 11.18 MB / 0.8731 GB Notification: Performance of SimCode: time 2.31e-07/0.7693, allocations: 0 / 1.111 GB, free: 11.18 MB / 0.8731 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.06383/0.8331, allocations: 25.4 MB / 1.136 GB, free: 1.805 MB / 0.8887 GB Notification: Performance of buildModelFMU: Generate platform static: time 9.942/10.78, allocations: 1.562 kB / 1.136 GB, free: 1.805 MB / 0.8887 GB (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 & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Buildings_9_Buildings.Media.Examples.SteamDerivativeCheck_res.mat --tempDir=temp_Buildings_9_Buildings_Media_Examples_SteamDerivativeCheck_fmu --startTime=0 --stopTime=1 --timeout=50 --tolerance=1e-10 Buildings_9_Buildings_Media_Examples_SteamDerivativeCheck.fmu > 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/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_9_Buildings.Media.Examples.SteamDerivativeCheck.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) "Warning: Resultfile and Reference have different end time points! Reffile[502]=1.000000 File[406]=0.405000 " Variables in the reference:time,der(hVapSym),der(hVapCod),der(cpSym),der(cpCod),der(cvSym),der(cvCod) Variables in the result:T,cpCod,cpSym,cvCod,cvSym,der(T),der(cpCod),der(cpSym),der(cvCod),der(cvSym),der(hVapCod),der(hVapSym),hVapCod,hVapSym,time