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.001262/0.001262, allocations: 103.4 kB / 15.33 MB, free: 0.5039 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.001205/0.001205, allocations: 196.2 kB / 16.25 MB, free: 6.629 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.268/1.268, allocations: 222.9 MB / 239.9 MB, free: 4.543 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.097/2.097, allocations: 390.2 MB / 0.6644 GB, free: 0.5703 MB / 0.5137 GB Notification: Performance of FrontEnd - loaded program: time 0.001137/0.001137, allocations: 63.89 kB / 0.8121 GB, free: 14.72 MB / 0.67 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.4872/0.4883, allocations: 140.4 MB / 0.9492 GB, free: 9.098 MB / 0.7169 GB Notification: Performance of NFInst.instantiate(Buildings.Media.Examples.WaterDerivativeCheck): time 0.001683/0.49, allocations: 1.319 MB / 0.9505 GB, free: 8.051 MB / 0.7169 GB Notification: Performance of NFInst.instExpressions: time 0.002304/0.4924, allocations: 3.231 MB / 0.9537 GB, free: 5.41 MB / 0.7169 GB Notification: Performance of NFInst.updateImplicitVariability: time 2.025e-05/0.4924, allocations: 1.281 kB / 0.9537 GB, free: 5.41 MB / 0.7169 GB Notification: Performance of NFTyping.typeComponents: time 1.373e-05/0.4924, allocations: 0 / 0.9537 GB, free: 5.41 MB / 0.7169 GB Notification: Performance of NFTyping.typeBindings: time 3.887e-05/0.4925, allocations: 5.297 kB / 0.9537 GB, free: 5.406 MB / 0.7169 GB Notification: Performance of NFTyping.typeClassSections: time 0.0003664/0.4928, allocations: 96.86 kB / 0.9538 GB, free: 5.336 MB / 0.7169 GB Notification: Performance of NFFlatten.flatten: time 5.103e-05/0.4929, allocations: 41.53 kB / 0.9538 GB, free: 5.312 MB / 0.7169 GB Notification: Performance of NFFlatten.resolveConnections: time 2.629e-05/0.4929, allocations: 3.281 kB / 0.9538 GB, free: 5.312 MB / 0.7169 GB Notification: Performance of NFEvalConstants.evaluate: time 3.341e-05/0.493, allocations: 12.64 kB / 0.9538 GB, free: 5.309 MB / 0.7169 GB Notification: Performance of NFSimplifyModel.simplify: time 4.426e-05/0.493, allocations: 22.31 kB / 0.9538 GB, free: 5.293 MB / 0.7169 GB Notification: Performance of NFPackage.collectConstants: time 8.576e-06/0.493, allocations: 2.344 kB / 0.9538 GB, free: 5.293 MB / 0.7169 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0001669/0.4932, allocations: 77.53 kB / 0.9539 GB, free: 5.25 MB / 0.7169 GB Notification: Performance of NFScalarize.scalarize: time 1.225e-05/0.4932, allocations: 14.33 kB / 0.9539 GB, free: 5.238 MB / 0.7169 GB Notification: Performance of NFVerifyModel.verify: time 2.869e-05/0.4933, allocations: 22.89 kB / 0.954 GB, free: 5.223 MB / 0.7169 GB Notification: Performance of NFConvertDAE.convert: time 0.0001326/0.4934, allocations: 65.48 kB / 0.954 GB, free: 5.191 MB / 0.7169 GB Notification: Performance of FrontEnd - DAE generated: time 3.427e-06/0.4934, allocations: 0 / 0.954 GB, free: 5.191 MB / 0.7169 GB Notification: Performance of FrontEnd: time 1.102e-06/0.4934, allocations: 0 / 0.954 GB, free: 5.191 MB / 0.7169 GB Notification: Performance of Transformations before backend: time 4.148e-06/0.4934, allocations: 1.844 kB / 0.954 GB, free: 5.191 MB / 0.7169 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.0002646/0.4937, allocations: 350.8 kB / 0.9544 GB, free: 4.816 MB / 0.7169 GB Notification: Performance of prepare preOptimizeDAE: time 3.086e-05/0.4937, allocations: 10.78 kB / 0.9544 GB, free: 4.816 MB / 0.7169 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 2.294e-05/0.4937, allocations: 36.41 kB / 0.9544 GB, free: 4.773 MB / 0.7169 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 7.535e-05/0.4938, allocations: 12.69 kB / 0.9544 GB, free: 4.766 MB / 0.7169 GB Notification: Performance of preOpt evaluateParameters (simulation): time 5.157e-05/0.4939, allocations: 164.4 kB / 0.9546 GB, free: 4.566 MB / 0.7169 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 6.893e-06/0.4939, allocations: 6.969 kB / 0.9546 GB, free: 4.562 MB / 0.7169 GB Notification: Performance of preOpt expandDerOperator (simulation): time 2.135e-05/0.4939, allocations: 10.84 kB / 0.9546 GB, free: 4.555 MB / 0.7169 GB Notification: Performance of preOpt clockPartitioning (simulation): time 9.808e-05/0.494, allocations: 63.19 kB / 0.9546 GB, free: 4.5 MB / 0.7169 GB Notification: Performance of preOpt findStateOrder (simulation): time 5.981e-06/0.494, allocations: 0 / 0.9546 GB, free: 4.5 MB / 0.7169 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.197e-06/0.4941, allocations: 0 / 0.9546 GB, free: 4.5 MB / 0.7169 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.258e-06/0.4941, allocations: 1.25 kB / 0.9546 GB, free: 4.5 MB / 0.7169 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 4.327e-05/0.4941, allocations: 22.61 kB / 0.9547 GB, free: 4.488 MB / 0.7169 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001014/0.4942, allocations: 165.6 kB / 0.9548 GB, free: 4.285 MB / 0.7169 GB Notification: Performance of preOpt comSubExp (simulation): time 7.384e-05/0.4943, allocations: 55.47 kB / 0.9549 GB, free: 4.242 MB / 0.7169 GB Notification: Performance of preOpt resolveLoops (simulation): time 2.26e-05/0.4943, allocations: 17.19 kB / 0.9549 GB, free: 4.23 MB / 0.7169 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0004538/0.4948, allocations: 0.5969 MB / 0.9555 GB, free: 3.566 MB / 0.7169 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.213e-05/0.4948, allocations: 31.91 kB / 0.9555 GB, free: 3.527 MB / 0.7169 GB Notification: Performance of pre-optimization done (n=5): time 1.082e-06/0.4948, allocations: 4 kB / 0.9555 GB, free: 3.523 MB / 0.7169 GB Notification: Performance of matching and sorting (n=7): time 0.0004161/0.4952, allocations: 299.1 kB / 0.9558 GB, free: 3.23 MB / 0.7169 GB Notification: Performance of inlineWhenForInitialization (initialization): time 1.584e-05/0.4953, allocations: 53.91 kB / 0.9558 GB, free: 3.168 MB / 0.7169 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 3.947e-05/0.4953, allocations: 101.8 kB / 0.9559 GB, free: 3.062 MB / 0.7169 GB Notification: Performance of collectPreVariables (initialization): time 8.296e-06/0.4953, allocations: 29.7 kB / 0.956 GB, free: 3.027 MB / 0.7169 GB Notification: Performance of collectInitialEqns (initialization): time 1.979e-05/0.4953, allocations: 85.47 kB / 0.9561 GB, free: 2.941 MB / 0.7169 GB Notification: Performance of collectInitialBindings (initialization): time 1.264e-05/0.4954, allocations: 26.48 kB / 0.9561 GB, free: 2.918 MB / 0.7169 GB Notification: Performance of simplifyInitialFunctions (initialization): time 3.026e-05/0.4954, allocations: 33.86 kB / 0.9561 GB, free: 2.887 MB / 0.7169 GB Notification: Performance of setup shared object (initialization): time 3.095e-05/0.4954, allocations: 312.3 kB / 0.9564 GB, free: 2.574 MB / 0.7169 GB Notification: Performance of preBalanceInitialSystem (initialization): time 2.389e-05/0.4955, allocations: 15.58 kB / 0.9564 GB, free: 2.566 MB / 0.7169 GB Notification: Performance of partitionIndependentBlocks (initialization): time 3.413e-05/0.4955, allocations: 53.55 kB / 0.9565 GB, free: 2.508 MB / 0.7169 GB Notification: Performance of analyzeInitialSystem (initialization): time 6.286e-05/0.4956, allocations: 78.25 kB / 0.9565 GB, free: 2.434 MB / 0.7169 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.563e-06/0.4956, allocations: 1.188 kB / 0.9566 GB, free: 2.434 MB / 0.7169 GB Notification: Performance of matching and sorting (n=12) (initialization): time 0.0001074/0.4957, allocations: 94.27 kB / 0.9566 GB, free: 2.371 MB / 0.7169 GB Notification: Performance of prepare postOptimizeDAE: time 9.498e-06/0.4957, allocations: 5.438 kB / 0.9566 GB, free: 2.371 MB / 0.7169 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.099e-06/0.4957, allocations: 4.969 kB / 0.9567 GB, free: 2.367 MB / 0.7169 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.015e-05/0.4957, allocations: 2.75 kB / 0.9567 GB, free: 2.367 MB / 0.7169 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 6.618e-05/0.4958, allocations: 24.17 kB / 0.9567 GB, free: 2.359 MB / 0.7169 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.591e-06/0.4958, allocations: 2.531 kB / 0.9567 GB, free: 2.359 MB / 0.7169 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 3.408e-05/0.4958, allocations: 9.344 kB / 0.9567 GB, free: 2.352 MB / 0.7169 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.883e-06/0.4958, allocations: 4.625 kB / 0.9567 GB, free: 2.352 MB / 0.7169 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 4.242e-05/0.4959, allocations: 112.7 kB / 0.9568 GB, free: 2.234 MB / 0.7169 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.443e-05/0.4959, allocations: 3.156 kB / 0.9568 GB, free: 2.234 MB / 0.7169 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.315e-05/0.4959, allocations: 9.5 kB / 0.9568 GB, free: 2.223 MB / 0.7169 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.174e-06/0.496, allocations: 9.609 kB / 0.9568 GB, free: 2.215 MB / 0.7169 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.787e-06/0.496, allocations: 3.984 kB / 0.9568 GB, free: 2.211 MB / 0.7169 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.297e-06/0.496, allocations: 7.938 kB / 0.9568 GB, free: 2.203 MB / 0.7169 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001671/0.4961, allocations: 169.2 kB / 0.957 GB, free: 2.004 MB / 0.7169 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.82e-07/0.4961, allocations: 0 / 0.957 GB, free: 2.004 MB / 0.7169 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 7.637e-05/0.4962, allocations: 17.59 kB / 0.957 GB, free: 2 MB / 0.7169 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.803e-06/0.4962, allocations: 0.9688 kB / 0.957 GB, free: 2 MB / 0.7169 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.823e-06/0.4962, allocations: 4 kB / 0.957 GB, free: 1.996 MB / 0.7169 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 9.72e-07/0.4963, allocations: 1.188 kB / 0.957 GB, free: 1.996 MB / 0.7169 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.42e-07/0.4963, allocations: 0 / 0.957 GB, free: 1.996 MB / 0.7169 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001258/0.4964, allocations: 184.7 kB / 0.9572 GB, free: 1.828 MB / 0.7169 GB Notification: Performance of postOpt removeConstants (simulation): time 2.429e-05/0.4964, allocations: 83.61 kB / 0.9573 GB, free: 1.73 MB / 0.7169 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.15e-05/0.4964, allocations: 1.438 kB / 0.9573 GB, free: 1.73 MB / 0.7169 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 9.894e-05/0.4965, allocations: 2.875 kB / 0.9573 GB, free: 1.73 MB / 0.7169 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.545e-05/0.4966, allocations: 9.188 kB / 0.9573 GB, free: 1.723 MB / 0.7169 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.142e-06/0.4966, allocations: 6.672 kB / 0.9573 GB, free: 1.719 MB / 0.7169 GB Notification: Performance of sorting global known variables: time 1.531e-05/0.4966, allocations: 78.22 kB / 0.9574 GB, free: 1.645 MB / 0.7169 GB Notification: Performance of sort global known variables: time 1.01e-07/0.4966, allocations: 4 kB / 0.9574 GB, free: 1.641 MB / 0.7169 GB Notification: Performance of remove unused functions: time 0.000219/0.4968, allocations: 13.72 kB / 0.9574 GB, free: 1.637 MB / 0.7169 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.0002301/0.4971, allocations: 0.7083 MB / 0.9581 GB, free: 0.9492 MB / 0.7169 GB Notification: Performance of simCode: created initialization part: time 9.21e-05/0.4972, allocations: 44.16 kB / 0.9581 GB, free: 0.9336 MB / 0.7169 GB Notification: Performance of simCode: created event and clocks part: time 1.853e-06/0.4972, allocations: 8 kB / 0.9581 GB, free: 0.9258 MB / 0.7169 GB Notification: Performance of simCode: created simulation system equations: time 2.118e-05/0.4972, allocations: 18.33 kB / 0.9581 GB, free: 0.918 MB / 0.7169 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002269/0.4974, allocations: 16.81 kB / 0.9582 GB, free: 0.9062 MB / 0.7169 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001015/0.4984, allocations: 1.526 MB / 0.9596 GB, free: 15.43 MB / 0.7325 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001823/0.4986, allocations: 0.6821 MB / 0.9603 GB, free: 14.73 MB / 0.7325 GB Notification: Performance of simCode: alias equations: time 4.983e-05/0.4987, allocations: 18.09 kB / 0.9603 GB, free: 14.71 MB / 0.7325 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.026e-05/0.4987, allocations: 19.77 kB / 0.9603 GB, free: 14.7 MB / 0.7325 GB Notification: Performance of SimCode: time 2.41e-07/0.4987, allocations: 0 / 0.9603 GB, free: 14.7 MB / 0.7325 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 1.531/2.03, allocations: 1.545 MB / 0.9619 GB, free: 13.91 MB / 0.7325 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001944/2.03, allocations: 194.5 kB / 0.962 GB, free: 13.65 MB / 0.7325 GB Notification: Performance of buildModelFMU: Generate platform static: time 1.644/3.675, allocations: 0 / 0.962 GB, free: 13.65 MB / 0.7325 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