Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_9_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 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.WaterDerivativeCheck,fileNamePrefix="Buildings_9_Buildings_Media_Examples_WaterDerivativeCheck",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Media.Examples.WaterDerivativeCheck,fileNamePrefix="Buildings_9_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.006914/0.006914, allocations: 103.9 kB / 15.74 MB, free: 5.953 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.00168/0.00168, allocations: 188.9 kB / 16.67 MB, free: 5.883 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.333/1.333, allocations: 222.9 MB / 240.4 MB, free: 4.141 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.328/2.328, allocations: 390.2 MB / 0.6648 GB, free: 188 kB / 0.5137 GB Notification: Performance of FrontEnd - loaded program: time 0.001208/0.001208, allocations: 66.8 kB / 0.9504 GB, free: 5.918 MB / 0.7169 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2587/0.2599, allocations: 140.4 MB / 1.087 GB, free: 2.008 MB / 0.8419 GB Notification: Performance of NFInst.instantiate(Buildings.Media.Examples.WaterDerivativeCheck): time 0.003234/0.2632, allocations: 1.27 MB / 1.089 GB, free: 0.7266 MB / 0.8419 GB Notification: Performance of NFInst.instExpressions: time 0.004949/0.2682, allocations: 3.25 MB / 1.092 GB, free: 13.46 MB / 0.8575 GB Notification: Performance of NFInst.updateImplicitVariability: time 3.088e-05/0.2682, allocations: 0 / 1.092 GB, free: 13.46 MB / 0.8575 GB Notification: Performance of NFTyping.typeComponents: time 1.848e-05/0.2683, allocations: 3.938 kB / 1.092 GB, free: 13.46 MB / 0.8575 GB Notification: Performance of NFTyping.typeBindings: time 5.435e-05/0.2683, allocations: 3.984 kB / 1.092 GB, free: 13.45 MB / 0.8575 GB Notification: Performance of NFTyping.typeClassSections: time 0.000558/0.2689, allocations: 107.5 kB / 1.092 GB, free: 13.35 MB / 0.8575 GB Notification: Performance of NFFlatten.flatten: time 8.171e-05/0.269, allocations: 31.92 kB / 1.092 GB, free: 13.32 MB / 0.8575 GB Notification: Performance of NFFlatten.resolveConnections: time 4.739e-05/0.2691, allocations: 3.938 kB / 1.092 GB, free: 13.31 MB / 0.8575 GB Notification: Performance of NFEvalConstants.evaluate: time 5.571e-05/0.2691, allocations: 31.84 kB / 1.092 GB, free: 13.28 MB / 0.8575 GB Notification: Performance of NFSimplifyModel.simplify: time 6.54e-05/0.2692, allocations: 11.98 kB / 1.092 GB, free: 13.27 MB / 0.8575 GB Notification: Performance of NFPackage.collectConstants: time 1.286e-05/0.2692, allocations: 4 kB / 1.092 GB, free: 13.27 MB / 0.8575 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0002752/0.2695, allocations: 75.8 kB / 1.092 GB, free: 13.19 MB / 0.8575 GB Notification: Performance of NFScalarize.scalarize: time 2.17e-05/0.2695, allocations: 11.94 kB / 1.092 GB, free: 13.18 MB / 0.8575 GB Notification: Performance of NFVerifyModel.verify: time 4.283e-05/0.2696, allocations: 23.91 kB / 1.092 GB, free: 13.16 MB / 0.8575 GB Notification: Performance of NFConvertDAE.convert: time 0.0002011/0.2698, allocations: 58.75 kB / 1.092 GB, free: 13.1 MB / 0.8575 GB Notification: Performance of FrontEnd - DAE generated: time 3.727e-06/0.2698, allocations: 0 / 1.092 GB, free: 13.1 MB / 0.8575 GB Notification: Performance of FrontEnd: time 1.673e-06/0.2698, allocations: 0 / 1.092 GB, free: 13.1 MB / 0.8575 GB Notification: Performance of Transformations before backend: time 1.112e-05/0.2698, allocations: 4 kB / 1.092 GB, free: 13.1 MB / 0.8575 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.0004558/0.2703, allocations: 352.3 kB / 1.093 GB, free: 12.71 MB / 0.8575 GB Notification: Performance of prepare preOptimizeDAE: time 4.067e-05/0.2704, allocations: 8.031 kB / 1.093 GB, free: 12.7 MB / 0.8575 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.131e-05/0.2704, allocations: 38.75 kB / 1.093 GB, free: 12.65 MB / 0.8575 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001093/0.2705, allocations: 8.844 kB / 1.093 GB, free: 12.64 MB / 0.8575 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001167/0.2706, allocations: 168.3 kB / 1.093 GB, free: 12.44 MB / 0.8575 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.243e-05/0.2707, allocations: 384 / 1.093 GB, free: 12.44 MB / 0.8575 GB Notification: Performance of preOpt expandDerOperator (simulation): time 3.077e-05/0.2707, allocations: 8.375 kB / 1.093 GB, free: 12.43 MB / 0.8575 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001461/0.2709, allocations: 57.59 kB / 1.093 GB, free: 12.37 MB / 0.8575 GB Notification: Performance of preOpt findStateOrder (simulation): time 9.528e-06/0.2709, allocations: 0 / 1.093 GB, free: 12.37 MB / 0.8575 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.508e-05/0.2709, allocations: 8 kB / 1.093 GB, free: 12.36 MB / 0.8575 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.639e-06/0.2709, allocations: 4 kB / 1.093 GB, free: 12.36 MB / 0.8575 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 6.324e-05/0.271, allocations: 11.98 kB / 1.093 GB, free: 12.35 MB / 0.8575 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001952/0.2712, allocations: 161.7 kB / 1.093 GB, free: 12.14 MB / 0.8575 GB Notification: Performance of preOpt comSubExp (simulation): time 0.000127/0.2713, allocations: 62.47 kB / 1.093 GB, free: 12.07 MB / 0.8575 GB Notification: Performance of preOpt resolveLoops (simulation): time 4.179e-05/0.2714, allocations: 16.86 kB / 1.093 GB, free: 12.05 MB / 0.8575 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0008327/0.2722, allocations: 0.5987 MB / 1.094 GB, free: 11.34 MB / 0.8575 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.995e-05/0.2723, allocations: 38.56 kB / 1.094 GB, free: 11.3 MB / 0.8575 GB Notification: Performance of pre-optimization done (n=5): time 1.563e-06/0.2723, allocations: 0 / 1.094 GB, free: 11.3 MB / 0.8575 GB Notification: Performance of matching and sorting (n=7): time 0.0006598/0.2729, allocations: 302.7 kB / 1.094 GB, free: 10.95 MB / 0.8575 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.697e-05/0.273, allocations: 55.34 kB / 1.094 GB, free: 10.88 MB / 0.8575 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 9.348e-05/0.2731, allocations: 109.8 kB / 1.094 GB, free: 10.77 MB / 0.8575 GB Notification: Performance of collectPreVariables (initialization): time 2.104e-05/0.2731, allocations: 29.7 kB / 1.094 GB, free: 10.73 MB / 0.8575 GB Notification: Performance of collectInitialEqns (initialization): time 5.297e-05/0.2732, allocations: 84.05 kB / 1.094 GB, free: 10.64 MB / 0.8575 GB Notification: Performance of collectInitialBindings (initialization): time 1.924e-05/0.2732, allocations: 27.56 kB / 1.094 GB, free: 10.62 MB / 0.8575 GB Notification: Performance of simplifyInitialFunctions (initialization): time 4.159e-05/0.2733, allocations: 29.7 kB / 1.094 GB, free: 10.58 MB / 0.8575 GB Notification: Performance of setup shared object (initialization): time 9.777e-05/0.2734, allocations: 314.8 kB / 1.095 GB, free: 10.27 MB / 0.8575 GB Notification: Performance of preBalanceInitialSystem (initialization): time 2.904e-05/0.2734, allocations: 15.98 kB / 1.095 GB, free: 10.25 MB / 0.8575 GB Notification: Performance of partitionIndependentBlocks (initialization): time 5.705e-05/0.2735, allocations: 57.14 kB / 1.095 GB, free: 10.18 MB / 0.8575 GB Notification: Performance of analyzeInitialSystem (initialization): time 7.549e-05/0.2736, allocations: 65.09 kB / 1.095 GB, free: 10.09 MB / 0.8575 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 9.41e-07/0.2736, allocations: 0 / 1.095 GB, free: 10.09 MB / 0.8575 GB Notification: Performance of matching and sorting (n=12) (initialization): time 0.0001223/0.2737, allocations: 101.5 kB / 1.095 GB, free: 9.988 MB / 0.8575 GB Notification: Performance of prepare postOptimizeDAE: time 1.159e-05/0.2737, allocations: 4 kB / 1.095 GB, free: 9.984 MB / 0.8575 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.771e-06/0.2737, allocations: 4 kB / 1.095 GB, free: 9.98 MB / 0.8575 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.062e-05/0.2737, allocations: 0 / 1.095 GB, free: 9.98 MB / 0.8575 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 7.294e-05/0.2738, allocations: 27.92 kB / 1.095 GB, free: 9.953 MB / 0.8575 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.472e-06/0.2738, allocations: 4 kB / 1.095 GB, free: 9.949 MB / 0.8575 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 4.24e-05/0.2739, allocations: 3.938 kB / 1.095 GB, free: 9.945 MB / 0.8575 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.312e-06/0.2739, allocations: 4 kB / 1.095 GB, free: 9.941 MB / 0.8575 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 7.023e-05/0.274, allocations: 121.9 kB / 1.095 GB, free: 9.812 MB / 0.8575 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.701e-05/0.274, allocations: 7.906 kB / 1.095 GB, free: 9.805 MB / 0.8575 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.774e-05/0.274, allocations: 11.95 kB / 1.095 GB, free: 9.789 MB / 0.8575 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.322e-06/0.274, allocations: 0 / 1.095 GB, free: 9.789 MB / 0.8575 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.156e-06/0.274, allocations: 0 / 1.095 GB, free: 9.789 MB / 0.8575 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.577e-06/0.274, allocations: 3.938 kB / 1.095 GB, free: 9.785 MB / 0.8575 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002389/0.2743, allocations: 177.7 kB / 1.095 GB, free: 9.562 MB / 0.8575 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.042e-06/0.2743, allocations: 0 / 1.095 GB, free: 9.562 MB / 0.8575 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 8.252e-05/0.2744, allocations: 16 kB / 1.095 GB, free: 9.547 MB / 0.8575 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.613e-06/0.2744, allocations: 0 / 1.095 GB, free: 9.547 MB / 0.8575 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.552e-06/0.2744, allocations: 4 kB / 1.095 GB, free: 9.543 MB / 0.8575 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.493e-06/0.2744, allocations: 0 / 1.095 GB, free: 9.543 MB / 0.8575 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.012e-06/0.2744, allocations: 288 / 1.095 GB, free: 9.543 MB / 0.8575 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001597/0.2746, allocations: 175.4 kB / 1.095 GB, free: 9.355 MB / 0.8575 GB Notification: Performance of postOpt removeConstants (simulation): time 4.528e-05/0.2746, allocations: 89.12 kB / 1.095 GB, free: 9.25 MB / 0.8575 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.285e-05/0.2746, allocations: 4 kB / 1.095 GB, free: 9.246 MB / 0.8575 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001037/0.2748, allocations: 4 kB / 1.095 GB, free: 9.242 MB / 0.8575 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.493e-05/0.2748, allocations: 15.86 kB / 1.095 GB, free: 9.227 MB / 0.8575 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.13e-06/0.2748, allocations: 4 kB / 1.095 GB, free: 9.223 MB / 0.8575 GB Notification: Performance of sorting global known variables: time 3.05e-05/0.2748, allocations: 79.28 kB / 1.096 GB, free: 9.145 MB / 0.8575 GB Notification: Performance of sort global known variables: time 1e-07/0.2748, allocations: 0 / 1.096 GB, free: 9.145 MB / 0.8575 GB Notification: Performance of remove unused functions: time 0.0002293/0.2751, allocations: 16 kB / 1.096 GB, free: 9.129 MB / 0.8575 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.0003966/0.2755, allocations: 0.7046 MB / 1.096 GB, free: 8.395 MB / 0.8575 GB Notification: Performance of simCode: created initialization part: time 9.398e-05/0.2756, allocations: 39.97 kB / 1.096 GB, free: 8.355 MB / 0.8575 GB Notification: Performance of simCode: created event and clocks part: time 1.814e-06/0.2756, allocations: 0 / 1.096 GB, free: 8.355 MB / 0.8575 GB Notification: Performance of simCode: created simulation system equations: time 2.38e-05/0.2756, allocations: 19.98 kB / 1.096 GB, free: 8.336 MB / 0.8575 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002677/0.2759, allocations: 19.88 kB / 1.096 GB, free: 8.316 MB / 0.8575 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001578/0.2775, allocations: 1.528 MB / 1.098 GB, free: 6.68 MB / 0.8575 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002777/0.2778, allocations: 0.6846 MB / 1.099 GB, free: 5.969 MB / 0.8575 GB Notification: Performance of simCode: alias equations: time 5.85e-05/0.2778, allocations: 7.984 kB / 1.099 GB, free: 5.961 MB / 0.8575 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.205e-05/0.2779, allocations: 15.44 kB / 1.099 GB, free: 5.945 MB / 0.8575 GB Notification: Performance of SimCode: time 3.7e-07/0.2779, allocations: 0 / 1.099 GB, free: 5.945 MB / 0.8575 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.2433/0.5212, allocations: 1.651 MB / 1.1 GB, free: 4.367 MB / 0.8575 GB Notification: Performance of buildModelFMU: Generate platform static: time 7.871/8.392, allocations: 14.41 kB / 1.1 GB, free: 4.355 MB / 0.8575 GB (rm -f Buildings_9_Buildings.Media.Examples.WaterDerivativeCheck.pipe ; mkfifo Buildings_9_Buildings.Media.Examples.WaterDerivativeCheck.pipe ; head -c 1048576 < Buildings_9_Buildings.Media.Examples.WaterDerivativeCheck.pipe >> ../files/Buildings_9_Buildings.Media.Examples.WaterDerivativeCheck.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Buildings_9_Buildings.Media.Examples.WaterDerivativeCheck_res.mat --tempDir=temp_Buildings_9_Buildings_Media_Examples_WaterDerivativeCheck_fmu --startTime=0 --stopTime=1 --timeout=50 --tolerance=1e-08 Buildings_9_Buildings_Media_Examples_WaterDerivativeCheck.fmu > Buildings_9_Buildings.Media.Examples.WaterDerivativeCheck.pipe 2>&1) diffSimulationResults("Buildings_9_Buildings.Media.Examples.WaterDerivativeCheck_res.mat","/mnt/ReferenceFiles/Buildings/csv/maint_9.1.x/Buildings_Media_Examples_WaterDerivativeCheck.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_9_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_9_Buildings.Media.Examples.WaterDerivativeCheck_res.mat. Warning: Get data of variable der(cpCod) from file Buildings_9_Buildings.Media.Examples.WaterDerivativeCheck_res.mat failed! Error: Could not read variable der(cvCod) in file Buildings_9_Buildings.Media.Examples.WaterDerivativeCheck_res.mat. Warning: Get data of variable der(cvCod) from file Buildings_9_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