Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_latest_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 12.0.0-master/package.mo", uses=false) Using package Buildings with version 12.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.0.0-master/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_latest_Buildings_Media_Examples_WaterDerivativeCheck",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Media.Examples.WaterDerivativeCheck,fileNamePrefix="Buildings_latest_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.004535/0.004535, allocations: 97.36 kB / 15.73 MB, free: 5.988 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.001338/0.001338, allocations: 188.4 kB / 16.67 MB, free: 5.918 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.258/1.258, allocations: 222.9 MB / 240.4 MB, free: 4.332 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.0.0-master/package.mo): time 2.586/2.586, allocations: 482.6 MB / 0.755 GB, free: 10.66 MB / 0.6075 GB Notification: Performance of FrontEnd - loaded program: time 0.001695/0.001695, allocations: 64.09 kB / 1.083 GB, free: 12.29 MB / 0.8419 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2613/0.263, allocations: 162.3 MB / 1.242 GB, free: 9.883 MB / 0.9981 GB Notification: Performance of NFInst.instantiate(Buildings.Media.Examples.WaterDerivativeCheck): time 0.001875/0.2649, allocations: 1.265 MB / 1.243 GB, free: 8.609 MB / 0.9981 GB Notification: Performance of NFInst.instExpressions: time 0.003258/0.2682, allocations: 3.264 MB / 1.246 GB, free: 5.324 MB / 0.9981 GB Notification: Performance of NFInst.updateImplicitVariability: time 1.971e-05/0.2682, allocations: 0 / 1.246 GB, free: 5.324 MB / 0.9981 GB Notification: Performance of NFTyping.typeComponents: time 1.538e-05/0.2683, allocations: 4 kB / 1.246 GB, free: 5.32 MB / 0.9981 GB Notification: Performance of NFTyping.typeBindings: time 3.356e-05/0.2683, allocations: 3.938 kB / 1.246 GB, free: 5.316 MB / 0.9981 GB Notification: Performance of NFTyping.typeClassSections: time 0.0003971/0.2687, allocations: 103.5 kB / 1.246 GB, free: 5.215 MB / 0.9981 GB Notification: Performance of NFFlatten.flatten: time 6.636e-05/0.2688, allocations: 39.84 kB / 1.246 GB, free: 5.176 MB / 0.9981 GB Notification: Performance of NFFlatten.resolveConnections: time 2.91e-05/0.2688, allocations: 7.984 kB / 1.246 GB, free: 5.168 MB / 0.9981 GB Notification: Performance of NFEvalConstants.evaluate: time 3.648e-05/0.2689, allocations: 11.94 kB / 1.246 GB, free: 5.156 MB / 0.9981 GB Notification: Performance of NFSimplifyModel.simplify: time 5.286e-05/0.2689, allocations: 15.97 kB / 1.246 GB, free: 5.141 MB / 0.9981 GB Notification: Performance of NFPackage.collectConstants: time 8.947e-06/0.2689, allocations: 7.938 kB / 1.246 GB, free: 5.133 MB / 0.9981 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0001915/0.2691, allocations: 75.81 kB / 1.246 GB, free: 5.059 MB / 0.9981 GB Notification: Performance of NFScalarize.scalarize: time 1.729e-05/0.2692, allocations: 15.97 kB / 1.247 GB, free: 5.043 MB / 0.9981 GB Notification: Performance of NFVerifyModel.verify: time 3.053e-05/0.2692, allocations: 19.94 kB / 1.247 GB, free: 5.023 MB / 0.9981 GB Notification: Performance of NFConvertDAE.convert: time 0.000155/0.2694, allocations: 71.72 kB / 1.247 GB, free: 4.953 MB / 0.9981 GB Notification: Performance of FrontEnd - DAE generated: time 2.635e-06/0.2694, allocations: 0 / 1.247 GB, free: 4.953 MB / 0.9981 GB Notification: Performance of FrontEnd: time 2.775e-06/0.2694, allocations: 4 kB / 1.247 GB, free: 4.949 MB / 0.9981 GB Notification: Performance of Transformations before backend: time 6.803e-06/0.2694, allocations: 0 / 1.247 GB, free: 4.949 MB / 0.9981 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.0003626/0.2697, allocations: 343.3 kB / 1.247 GB, free: 4.566 MB / 0.9981 GB Notification: Performance of prepare preOptimizeDAE: time 2.885e-05/0.2698, allocations: 12.03 kB / 1.247 GB, free: 4.555 MB / 0.9981 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.366e-05/0.2698, allocations: 38.75 kB / 1.247 GB, free: 4.508 MB / 0.9981 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 7.298e-05/0.2699, allocations: 8.922 kB / 1.247 GB, free: 4.5 MB / 0.9981 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001042/0.27, allocations: 160.4 kB / 1.247 GB, free: 4.305 MB / 0.9981 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.132e-05/0.27, allocations: 384 / 1.247 GB, free: 4.305 MB / 0.9981 GB Notification: Performance of preOpt expandDerOperator (simulation): time 2.472e-05/0.2701, allocations: 12.33 kB / 1.247 GB, free: 4.293 MB / 0.9981 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001068/0.2702, allocations: 53.61 kB / 1.247 GB, free: 4.234 MB / 0.9981 GB Notification: Performance of preOpt findStateOrder (simulation): time 9.107e-06/0.2702, allocations: 3.938 kB / 1.247 GB, free: 4.23 MB / 0.9981 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.136e-05/0.2702, allocations: 8 kB / 1.247 GB, free: 4.223 MB / 0.9981 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.497e-06/0.2702, allocations: 0 / 1.247 GB, free: 4.223 MB / 0.9981 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 4.804e-05/0.2703, allocations: 15.98 kB / 1.247 GB, free: 4.207 MB / 0.9981 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001556/0.2704, allocations: 173.6 kB / 1.247 GB, free: 3.988 MB / 0.9981 GB Notification: Performance of preOpt comSubExp (simulation): time 8.975e-05/0.2705, allocations: 50.56 kB / 1.247 GB, free: 3.93 MB / 0.9981 GB Notification: Performance of preOpt resolveLoops (simulation): time 3.079e-05/0.2706, allocations: 20.84 kB / 1.247 GB, free: 3.906 MB / 0.9981 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0006168/0.2712, allocations: 0.5867 MB / 1.248 GB, free: 3.211 MB / 0.9981 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.591e-05/0.2712, allocations: 46.55 kB / 1.248 GB, free: 3.156 MB / 0.9981 GB Notification: Performance of pre-optimization done (n=5): time 1.132e-06/0.2712, allocations: 0 / 1.248 GB, free: 3.156 MB / 0.9981 GB Notification: Performance of matching and sorting (n=7): time 0.0004881/0.2717, allocations: 298.6 kB / 1.248 GB, free: 2.812 MB / 0.9981 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.447e-05/0.2718, allocations: 51.41 kB / 1.248 GB, free: 2.75 MB / 0.9981 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 6.271e-05/0.2718, allocations: 101.8 kB / 1.249 GB, free: 2.641 MB / 0.9981 GB Notification: Performance of collectPreVariables (initialization): time 2.113e-05/0.2719, allocations: 33.7 kB / 1.249 GB, free: 2.602 MB / 0.9981 GB Notification: Performance of collectInitialEqns (initialization): time 4.196e-05/0.2719, allocations: 95.97 kB / 1.249 GB, free: 2.504 MB / 0.9981 GB Notification: Performance of collectInitialBindings (initialization): time 2.157e-05/0.2719, allocations: 27.8 kB / 1.249 GB, free: 2.477 MB / 0.9981 GB Notification: Performance of simplifyInitialFunctions (initialization): time 3.814e-05/0.272, allocations: 25.72 kB / 1.249 GB, free: 2.445 MB / 0.9981 GB Notification: Performance of setup shared object (initialization): time 0.0001105/0.2721, allocations: 314.8 kB / 1.249 GB, free: 2.129 MB / 0.9981 GB Notification: Performance of preBalanceInitialSystem (initialization): time 2.496e-05/0.2721, allocations: 12 kB / 1.249 GB, free: 2.117 MB / 0.9981 GB Notification: Performance of partitionIndependentBlocks (initialization): time 5.778e-05/0.2722, allocations: 57.08 kB / 1.249 GB, free: 2.043 MB / 0.9981 GB Notification: Performance of analyzeInitialSystem (initialization): time 8.039e-05/0.2723, allocations: 73.08 kB / 1.249 GB, free: 1.953 MB / 0.9981 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 8.61e-07/0.2723, allocations: 0 / 1.249 GB, free: 1.953 MB / 0.9981 GB Notification: Performance of matching and sorting (n=12) (initialization): time 0.0001283/0.2724, allocations: 97.61 kB / 1.249 GB, free: 1.852 MB / 0.9981 GB Notification: Performance of prepare postOptimizeDAE: time 1.182e-05/0.2724, allocations: 9.391 kB / 1.249 GB, free: 1.844 MB / 0.9981 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.889e-06/0.2724, allocations: 4 kB / 1.249 GB, free: 1.84 MB / 0.9981 GB Notification: Performance of postOpt tearingSystem (initialization): time 9.829e-06/0.2724, allocations: 0 / 1.249 GB, free: 1.84 MB / 0.9981 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 6.781e-05/0.2725, allocations: 16.44 kB / 1.249 GB, free: 1.824 MB / 0.9981 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.975e-06/0.2725, allocations: 7.938 kB / 1.249 GB, free: 1.816 MB / 0.9981 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 3.411e-05/0.2726, allocations: 7.938 kB / 1.249 GB, free: 1.809 MB / 0.9981 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.302e-06/0.2726, allocations: 4 kB / 1.249 GB, free: 1.805 MB / 0.9981 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.326e-05/0.2727, allocations: 121.8 kB / 1.249 GB, free: 1.676 MB / 0.9981 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.604e-05/0.2727, allocations: 12.03 kB / 1.249 GB, free: 1.664 MB / 0.9981 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.375e-05/0.2727, allocations: 7.969 kB / 1.249 GB, free: 1.656 MB / 0.9981 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.222e-06/0.2727, allocations: 0 / 1.249 GB, free: 1.656 MB / 0.9981 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.545e-06/0.2727, allocations: 0 / 1.249 GB, free: 1.656 MB / 0.9981 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.798e-06/0.2727, allocations: 3.938 kB / 1.249 GB, free: 1.652 MB / 0.9981 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002233/0.273, allocations: 173.7 kB / 1.25 GB, free: 1.434 MB / 0.9981 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.001e-06/0.273, allocations: 0 / 1.25 GB, free: 1.434 MB / 0.9981 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 7.786e-05/0.2731, allocations: 19.98 kB / 1.25 GB, free: 1.414 MB / 0.9981 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.372e-06/0.2731, allocations: 0 / 1.25 GB, free: 1.414 MB / 0.9981 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.025e-06/0.2731, allocations: 0 / 1.25 GB, free: 1.414 MB / 0.9981 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.082e-06/0.2731, allocations: 3.938 kB / 1.25 GB, free: 1.41 MB / 0.9981 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.497e-06/0.2731, allocations: 4 kB / 1.25 GB, free: 1.406 MB / 0.9981 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001618/0.2733, allocations: 183.3 kB / 1.25 GB, free: 1.211 MB / 0.9981 GB Notification: Performance of postOpt removeConstants (simulation): time 4.768e-05/0.2733, allocations: 81.14 kB / 1.25 GB, free: 1.113 MB / 0.9981 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.261e-05/0.2733, allocations: 4 kB / 1.25 GB, free: 1.109 MB / 0.9981 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 9.621e-05/0.2734, allocations: 4 kB / 1.25 GB, free: 1.105 MB / 0.9981 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.835e-05/0.2734, allocations: 12.3 kB / 1.25 GB, free: 1.094 MB / 0.9981 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.809e-06/0.2735, allocations: 0 / 1.25 GB, free: 1.094 MB / 0.9981 GB Notification: Performance of sorting global known variables: time 3.529e-05/0.2735, allocations: 87.27 kB / 1.25 GB, free: 1.008 MB / 0.9981 GB Notification: Performance of sort global known variables: time 1.5e-07/0.2735, allocations: 0 / 1.25 GB, free: 1.008 MB / 0.9981 GB Notification: Performance of remove unused functions: time 0.0002152/0.2737, allocations: 16 kB / 1.25 GB, free: 0.9922 MB / 0.9981 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.0004068/0.2741, allocations: 0.7014 MB / 1.251 GB, free: 268 kB / 0.9981 GB Notification: Performance of simCode: created initialization part: time 0.0001002/0.2742, allocations: 52.02 kB / 1.251 GB, free: 216 kB / 0.9981 GB Notification: Performance of simCode: created event and clocks part: time 1.482e-06/0.2743, allocations: 0 / 1.251 GB, free: 216 kB / 0.9981 GB Notification: Performance of simCode: created simulation system equations: time 3.021e-05/0.2743, allocations: 23.92 kB / 1.251 GB, free: 192 kB / 0.9981 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002286/0.2745, allocations: 11.94 kB / 1.251 GB, free: 180 kB / 0.9981 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.4494/0.724, allocations: 1.503 MB / 1.252 GB, free: 13.51 MB / 0.9981 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 8.008e-05/0.7241, allocations: 0.683 MB / 1.253 GB, free: 12.81 MB / 0.9981 GB Notification: Performance of simCode: alias equations: time 4.657e-05/0.7241, allocations: 8.438 kB / 1.253 GB, free: 12.81 MB / 0.9981 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.868e-05/0.7242, allocations: 16.47 kB / 1.253 GB, free: 12.8 MB / 0.9981 GB Notification: Performance of SimCode: time 5.51e-07/0.7242, allocations: 0 / 1.253 GB, free: 12.8 MB / 0.9981 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.4763/1.2, allocations: 1.659 MB / 1.255 GB, free: 12.49 MB / 0.9981 GB Notification: Performance of buildModelFMU: Generate platform static: time 12.99/14.19, allocations: 11.09 kB / 1.255 GB, free: 12.48 MB / 0.9981 GB (rm -f Buildings_latest_Buildings.Media.Examples.WaterDerivativeCheck.pipe ; mkfifo Buildings_latest_Buildings.Media.Examples.WaterDerivativeCheck.pipe ; head -c 1048576 < Buildings_latest_Buildings.Media.Examples.WaterDerivativeCheck.pipe >> ../files/Buildings_latest_Buildings.Media.Examples.WaterDerivativeCheck.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Buildings_latest_Buildings.Media.Examples.WaterDerivativeCheck_res.mat --tempDir=temp_Buildings_latest_Buildings_Media_Examples_WaterDerivativeCheck_fmu --startTime=0 --stopTime=1 --timeout=400 --tolerance=1e-08 Buildings_latest_Buildings_Media_Examples_WaterDerivativeCheck.fmu > Buildings_latest_Buildings.Media.Examples.WaterDerivativeCheck.pipe 2>&1) diffSimulationResults("Buildings_latest_Buildings.Media.Examples.WaterDerivativeCheck_res.mat","/mnt/ReferenceFiles/Buildings/csv/master/Buildings_Media_Examples_WaterDerivativeCheck.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_latest_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_latest_Buildings.Media.Examples.WaterDerivativeCheck_res.mat. Warning: Get data of variable der(cpCod) from file Buildings_latest_Buildings.Media.Examples.WaterDerivativeCheck_res.mat failed! Error: Could not read variable der(cvCod) in file Buildings_latest_Buildings.Media.Examples.WaterDerivativeCheck_res.mat. Warning: Get data of variable der(cvCod) from file Buildings_latest_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