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.001043/0.001043, 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.001174/0.001174, allocations: 197 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.272/1.272, allocations: 222.9 MB / 240.2 MB, free: 4.395 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.467/2.467, allocations: 437.1 MB / 0.7104 GB, free: 5.137 MB / 0.5606 GB Notification: Performance of FrontEnd - loaded program: time 0.001339/0.00134, allocations: 63.89 kB / 0.8693 GB, free: 4.605 MB / 0.7169 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.5809/0.5823, allocations: 151.6 MB / 1.017 GB, free: 2.52 MB / 0.7637 GB Notification: Performance of NFInst.instantiate(Buildings.Media.Examples.WaterDerivativeCheck): time 0.00294/0.5853, allocations: 1.26 MB / 1.019 GB, free: 1.25 MB / 0.7637 GB Notification: Performance of NFInst.instExpressions: time 0.003771/0.5891, allocations: 3.268 MB / 1.022 GB, free: 13.96 MB / 0.7794 GB Notification: Performance of NFInst.updateImplicitVariability: time 3.325e-05/0.5891, allocations: 0 / 1.022 GB, free: 13.96 MB / 0.7794 GB Notification: Performance of NFTyping.typeComponents: time 1.761e-05/0.5892, allocations: 0 / 1.022 GB, free: 13.96 MB / 0.7794 GB Notification: Performance of NFTyping.typeBindings: time 5.316e-05/0.5893, allocations: 3.938 kB / 1.022 GB, free: 13.96 MB / 0.7794 GB Notification: Performance of NFTyping.typeClassSections: time 0.0005601/0.5898, allocations: 107.5 kB / 1.022 GB, free: 13.86 MB / 0.7794 GB Notification: Performance of NFFlatten.flatten: time 8.13e-05/0.5899, allocations: 35.86 kB / 1.022 GB, free: 13.82 MB / 0.7794 GB Notification: Performance of NFFlatten.resolveConnections: time 5.32e-05/0.59, allocations: 4 kB / 1.022 GB, free: 13.82 MB / 0.7794 GB Notification: Performance of NFEvalConstants.evaluate: time 5.542e-05/0.59, allocations: 23.91 kB / 1.022 GB, free: 13.79 MB / 0.7794 GB Notification: Performance of NFSimplifyModel.simplify: time 6.771e-05/0.5901, allocations: 11.98 kB / 1.022 GB, free: 13.78 MB / 0.7794 GB Notification: Performance of NFPackage.collectConstants: time 1.352e-05/0.5901, allocations: 0 / 1.022 GB, free: 13.78 MB / 0.7794 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0002599/0.5904, allocations: 83.73 kB / 1.022 GB, free: 13.7 MB / 0.7794 GB Notification: Performance of NFScalarize.scalarize: time 1.961e-05/0.5904, allocations: 11.94 kB / 1.022 GB, free: 13.69 MB / 0.7794 GB Notification: Performance of NFVerifyModel.verify: time 6.143e-05/0.5905, allocations: 23.91 kB / 1.022 GB, free: 13.66 MB / 0.7794 GB Notification: Performance of NFConvertDAE.convert: time 0.0002027/0.5907, allocations: 62.19 kB / 1.022 GB, free: 13.61 MB / 0.7794 GB Notification: Performance of FrontEnd - DAE generated: time 5.34e-06/0.5907, allocations: 0 / 1.022 GB, free: 13.61 MB / 0.7794 GB Notification: Performance of FrontEnd: time 1.603e-06/0.5907, allocations: 4 kB / 1.022 GB, free: 13.6 MB / 0.7794 GB Notification: Performance of Transformations before backend: time 8.786e-06/0.5907, allocations: 0 / 1.022 GB, free: 13.6 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.0005514/0.5913, allocations: 347.4 kB / 1.023 GB, free: 13.21 MB / 0.7794 GB Notification: Performance of prepare preOptimizeDAE: time 5.083e-05/0.5913, allocations: 8.031 kB / 1.023 GB, free: 13.21 MB / 0.7794 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.831e-05/0.5914, allocations: 34.75 kB / 1.023 GB, free: 13.16 MB / 0.7794 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001239/0.5915, allocations: 4.938 kB / 1.023 GB, free: 13.16 MB / 0.7794 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001236/0.5917, allocations: 168.4 kB / 1.023 GB, free: 12.96 MB / 0.7794 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.1e-05/0.5917, allocations: 8.375 kB / 1.023 GB, free: 12.95 MB / 0.7794 GB Notification: Performance of preOpt expandDerOperator (simulation): time 2.842e-05/0.5917, allocations: 8.281 kB / 1.023 GB, free: 12.94 MB / 0.7794 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001356/0.5919, allocations: 61.55 kB / 1.023 GB, free: 12.88 MB / 0.7794 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.011e-05/0.5919, allocations: 3.984 kB / 1.023 GB, free: 12.87 MB / 0.7794 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.353e-05/0.5919, allocations: 4 kB / 1.023 GB, free: 12.87 MB / 0.7794 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.45e-06/0.5919, allocations: 0 / 1.023 GB, free: 12.87 MB / 0.7794 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 5.209e-05/0.592, allocations: 11.98 kB / 1.023 GB, free: 12.86 MB / 0.7794 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.000196/0.5922, allocations: 161.7 kB / 1.023 GB, free: 12.65 MB / 0.7794 GB Notification: Performance of preOpt comSubExp (simulation): time 9.66e-05/0.5923, allocations: 58.55 kB / 1.023 GB, free: 12.58 MB / 0.7794 GB Notification: Performance of preOpt resolveLoops (simulation): time 3.254e-05/0.5923, allocations: 16.86 kB / 1.023 GB, free: 12.56 MB / 0.7794 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0007218/0.593, allocations: 0.5987 MB / 1.024 GB, free: 11.86 MB / 0.7794 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.303e-05/0.5931, allocations: 38.56 kB / 1.024 GB, free: 11.81 MB / 0.7794 GB Notification: Performance of pre-optimization done (n=5): time 1.252e-06/0.5931, allocations: 0 / 1.024 GB, free: 11.81 MB / 0.7794 GB Notification: Performance of matching and sorting (n=7): time 0.0006072/0.5937, allocations: 298.2 kB / 1.024 GB, free: 11.46 MB / 0.7794 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.15e-05/0.5937, allocations: 51.41 kB / 1.024 GB, free: 11.4 MB / 0.7794 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 7.786e-05/0.5938, allocations: 105.7 kB / 1.024 GB, free: 11.29 MB / 0.7794 GB Notification: Performance of collectPreVariables (initialization): time 1.806e-05/0.5938, allocations: 33.69 kB / 1.024 GB, free: 11.25 MB / 0.7794 GB Notification: Performance of collectInitialEqns (initialization): time 3.956e-05/0.5939, allocations: 84.05 kB / 1.024 GB, free: 11.16 MB / 0.7794 GB Notification: Performance of collectInitialBindings (initialization): time 1.78e-05/0.5939, allocations: 23.66 kB / 1.024 GB, free: 11.14 MB / 0.7794 GB Notification: Performance of simplifyInitialFunctions (initialization): time 3.802e-05/0.594, allocations: 29.7 kB / 1.024 GB, free: 11.11 MB / 0.7794 GB Notification: Performance of setup shared object (initialization): time 0.0001085/0.5941, allocations: 318.8 kB / 1.025 GB, free: 10.79 MB / 0.7794 GB Notification: Performance of preBalanceInitialSystem (initialization): time 2.727e-05/0.5941, allocations: 15.92 kB / 1.025 GB, free: 10.77 MB / 0.7794 GB Notification: Performance of partitionIndependentBlocks (initialization): time 5.407e-05/0.5942, allocations: 57.08 kB / 1.025 GB, free: 10.7 MB / 0.7794 GB Notification: Performance of analyzeInitialSystem (initialization): time 8.565e-05/0.5943, allocations: 69.53 kB / 1.025 GB, free: 10.61 MB / 0.7794 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 8.42e-07/0.5943, allocations: 0 / 1.025 GB, free: 10.61 MB / 0.7794 GB Notification: Performance of matching and sorting (n=12) (initialization): time 0.0001374/0.5944, allocations: 97.45 kB / 1.025 GB, free: 10.51 MB / 0.7794 GB Notification: Performance of prepare postOptimizeDAE: time 1.344e-05/0.5944, allocations: 4 kB / 1.025 GB, free: 10.5 MB / 0.7794 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.512e-06/0.5944, allocations: 4 kB / 1.025 GB, free: 10.5 MB / 0.7794 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.673e-05/0.5945, allocations: 4 kB / 1.025 GB, free: 10.5 MB / 0.7794 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 8.692e-05/0.5946, allocations: 32.05 kB / 1.025 GB, free: 10.46 MB / 0.7794 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.905e-06/0.5946, allocations: 4 kB / 1.025 GB, free: 10.46 MB / 0.7794 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 3.669e-05/0.5946, allocations: 3.938 kB / 1.025 GB, free: 10.46 MB / 0.7794 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.303e-06/0.5946, allocations: 4 kB / 1.025 GB, free: 10.45 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 8.777e-05/0.5947, allocations: 113.8 kB / 1.025 GB, free: 10.33 MB / 0.7794 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.753e-05/0.5948, allocations: 4 kB / 1.025 GB, free: 10.33 MB / 0.7794 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.217e-05/0.5948, allocations: 8.25 kB / 1.025 GB, free: 10.32 MB / 0.7794 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.657e-06/0.5948, allocations: 3.984 kB / 1.025 GB, free: 10.31 MB / 0.7794 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.279e-06/0.5948, allocations: 0 / 1.025 GB, free: 10.31 MB / 0.7794 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.101e-06/0.5948, allocations: 11.92 kB / 1.025 GB, free: 10.3 MB / 0.7794 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002395/0.5951, allocations: 177.7 kB / 1.025 GB, free: 10.08 MB / 0.7794 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.072e-06/0.5951, allocations: 0 / 1.025 GB, free: 10.08 MB / 0.7794 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 8.332e-05/0.5952, allocations: 19.94 kB / 1.025 GB, free: 10.06 MB / 0.7794 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.543e-06/0.5952, allocations: 0 / 1.025 GB, free: 10.06 MB / 0.7794 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.616e-06/0.5952, allocations: 0 / 1.025 GB, free: 10.06 MB / 0.7794 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.062e-06/0.5952, allocations: 0 / 1.025 GB, free: 10.06 MB / 0.7794 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.62e-07/0.5952, allocations: 0 / 1.025 GB, free: 10.06 MB / 0.7794 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001846/0.5954, allocations: 179.4 kB / 1.025 GB, free: 9.867 MB / 0.7794 GB Notification: Performance of postOpt removeConstants (simulation): time 5.067e-05/0.5954, allocations: 81.14 kB / 1.025 GB, free: 9.77 MB / 0.7794 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.501e-05/0.5955, allocations: 4 kB / 1.025 GB, free: 9.766 MB / 0.7794 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 9.945e-05/0.5956, allocations: 4 kB / 1.025 GB, free: 9.762 MB / 0.7794 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.49e-05/0.5956, allocations: 7.938 kB / 1.025 GB, free: 9.754 MB / 0.7794 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.144e-06/0.5956, allocations: 7.922 kB / 1.025 GB, free: 9.746 MB / 0.7794 GB Notification: Performance of sorting global known variables: time 3.775e-05/0.5957, allocations: 79.28 kB / 1.026 GB, free: 9.668 MB / 0.7794 GB Notification: Performance of sort global known variables: time 1.21e-07/0.5957, allocations: 0 / 1.026 GB, free: 9.668 MB / 0.7794 GB Notification: Performance of remove unused functions: time 0.000237/0.5959, allocations: 16 kB / 1.026 GB, free: 9.652 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.0004809/0.5964, allocations: 0.7241 MB / 1.026 GB, free: 8.902 MB / 0.7794 GB Notification: Performance of simCode: created initialization part: time 0.0001223/0.5965, allocations: 47.97 kB / 1.026 GB, free: 8.855 MB / 0.7794 GB Notification: Performance of simCode: created event and clocks part: time 2.404e-06/0.5965, allocations: 0 / 1.026 GB, free: 8.855 MB / 0.7794 GB Notification: Performance of simCode: created simulation system equations: time 2.543e-05/0.5966, allocations: 16.23 kB / 1.026 GB, free: 8.84 MB / 0.7794 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003018/0.5969, allocations: 15.94 kB / 1.026 GB, free: 8.824 MB / 0.7794 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00137/0.5982, allocations: 1.524 MB / 1.028 GB, free: 7.191 MB / 0.7794 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.00026/0.5985, allocations: 0.6845 MB / 1.028 GB, free: 6.48 MB / 0.7794 GB Notification: Performance of simCode: alias equations: time 5.473e-05/0.5986, allocations: 11.86 kB / 1.028 GB, free: 6.469 MB / 0.7794 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.583e-05/0.5986, allocations: 15.44 kB / 1.028 GB, free: 6.453 MB / 0.7794 GB Notification: Performance of SimCode: time 3.1e-07/0.5986, allocations: 0 / 1.028 GB, free: 6.453 MB / 0.7794 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02512/0.6237, allocations: 1.614 MB / 1.03 GB, free: 4.898 MB / 0.7794 GB Notification: Performance of buildModelFMU: Generate platform static: time 9.798/10.42, allocations: 11.92 kB / 1.03 GB, free: 4.887 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