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.001274/0.001274, allocations: 104 kB / 15.61 MB, free: 148 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.00125/0.00125, allocations: 195.5 kB / 16.53 MB, free: 6.684 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.286/1.286, allocations: 222.9 MB / 240.2 MB, free: 4.398 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.23/2.23, allocations: 390.3 MB / 0.6647 GB, free: 424 kB / 0.5137 GB Notification: Performance of FrontEnd - loaded program: time 0.001177/0.001177, allocations: 67.89 kB / 0.8126 GB, free: 14.38 MB / 0.67 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.4906/0.4918, allocations: 140.4 MB / 0.9497 GB, free: 9.199 MB / 0.7169 GB Notification: Performance of NFInst.instantiate(Buildings.Media.Examples.WaterDerivativeCheck): time 0.001826/0.4937, allocations: 1.243 MB / 0.9509 GB, free: 8.207 MB / 0.7169 GB Notification: Performance of NFInst.instExpressions: time 0.002554/0.4963, allocations: 3.263 MB / 0.9541 GB, free: 5.535 MB / 0.7169 GB Notification: Performance of NFInst.updateImplicitVariability: time 2.59e-05/0.4963, allocations: 5.062 kB / 0.9541 GB, free: 5.531 MB / 0.7169 GB Notification: Performance of NFTyping.typeComponents: time 1.524e-05/0.4963, allocations: 0 / 0.9541 GB, free: 5.531 MB / 0.7169 GB Notification: Performance of NFTyping.typeBindings: time 3.54e-05/0.4964, allocations: 9.062 kB / 0.9541 GB, free: 5.523 MB / 0.7169 GB Notification: Performance of NFTyping.typeClassSections: time 0.0004113/0.4968, allocations: 113 kB / 0.9542 GB, free: 5.438 MB / 0.7169 GB Notification: Performance of NFFlatten.flatten: time 5.264e-05/0.4968, allocations: 38.69 kB / 0.9543 GB, free: 5.418 MB / 0.7169 GB Notification: Performance of NFFlatten.resolveConnections: time 3.199e-05/0.4969, allocations: 1.312 kB / 0.9543 GB, free: 5.418 MB / 0.7169 GB Notification: Performance of NFEvalConstants.evaluate: time 3.42e-05/0.4969, allocations: 17.45 kB / 0.9543 GB, free: 5.41 MB / 0.7169 GB Notification: Performance of NFSimplifyModel.simplify: time 4.817e-05/0.497, allocations: 21.81 kB / 0.9543 GB, free: 5.395 MB / 0.7169 GB Notification: Performance of NFPackage.collectConstants: time 1.003e-05/0.497, allocations: 2.688 kB / 0.9543 GB, free: 5.395 MB / 0.7169 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0001936/0.4972, allocations: 80.59 kB / 0.9544 GB, free: 5.348 MB / 0.7169 GB Notification: Performance of NFScalarize.scalarize: time 1.172e-05/0.4972, allocations: 2.906 kB / 0.9544 GB, free: 5.348 MB / 0.7169 GB Notification: Performance of NFVerifyModel.verify: time 2.779e-05/0.4972, allocations: 26.69 kB / 0.9544 GB, free: 5.328 MB / 0.7169 GB Notification: Performance of NFConvertDAE.convert: time 0.0001456/0.4974, allocations: 65.14 kB / 0.9545 GB, free: 5.297 MB / 0.7169 GB Notification: Performance of FrontEnd - DAE generated: time 3.226e-06/0.4974, allocations: 0 / 0.9545 GB, free: 5.297 MB / 0.7169 GB Notification: Performance of FrontEnd: time 1.562e-06/0.4974, allocations: 0 / 0.9545 GB, free: 5.297 MB / 0.7169 GB Notification: Performance of Transformations before backend: time 4.329e-06/0.4974, allocations: 0 / 0.9545 GB, free: 5.297 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.000268/0.4977, allocations: 352.5 kB / 0.9548 GB, free: 4.922 MB / 0.7169 GB Notification: Performance of prepare preOptimizeDAE: time 3.237e-05/0.4977, allocations: 9.438 kB / 0.9548 GB, free: 4.922 MB / 0.7169 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 2.672e-05/0.4978, allocations: 36.81 kB / 0.9549 GB, free: 4.879 MB / 0.7169 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 7.618e-05/0.4978, allocations: 5.406 kB / 0.9549 GB, free: 4.879 MB / 0.7169 GB Notification: Performance of preOpt evaluateParameters (simulation): time 5.071e-05/0.4979, allocations: 160.4 kB / 0.955 GB, free: 4.684 MB / 0.7169 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.117e-05/0.4979, allocations: 6.812 kB / 0.955 GB, free: 4.68 MB / 0.7169 GB Notification: Performance of preOpt expandDerOperator (simulation): time 2.128e-05/0.4979, allocations: 11.86 kB / 0.955 GB, free: 4.672 MB / 0.7169 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001007/0.498, allocations: 61.52 kB / 0.9551 GB, free: 4.617 MB / 0.7169 GB Notification: Performance of preOpt findStateOrder (simulation): time 6.282e-06/0.4981, allocations: 0 / 0.9551 GB, free: 4.617 MB / 0.7169 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.047e-05/0.4981, allocations: 1.125 kB / 0.9551 GB, free: 4.617 MB / 0.7169 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.609e-06/0.4981, allocations: 1.531 kB / 0.9551 GB, free: 4.617 MB / 0.7169 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 4.42e-05/0.4981, allocations: 21.58 kB / 0.9551 GB, free: 4.605 MB / 0.7169 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001058/0.4982, allocations: 165.8 kB / 0.9553 GB, free: 4.402 MB / 0.7169 GB Notification: Performance of preOpt comSubExp (simulation): time 7.39e-05/0.4983, allocations: 56.75 kB / 0.9553 GB, free: 4.359 MB / 0.7169 GB Notification: Performance of preOpt resolveLoops (simulation): time 2.338e-05/0.4984, allocations: 19.14 kB / 0.9553 GB, free: 4.344 MB / 0.7169 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0004799/0.4988, allocations: 0.595 MB / 0.9559 GB, free: 3.684 MB / 0.7169 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.724e-05/0.4989, allocations: 39.52 kB / 0.956 GB, free: 3.637 MB / 0.7169 GB Notification: Performance of pre-optimization done (n=5): time 1.152e-06/0.4989, allocations: 0 / 0.956 GB, free: 3.637 MB / 0.7169 GB Notification: Performance of matching and sorting (n=7): time 0.0004291/0.4993, allocations: 294.9 kB / 0.9562 GB, free: 3.348 MB / 0.7169 GB Notification: Performance of inlineWhenForInitialization (initialization): time 2.048e-05/0.4993, allocations: 52.62 kB / 0.9563 GB, free: 3.285 MB / 0.7169 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 4.016e-05/0.4994, allocations: 102 kB / 0.9564 GB, free: 3.18 MB / 0.7169 GB Notification: Performance of collectPreVariables (initialization): time 8.045e-06/0.4994, allocations: 27.11 kB / 0.9564 GB, free: 3.148 MB / 0.7169 GB Notification: Performance of collectInitialEqns (initialization): time 2.199e-05/0.4994, allocations: 93.38 kB / 0.9565 GB, free: 3.055 MB / 0.7169 GB Notification: Performance of collectInitialBindings (initialization): time 1.187e-05/0.4994, allocations: 21.84 kB / 0.9565 GB, free: 3.035 MB / 0.7169 GB Notification: Performance of simplifyInitialFunctions (initialization): time 3.005e-05/0.4995, allocations: 29.67 kB / 0.9566 GB, free: 3.008 MB / 0.7169 GB Notification: Performance of setup shared object (initialization): time 3.203e-05/0.4995, allocations: 320.2 kB / 0.9569 GB, free: 2.688 MB / 0.7169 GB Notification: Performance of preBalanceInitialSystem (initialization): time 2.335e-05/0.4995, allocations: 12.58 kB / 0.9569 GB, free: 2.684 MB / 0.7169 GB Notification: Performance of partitionIndependentBlocks (initialization): time 3.592e-05/0.4996, allocations: 57.03 kB / 0.9569 GB, free: 2.621 MB / 0.7169 GB Notification: Performance of analyzeInitialSystem (initialization): time 6.187e-05/0.4996, allocations: 74.52 kB / 0.957 GB, free: 2.551 MB / 0.7169 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 9.22e-07/0.4996, allocations: 0 / 0.957 GB, free: 2.551 MB / 0.7169 GB Notification: Performance of matching and sorting (n=12) (initialization): time 0.0001069/0.4998, allocations: 99.48 kB / 0.9571 GB, free: 2.484 MB / 0.7169 GB Notification: Performance of prepare postOptimizeDAE: time 1.148e-05/0.4998, allocations: 9.625 kB / 0.9571 GB, free: 2.48 MB / 0.7169 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.118e-06/0.4998, allocations: 1.406 kB / 0.9571 GB, free: 2.48 MB / 0.7169 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.268e-05/0.4998, allocations: 2.844 kB / 0.9571 GB, free: 2.48 MB / 0.7169 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 6.776e-05/0.4999, allocations: 28.48 kB / 0.9571 GB, free: 2.469 MB / 0.7169 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.23e-06/0.4999, allocations: 1.375 kB / 0.9571 GB, free: 2.469 MB / 0.7169 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 3.592e-05/0.4999, allocations: 6.594 kB / 0.9571 GB, free: 2.465 MB / 0.7169 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.142e-06/0.4999, allocations: 3.953 kB / 0.9571 GB, free: 2.465 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.277e-05/0.5, allocations: 112.4 kB / 0.9573 GB, free: 2.348 MB / 0.7169 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.504e-05/0.5, allocations: 2.906 kB / 0.9573 GB, free: 2.348 MB / 0.7169 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.281e-05/0.5, allocations: 13.34 kB / 0.9573 GB, free: 2.332 MB / 0.7169 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.034e-06/0.5, allocations: 1.406 kB / 0.9573 GB, free: 2.332 MB / 0.7169 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.116e-06/0.5, allocations: 0 / 0.9573 GB, free: 2.332 MB / 0.7169 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.507e-06/0.5001, allocations: 7.922 kB / 0.9573 GB, free: 2.324 MB / 0.7169 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001665/0.5002, allocations: 178.5 kB / 0.9575 GB, free: 2.117 MB / 0.7169 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.462e-06/0.5002, allocations: 448 / 0.9575 GB, free: 2.117 MB / 0.7169 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 7.451e-05/0.5003, allocations: 16.53 kB / 0.9575 GB, free: 2.113 MB / 0.7169 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.053e-06/0.5003, allocations: 1.094 kB / 0.9575 GB, free: 2.113 MB / 0.7169 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.672e-06/0.5003, allocations: 4 kB / 0.9575 GB, free: 2.109 MB / 0.7169 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.144e-06/0.5003, allocations: 5.016 kB / 0.9575 GB, free: 2.105 MB / 0.7169 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.303e-06/0.5003, allocations: 4.281 kB / 0.9575 GB, free: 2.102 MB / 0.7169 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.000122/0.5005, allocations: 174 kB / 0.9576 GB, free: 1.945 MB / 0.7169 GB Notification: Performance of postOpt removeConstants (simulation): time 2.593e-05/0.5005, allocations: 86.78 kB / 0.9577 GB, free: 1.844 MB / 0.7169 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.206e-05/0.5005, allocations: 5.406 kB / 0.9577 GB, free: 1.84 MB / 0.7169 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 9.535e-05/0.5006, allocations: 2.531 kB / 0.9577 GB, free: 1.84 MB / 0.7169 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.242e-05/0.5006, allocations: 5.469 kB / 0.9577 GB, free: 1.836 MB / 0.7169 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.14e-06/0.5006, allocations: 2.375 kB / 0.9577 GB, free: 1.836 MB / 0.7169 GB Notification: Performance of sorting global known variables: time 1.664e-05/0.5007, allocations: 91.23 kB / 0.9578 GB, free: 1.75 MB / 0.7169 GB Notification: Performance of sort global known variables: time 5.51e-07/0.5007, allocations: 0 / 0.9578 GB, free: 1.75 MB / 0.7169 GB Notification: Performance of remove unused functions: time 0.0002167/0.5009, allocations: 13.03 kB / 0.9578 GB, free: 1.746 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.0002251/0.5011, allocations: 0.7163 MB / 0.9585 GB, free: 1.051 MB / 0.7169 GB Notification: Performance of simCode: created initialization part: time 0.0001004/0.5012, allocations: 51 kB / 0.9586 GB, free: 1.027 MB / 0.7169 GB Notification: Performance of simCode: created event and clocks part: time 1.813e-06/0.5012, allocations: 0 / 0.9586 GB, free: 1.027 MB / 0.7169 GB Notification: Performance of simCode: created simulation system equations: time 2.081e-05/0.5013, allocations: 15.67 kB / 0.9586 GB, free: 1.023 MB / 0.7169 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002293/0.5015, allocations: 11.88 kB / 0.9586 GB, free: 1.016 MB / 0.7169 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001015/0.5025, allocations: 1.507 MB / 0.9601 GB, free: 15.55 MB / 0.7325 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001866/0.5027, allocations: 0.6866 MB / 0.9608 GB, free: 14.85 MB / 0.7325 GB Notification: Performance of simCode: alias equations: time 5.169e-05/0.5028, allocations: 10.97 kB / 0.9608 GB, free: 14.84 MB / 0.7325 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.976e-05/0.5028, allocations: 14.81 kB / 0.9608 GB, free: 14.83 MB / 0.7325 GB Notification: Performance of SimCode: time 2.21e-07/0.5028, allocations: 0 / 0.9608 GB, free: 14.83 MB / 0.7325 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 1.765/2.268, allocations: 1.618 MB / 0.9624 GB, free: 13.93 MB / 0.7325 GB Notification: Performance of buildModelFMU: Generate platform static: time 10.12/12.39, allocations: 8.812 kB / 0.9624 GB, free: 13.92 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