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.00864/0.00864, allocations: 100.1 kB / 15.73 MB, free: 6.008 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.001812/0.001812, allocations: 198.7 kB / 16.68 MB, free: 5.93 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.403/1.403, allocations: 222.9 MB / 240.4 MB, free: 15.15 MB / 206.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.48/2.48, allocations: 437 MB / 0.7105 GB, free: 4.383 MB / 0.5762 GB Notification: Performance of FrontEnd - loaded program: time 0.001401/0.001401, allocations: 59.91 kB / 1.018 GB, free: 9.957 MB / 0.795 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.9101/0.9115, allocations: 151.6 MB / 1.166 GB, free: 3.805 MB / 0.8887 GB Notification: Performance of NFInst.instantiate(Buildings.Media.Examples.WaterDerivativeCheck): time 0.002557/0.9141, allocations: 1.25 MB / 1.167 GB, free: 2.547 MB / 0.8887 GB Notification: Performance of NFInst.instExpressions: time 0.004176/0.9183, allocations: 3.262 MB / 1.171 GB, free: 15.27 MB / 0.9044 GB Notification: Performance of NFInst.updateImplicitVariability: time 3.471e-05/0.9184, allocations: 11.94 kB / 1.171 GB, free: 15.25 MB / 0.9044 GB Notification: Performance of NFTyping.typeComponents: time 1.794e-05/0.9184, allocations: 0 / 1.171 GB, free: 15.25 MB / 0.9044 GB Notification: Performance of NFTyping.typeBindings: time 5.82e-05/0.9185, allocations: 7.922 kB / 1.171 GB, free: 15.25 MB / 0.9044 GB Notification: Performance of NFTyping.typeClassSections: time 0.0005946/0.9191, allocations: 103.5 kB / 1.171 GB, free: 15.14 MB / 0.9044 GB Notification: Performance of NFFlatten.flatten: time 8.925e-05/0.9192, allocations: 43.83 kB / 1.171 GB, free: 15.1 MB / 0.9044 GB Notification: Performance of NFFlatten.resolveConnections: time 4.333e-05/0.9193, allocations: 4 kB / 1.171 GB, free: 15.1 MB / 0.9044 GB Notification: Performance of NFEvalConstants.evaluate: time 4.683e-05/0.9193, allocations: 19.92 kB / 1.171 GB, free: 15.08 MB / 0.9044 GB Notification: Performance of NFSimplifyModel.simplify: time 6.63e-05/0.9194, allocations: 23.91 kB / 1.171 GB, free: 15.05 MB / 0.9044 GB Notification: Performance of NFPackage.collectConstants: time 1.252e-05/0.9194, allocations: 4 kB / 1.171 GB, free: 15.05 MB / 0.9044 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0002641/0.9197, allocations: 71.81 kB / 1.171 GB, free: 14.98 MB / 0.9044 GB Notification: Performance of NFScalarize.scalarize: time 1.77e-05/0.9197, allocations: 7.984 kB / 1.171 GB, free: 14.97 MB / 0.9044 GB Notification: Performance of NFVerifyModel.verify: time 3.553e-05/0.9198, allocations: 15.94 kB / 1.171 GB, free: 14.96 MB / 0.9044 GB Notification: Performance of NFConvertDAE.convert: time 0.0002325/0.92, allocations: 78.03 kB / 1.171 GB, free: 14.88 MB / 0.9044 GB Notification: Performance of FrontEnd - DAE generated: time 4.238e-06/0.92, allocations: 4 kB / 1.171 GB, free: 14.88 MB / 0.9044 GB Notification: Performance of FrontEnd: time 2.124e-06/0.92, allocations: 0 / 1.171 GB, free: 14.88 MB / 0.9044 GB Notification: Performance of Transformations before backend: time 7.254e-06/0.92, allocations: 0 / 1.171 GB, free: 14.88 MB / 0.9044 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.0005209/0.9206, allocations: 351.4 kB / 1.171 GB, free: 14.49 MB / 0.9044 GB Notification: Performance of prepare preOptimizeDAE: time 4.846e-05/0.9206, allocations: 12.92 kB / 1.171 GB, free: 14.48 MB / 0.9044 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.679e-05/0.9207, allocations: 34.75 kB / 1.171 GB, free: 14.43 MB / 0.9044 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001365/0.9208, allocations: 4.938 kB / 1.171 GB, free: 14.43 MB / 0.9044 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001317/0.921, allocations: 160.4 kB / 1.171 GB, free: 14.23 MB / 0.9044 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.527e-05/0.921, allocations: 4.375 kB / 1.171 GB, free: 14.23 MB / 0.9044 GB Notification: Performance of preOpt expandDerOperator (simulation): time 3.128e-05/0.921, allocations: 4.375 kB / 1.171 GB, free: 14.23 MB / 0.9044 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001679/0.9212, allocations: 57.61 kB / 1.172 GB, free: 14.16 MB / 0.9044 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.211e-05/0.9212, allocations: 7.875 kB / 1.172 GB, free: 14.16 MB / 0.9044 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.972e-05/0.9212, allocations: 4 kB / 1.172 GB, free: 14.15 MB / 0.9044 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.934e-06/0.9213, allocations: 4 kB / 1.172 GB, free: 14.15 MB / 0.9044 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 7.057e-05/0.9213, allocations: 19.97 kB / 1.172 GB, free: 14.13 MB / 0.9044 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0002139/0.9216, allocations: 161.7 kB / 1.172 GB, free: 13.92 MB / 0.9044 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001135/0.9217, allocations: 50.56 kB / 1.172 GB, free: 13.86 MB / 0.9044 GB Notification: Performance of preOpt resolveLoops (simulation): time 3.552e-05/0.9217, allocations: 20.84 kB / 1.172 GB, free: 13.84 MB / 0.9044 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0008864/0.9226, allocations: 0.5984 MB / 1.172 GB, free: 13.13 MB / 0.9044 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.771e-05/0.9227, allocations: 34.56 kB / 1.172 GB, free: 13.09 MB / 0.9044 GB Notification: Performance of pre-optimization done (n=5): time 1.412e-06/0.9227, allocations: 0 / 1.172 GB, free: 13.09 MB / 0.9044 GB Notification: Performance of matching and sorting (n=7): time 0.0007488/0.9234, allocations: 302.6 kB / 1.173 GB, free: 12.74 MB / 0.9044 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.394e-05/0.9235, allocations: 51.41 kB / 1.173 GB, free: 12.68 MB / 0.9044 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001078/0.9236, allocations: 101.8 kB / 1.173 GB, free: 12.57 MB / 0.9044 GB Notification: Performance of collectPreVariables (initialization): time 2.768e-05/0.9236, allocations: 33.7 kB / 1.173 GB, free: 12.53 MB / 0.9044 GB Notification: Performance of collectInitialEqns (initialization): time 6.13e-05/0.9237, allocations: 91.98 kB / 1.173 GB, free: 12.44 MB / 0.9044 GB Notification: Performance of collectInitialBindings (initialization): time 2.757e-05/0.9237, allocations: 27.61 kB / 1.173 GB, free: 12.41 MB / 0.9044 GB Notification: Performance of simplifyInitialFunctions (initialization): time 5.992e-05/0.9238, allocations: 25.7 kB / 1.173 GB, free: 12.38 MB / 0.9044 GB Notification: Performance of setup shared object (initialization): time 0.0001521/0.924, allocations: 314.8 kB / 1.173 GB, free: 12.06 MB / 0.9044 GB Notification: Performance of preBalanceInitialSystem (initialization): time 3.492e-05/0.924, allocations: 12 kB / 1.173 GB, free: 12.05 MB / 0.9044 GB Notification: Performance of partitionIndependentBlocks (initialization): time 7.397e-05/0.9241, allocations: 57.08 kB / 1.173 GB, free: 11.98 MB / 0.9044 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001096/0.9242, allocations: 77.25 kB / 1.173 GB, free: 11.88 MB / 0.9044 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.753e-06/0.9242, allocations: 4 kB / 1.173 GB, free: 11.88 MB / 0.9044 GB Notification: Performance of matching and sorting (n=12) (initialization): time 0.00018/0.9244, allocations: 97.55 kB / 1.174 GB, free: 11.78 MB / 0.9044 GB Notification: Performance of prepare postOptimizeDAE: time 1.783e-05/0.9244, allocations: 11.88 kB / 1.174 GB, free: 11.77 MB / 0.9044 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.128e-06/0.9245, allocations: 4 kB / 1.174 GB, free: 11.76 MB / 0.9044 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.151e-05/0.9245, allocations: 0 / 1.174 GB, free: 11.76 MB / 0.9044 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 8.12e-05/0.9246, allocations: 19.98 kB / 1.174 GB, free: 11.74 MB / 0.9044 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.227e-05/0.9246, allocations: 7.938 kB / 1.174 GB, free: 11.73 MB / 0.9044 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 4.271e-05/0.9246, allocations: 4.375 kB / 1.174 GB, free: 11.73 MB / 0.9044 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.097e-06/0.9247, allocations: 4 kB / 1.174 GB, free: 11.73 MB / 0.9044 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 0.0001132/0.9248, allocations: 121.9 kB / 1.174 GB, free: 11.6 MB / 0.9044 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.257e-05/0.9248, allocations: 7.906 kB / 1.174 GB, free: 11.59 MB / 0.9044 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.978e-05/0.9249, allocations: 7.969 kB / 1.174 GB, free: 11.58 MB / 0.9044 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.198e-06/0.9249, allocations: 4 kB / 1.174 GB, free: 11.57 MB / 0.9044 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.442e-06/0.9249, allocations: 0 / 1.174 GB, free: 11.57 MB / 0.9044 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.591e-06/0.9249, allocations: 3.938 kB / 1.174 GB, free: 11.57 MB / 0.9044 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002798/0.9252, allocations: 173.7 kB / 1.174 GB, free: 11.35 MB / 0.9044 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.725e-06/0.9252, allocations: 4 kB / 1.174 GB, free: 11.35 MB / 0.9044 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 8.653e-05/0.9253, allocations: 15.98 kB / 1.174 GB, free: 11.33 MB / 0.9044 GB Notification: Performance of postOpt tearingSystem (simulation): time 5.27e-06/0.9253, allocations: 0 / 1.174 GB, free: 11.33 MB / 0.9044 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.796e-06/0.9253, allocations: 3.938 kB / 1.174 GB, free: 11.33 MB / 0.9044 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.703e-06/0.9253, allocations: 4 kB / 1.174 GB, free: 11.32 MB / 0.9044 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.383e-06/0.9253, allocations: 0 / 1.174 GB, free: 11.32 MB / 0.9044 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002032/0.9255, allocations: 179.4 kB / 1.174 GB, free: 11.13 MB / 0.9044 GB Notification: Performance of postOpt removeConstants (simulation): time 4.966e-05/0.9256, allocations: 77.11 kB / 1.174 GB, free: 11.04 MB / 0.9044 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.652e-05/0.9256, allocations: 12.03 kB / 1.174 GB, free: 11.03 MB / 0.9044 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001021/0.9257, allocations: 0 / 1.174 GB, free: 11.03 MB / 0.9044 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.929e-05/0.9257, allocations: 7.938 kB / 1.174 GB, free: 11.02 MB / 0.9044 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.051e-06/0.9258, allocations: 4 kB / 1.174 GB, free: 11.02 MB / 0.9044 GB Notification: Performance of sorting global known variables: time 5.315e-05/0.9258, allocations: 87.27 kB / 1.174 GB, free: 10.93 MB / 0.9044 GB Notification: Performance of sort global known variables: time 1.91e-07/0.9258, allocations: 0 / 1.174 GB, free: 10.93 MB / 0.9044 GB Notification: Performance of remove unused functions: time 0.0002419/0.9261, allocations: 12 kB / 1.174 GB, free: 10.92 MB / 0.9044 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.000525/0.9266, allocations: 0.7085 MB / 1.175 GB, free: 10.18 MB / 0.9044 GB Notification: Performance of simCode: created initialization part: time 0.0001377/0.9267, allocations: 43.91 kB / 1.175 GB, free: 10.14 MB / 0.9044 GB Notification: Performance of simCode: created event and clocks part: time 2.745e-06/0.9268, allocations: 0 / 1.175 GB, free: 10.14 MB / 0.9044 GB Notification: Performance of simCode: created simulation system equations: time 2.747e-05/0.9268, allocations: 15.94 kB / 1.175 GB, free: 10.12 MB / 0.9044 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003446/0.9271, allocations: 15.92 kB / 1.175 GB, free: 10.11 MB / 0.9044 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001698/0.9288, allocations: 1.528 MB / 1.177 GB, free: 8.469 MB / 0.9044 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003359/0.9292, allocations: 0.6846 MB / 1.177 GB, free: 7.758 MB / 0.9044 GB Notification: Performance of simCode: alias equations: time 5.142e-05/0.9293, allocations: 8 kB / 1.177 GB, free: 7.75 MB / 0.9044 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.404e-05/0.9293, allocations: 15.42 kB / 1.177 GB, free: 7.738 MB / 0.9044 GB Notification: Performance of SimCode: time 6.92e-07/0.9293, allocations: 0 / 1.177 GB, free: 7.738 MB / 0.9044 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02157/0.9509, allocations: 1.656 MB / 1.179 GB, free: 6.156 MB / 0.9044 GB Notification: Performance of buildModelFMU: Generate platform static: time 7.633/8.584, allocations: 9.625 kB / 1.179 GB, free: 6.152 MB / 0.9044 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[2]=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