Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_10_Buildings.Media.Examples.WaterDerivativeCheck.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.1-maint.10.0.x/package.mo", uses=false) Using package Buildings with version 10.1.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 10.1.1-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: "" <> buildModelFMU(Buildings.Media.Examples.WaterDerivativeCheck,fileNamePrefix="Buildings_10_Buildings_Media_Examples_WaterDerivativeCheck",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Media.Examples.WaterDerivativeCheck,fileNamePrefix="Buildings_10_Buildings_Media_Examples_WaterDerivativeCheck",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.001248/0.001247, allocations: 111.3 kB / 15.34 MB, free: 0.5117 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.001247/0.001247, allocations: 186.1 kB / 16.25 MB, free: 6.141 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.32/1.32, allocations: 222.9 MB / 239.9 MB, free: 4.535 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 10.1.1-maint.10.0.x/package.mo): time 2.519/2.519, allocations: 437 MB / 0.7101 GB, free: 5.25 MB / 0.5606 GB Notification: Performance of FrontEnd - loaded program: time 0.001293/0.001293, allocations: 71.88 kB / 0.8688 GB, free: 4.969 MB / 0.7169 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.591/0.5923, allocations: 151.6 MB / 1.017 GB, free: 2.668 MB / 0.7637 GB Notification: Performance of NFInst.instantiate(Buildings.Media.Examples.WaterDerivativeCheck): time 0.002259/0.5946, allocations: 1.334 MB / 1.018 GB, free: 1.324 MB / 0.7637 GB Notification: Performance of NFInst.instExpressions: time 0.003483/0.5981, allocations: 3.229 MB / 1.021 GB, free: 14.08 MB / 0.7794 GB Notification: Performance of NFInst.updateImplicitVariability: time 2.356e-05/0.5982, allocations: 0 / 1.021 GB, free: 14.08 MB / 0.7794 GB Notification: Performance of NFTyping.typeComponents: time 1.666e-05/0.5982, allocations: 0 / 1.021 GB, free: 14.08 MB / 0.7794 GB Notification: Performance of NFTyping.typeBindings: time 5.03e-05/0.5982, allocations: 11.92 kB / 1.021 GB, free: 14.07 MB / 0.7794 GB Notification: Performance of NFTyping.typeClassSections: time 0.0004703/0.5987, allocations: 99.55 kB / 1.021 GB, free: 13.97 MB / 0.7794 GB Notification: Performance of NFFlatten.flatten: time 6.713e-05/0.5988, allocations: 39.91 kB / 1.021 GB, free: 13.93 MB / 0.7794 GB Notification: Performance of NFFlatten.resolveConnections: time 3.43e-05/0.5988, allocations: 0 / 1.021 GB, free: 13.93 MB / 0.7794 GB Notification: Performance of NFEvalConstants.evaluate: time 4.141e-05/0.5989, allocations: 23.86 kB / 1.022 GB, free: 13.91 MB / 0.7794 GB Notification: Performance of NFSimplifyModel.simplify: time 5.84e-05/0.599, allocations: 15.97 kB / 1.022 GB, free: 13.89 MB / 0.7794 GB Notification: Performance of NFPackage.collectConstants: time 1.087e-05/0.599, allocations: 4 kB / 1.022 GB, free: 13.89 MB / 0.7794 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0001967/0.5992, allocations: 71.81 kB / 1.022 GB, free: 13.82 MB / 0.7794 GB Notification: Performance of NFScalarize.scalarize: time 1.765e-05/0.5992, allocations: 15.92 kB / 1.022 GB, free: 13.8 MB / 0.7794 GB Notification: Performance of NFVerifyModel.verify: time 2.943e-05/0.5992, allocations: 15.92 kB / 1.022 GB, free: 13.79 MB / 0.7794 GB Notification: Performance of NFConvertDAE.convert: time 0.0001549/0.5994, allocations: 62.17 kB / 1.022 GB, free: 13.73 MB / 0.7794 GB Notification: Performance of FrontEnd - DAE generated: time 3.576e-06/0.5994, allocations: 4 kB / 1.022 GB, free: 13.72 MB / 0.7794 GB Notification: Performance of FrontEnd: time 1.313e-06/0.5994, allocations: 0 / 1.022 GB, free: 13.72 MB / 0.7794 GB Notification: Performance of Transformations before backend: time 5.019e-06/0.5994, allocations: 0 / 1.022 GB, free: 13.72 MB / 0.7794 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.000476/0.5999, allocations: 355.4 kB / 1.022 GB, free: 13.33 MB / 0.7794 GB Notification: Performance of prepare preOptimizeDAE: time 4.214e-05/0.6, allocations: 8.031 kB / 1.022 GB, free: 13.32 MB / 0.7794 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.491e-05/0.6, allocations: 34.75 kB / 1.022 GB, free: 13.28 MB / 0.7794 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 9.766e-05/0.6001, allocations: 4.938 kB / 1.022 GB, free: 13.27 MB / 0.7794 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001137/0.6002, allocations: 172.3 kB / 1.022 GB, free: 13.07 MB / 0.7794 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.175e-05/0.6003, allocations: 384 / 1.022 GB, free: 13.07 MB / 0.7794 GB Notification: Performance of preOpt expandDerOperator (simulation): time 3.316e-05/0.6003, allocations: 20.27 kB / 1.022 GB, free: 13.05 MB / 0.7794 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001279/0.6004, allocations: 53.61 kB / 1.022 GB, free: 12.99 MB / 0.7794 GB Notification: Performance of preOpt findStateOrder (simulation): time 8.546e-06/0.6004, allocations: 0 / 1.022 GB, free: 12.99 MB / 0.7794 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.288e-05/0.6005, allocations: 4 kB / 1.022 GB, free: 12.98 MB / 0.7794 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.783e-06/0.6005, allocations: 4 kB / 1.022 GB, free: 12.98 MB / 0.7794 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 4.949e-05/0.6005, allocations: 15.92 kB / 1.022 GB, free: 12.96 MB / 0.7794 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.000183/0.6007, allocations: 165.7 kB / 1.022 GB, free: 12.75 MB / 0.7794 GB Notification: Performance of preOpt comSubExp (simulation): time 9.696e-05/0.6008, allocations: 58.5 kB / 1.023 GB, free: 12.69 MB / 0.7794 GB Notification: Performance of preOpt resolveLoops (simulation): time 2.788e-05/0.6009, allocations: 13.09 kB / 1.023 GB, free: 12.67 MB / 0.7794 GB Notification: Performance of preOpt evalFunc (simulation): time 0.000697/0.6016, allocations: 0.5946 MB / 1.023 GB, free: 11.97 MB / 0.7794 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.692e-05/0.6016, allocations: 38.56 kB / 1.023 GB, free: 11.92 MB / 0.7794 GB Notification: Performance of pre-optimization done (n=5): time 1.212e-06/0.6016, allocations: 0 / 1.023 GB, free: 11.92 MB / 0.7794 GB Notification: Performance of matching and sorting (n=7): time 0.0006413/0.6022, allocations: 302.1 kB / 1.023 GB, free: 11.57 MB / 0.7794 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.379e-05/0.6023, allocations: 51.41 kB / 1.024 GB, free: 11.51 MB / 0.7794 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 7.771e-05/0.6024, allocations: 101.8 kB / 1.024 GB, free: 11.4 MB / 0.7794 GB Notification: Performance of collectPreVariables (initialization): time 1.677e-05/0.6024, allocations: 29.7 kB / 1.024 GB, free: 11.37 MB / 0.7794 GB Notification: Performance of collectInitialEqns (initialization): time 4.175e-05/0.6024, allocations: 88.05 kB / 1.024 GB, free: 11.28 MB / 0.7794 GB Notification: Performance of collectInitialBindings (initialization): time 2.067e-05/0.6025, allocations: 27.72 kB / 1.024 GB, free: 11.25 MB / 0.7794 GB Notification: Performance of simplifyInitialFunctions (initialization): time 3.882e-05/0.6025, allocations: 29.7 kB / 1.024 GB, free: 11.21 MB / 0.7794 GB Notification: Performance of setup shared object (initialization): time 0.0002458/0.6028, allocations: 314.8 kB / 1.024 GB, free: 10.9 MB / 0.7794 GB Notification: Performance of preBalanceInitialSystem (initialization): time 2.959e-05/0.6028, allocations: 19.92 kB / 1.024 GB, free: 10.88 MB / 0.7794 GB Notification: Performance of partitionIndependentBlocks (initialization): time 5.496e-05/0.6029, allocations: 57.14 kB / 1.024 GB, free: 10.8 MB / 0.7794 GB Notification: Performance of analyzeInitialSystem (initialization): time 8.268e-05/0.6029, allocations: 69.09 kB / 1.024 GB, free: 10.72 MB / 0.7794 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.001e-06/0.603, allocations: 0 / 1.024 GB, free: 10.72 MB / 0.7794 GB Notification: Performance of matching and sorting (n=12) (initialization): time 0.0001371/0.6031, allocations: 97.45 kB / 1.024 GB, free: 10.62 MB / 0.7794 GB Notification: Performance of prepare postOptimizeDAE: time 2.001e-05/0.6031, allocations: 4 kB / 1.024 GB, free: 10.61 MB / 0.7794 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.619e-06/0.6031, allocations: 4.016 kB / 1.024 GB, free: 10.61 MB / 0.7794 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.392e-05/0.6031, allocations: 4.438 kB / 1.024 GB, free: 10.61 MB / 0.7794 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 7.148e-05/0.6032, allocations: 19.98 kB / 1.024 GB, free: 10.59 MB / 0.7794 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.075e-06/0.6032, allocations: 12.11 kB / 1.024 GB, free: 10.57 MB / 0.7794 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 3.997e-05/0.6033, allocations: 11.94 kB / 1.024 GB, free: 10.56 MB / 0.7794 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.466e-06/0.6033, allocations: 4.281 kB / 1.024 GB, free: 10.56 MB / 0.7794 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 6 * 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 (12): * Single equations (assignments): 12 * 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 9.032e-05/0.6034, allocations: 118.3 kB / 1.024 GB, free: 10.43 MB / 0.7794 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.609e-05/0.6034, allocations: 4 kB / 1.024 GB, free: 10.43 MB / 0.7794 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.257e-05/0.6035, allocations: 15.94 kB / 1.025 GB, free: 10.41 MB / 0.7794 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.302e-06/0.6035, allocations: 0 / 1.025 GB, free: 10.41 MB / 0.7794 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.747e-06/0.6035, allocations: 0 / 1.025 GB, free: 10.41 MB / 0.7794 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.088e-06/0.6035, allocations: 3.938 kB / 1.025 GB, free: 10.41 MB / 0.7794 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002344/0.6037, allocations: 173.7 kB / 1.025 GB, free: 10.19 MB / 0.7794 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.232e-06/0.6037, allocations: 0 / 1.025 GB, free: 10.19 MB / 0.7794 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 8.703e-05/0.6038, allocations: 20 kB / 1.025 GB, free: 10.17 MB / 0.7794 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.754e-06/0.6038, allocations: 0 / 1.025 GB, free: 10.17 MB / 0.7794 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.945e-06/0.6038, allocations: 0 / 1.025 GB, free: 10.17 MB / 0.7794 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.142e-06/0.6039, allocations: 0 / 1.025 GB, free: 10.17 MB / 0.7794 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.314e-06/0.6039, allocations: 3.984 kB / 1.025 GB, free: 10.16 MB / 0.7794 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001831/0.604, allocations: 183.2 kB / 1.025 GB, free: 9.969 MB / 0.7794 GB Notification: Performance of postOpt removeConstants (simulation): time 4.598e-05/0.6041, allocations: 85.14 kB / 1.025 GB, free: 9.867 MB / 0.7794 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.359e-05/0.6041, allocations: 0 / 1.025 GB, free: 9.867 MB / 0.7794 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001049/0.6042, allocations: 4 kB / 1.025 GB, free: 9.863 MB / 0.7794 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.485e-05/0.6043, allocations: 15.92 kB / 1.025 GB, free: 9.848 MB / 0.7794 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.064e-06/0.6043, allocations: 0 / 1.025 GB, free: 9.848 MB / 0.7794 GB Notification: Performance of sorting global known variables: time 4.576e-05/0.6043, allocations: 83.22 kB / 1.025 GB, free: 9.766 MB / 0.7794 GB Notification: Performance of sort global known variables: time 1.21e-07/0.6043, allocations: 0 / 1.025 GB, free: 9.766 MB / 0.7794 GB Notification: Performance of remove unused functions: time 0.000231/0.6046, allocations: 12 kB / 1.025 GB, free: 9.754 MB / 0.7794 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 3 (hLiqSym,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 (7): * Single equations (assignments): 7 * 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.0004239/0.605, allocations: 0.7123 MB / 1.026 GB, free: 9.016 MB / 0.7794 GB Notification: Performance of simCode: created initialization part: time 0.0001079/0.6051, allocations: 39.97 kB / 1.026 GB, free: 8.977 MB / 0.7794 GB Notification: Performance of simCode: created event and clocks part: time 2.214e-06/0.6051, allocations: 0 / 1.026 GB, free: 8.977 MB / 0.7794 GB Notification: Performance of simCode: created simulation system equations: time 2.568e-05/0.6052, allocations: 19.98 kB / 1.026 GB, free: 8.957 MB / 0.7794 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002645/0.6054, allocations: 18.52 kB / 1.026 GB, free: 8.941 MB / 0.7794 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001431/0.6069, allocations: 1.539 MB / 1.027 GB, free: 7.293 MB / 0.7794 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002496/0.6071, allocations: 0.6846 MB / 1.028 GB, free: 6.582 MB / 0.7794 GB Notification: Performance of simCode: alias equations: time 5.688e-05/0.6072, allocations: 11.86 kB / 1.028 GB, free: 6.57 MB / 0.7794 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.752e-05/0.6072, allocations: 19.42 kB / 1.028 GB, free: 6.551 MB / 0.7794 GB Notification: Performance of SimCode: time 2.3e-07/0.6072, allocations: 0 / 1.028 GB, free: 6.551 MB / 0.7794 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 1.024/1.631, allocations: 1.536 MB / 1.03 GB, free: 5.117 MB / 0.7794 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002597/1.632, allocations: 190.4 kB / 1.03 GB, free: 4.863 MB / 0.7794 GB Notification: Performance of buildModelFMU: Generate platform static: time 2.163/3.795, allocations: 4 kB / 1.03 GB, free: 4.859 MB / 0.7794 GB (rm -f Buildings_10_Buildings.Media.Examples.WaterDerivativeCheck.pipe ; mkfifo Buildings_10_Buildings.Media.Examples.WaterDerivativeCheck.pipe ; head -c 1048576 < Buildings_10_Buildings.Media.Examples.WaterDerivativeCheck.pipe >> ../files/Buildings_10_Buildings.Media.Examples.WaterDerivativeCheck.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Buildings_10_Buildings.Media.Examples.WaterDerivativeCheck_res.mat --tempDir=temp_Buildings_10_Buildings_Media_Examples_WaterDerivativeCheck_fmu --startTime=0 --stopTime=1 --timeout=50 --tolerance=1e-08 Buildings_10_Buildings_Media_Examples_WaterDerivativeCheck.fmu > Buildings_10_Buildings.Media.Examples.WaterDerivativeCheck.pipe 2>&1) diffSimulationResults("Buildings_10_Buildings.Media.Examples.WaterDerivativeCheck_res.mat","/mnt/ReferenceFiles/Buildings/csv/maint_10.0.x/Buildings_Media_Examples_WaterDerivativeCheck.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_10_Buildings.Media.Examples.WaterDerivativeCheck.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) "Warning: Resultfile and Reference have different end time points! Reffile[501]=1.000000 File[3]=0.002000 Error: Could not read variable der(cpCod) in file Buildings_10_Buildings.Media.Examples.WaterDerivativeCheck_res.mat. Warning: Get data of variable der(cpCod) from file Buildings_10_Buildings.Media.Examples.WaterDerivativeCheck_res.mat failed! Error: Could not read variable der(cvCod) in file Buildings_10_Buildings.Media.Examples.WaterDerivativeCheck_res.mat. Warning: Get data of variable der(cvCod) from file Buildings_10_Buildings.Media.Examples.WaterDerivativeCheck_res.mat failed! " Variables in the reference:time,der(hLiqSym),der(hLiqCod),der(cpSym),der(cpCod),der(cvSym),der(cvCod) Variables in the result:T,cpCod,cpSym,cvCod,cvSym,der(T),der(cpSym),der(cvSym),der(hLiqCod),der(hLiqSym),hLiqCod,hLiqSym,time