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.004671/0.004671, allocations: 99.25 kB / 15.73 MB, free: 6.492 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.00136/0.00136, allocations: 198.6 kB / 16.68 MB, free: 6.375 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.247/1.247, allocations: 222.9 MB / 240.4 MB, free: 4.301 MB / 190.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.338/2.338, allocations: 437.1 MB / 0.7106 GB, free: 4.953 MB / 0.5606 GB Notification: Performance of FrontEnd - loaded program: time 0.001656/0.001656, allocations: 59.91 kB / 1.018 GB, free: 15.04 MB / 0.7794 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2454/0.2471, allocations: 151.6 MB / 1.166 GB, free: 7.285 MB / 0.92 GB Notification: Performance of NFInst.instantiate(Buildings.Media.Examples.WaterDerivativeCheck): time 0.001928/0.249, allocations: 1.258 MB / 1.167 GB, free: 6.008 MB / 0.92 GB Notification: Performance of NFInst.instExpressions: time 0.003359/0.2524, allocations: 3.253 MB / 1.171 GB, free: 2.738 MB / 0.92 GB Notification: Performance of NFInst.updateImplicitVariability: time 1.866e-05/0.2524, allocations: 7.938 kB / 1.171 GB, free: 2.73 MB / 0.92 GB Notification: Performance of NFTyping.typeComponents: time 1.914e-05/0.2525, allocations: 11.92 kB / 1.171 GB, free: 2.719 MB / 0.92 GB Notification: Performance of NFTyping.typeBindings: time 3.469e-05/0.2525, allocations: 3.984 kB / 1.171 GB, free: 2.715 MB / 0.92 GB Notification: Performance of NFTyping.typeClassSections: time 0.0004132/0.2529, allocations: 107.5 kB / 1.171 GB, free: 2.609 MB / 0.92 GB Notification: Performance of NFFlatten.flatten: time 7.223e-05/0.253, allocations: 35.92 kB / 1.171 GB, free: 2.574 MB / 0.92 GB Notification: Performance of NFFlatten.resolveConnections: time 2.612e-05/0.253, allocations: 0 / 1.171 GB, free: 2.574 MB / 0.92 GB Notification: Performance of NFEvalConstants.evaluate: time 3.921e-05/0.2531, allocations: 19.92 kB / 1.171 GB, free: 2.555 MB / 0.92 GB Notification: Performance of NFSimplifyModel.simplify: time 6.07e-05/0.2531, allocations: 19.91 kB / 1.171 GB, free: 2.535 MB / 0.92 GB Notification: Performance of NFPackage.collectConstants: time 1.336e-05/0.2532, allocations: 8 kB / 1.171 GB, free: 2.527 MB / 0.92 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0001995/0.2534, allocations: 75.8 kB / 1.171 GB, free: 2.453 MB / 0.92 GB Notification: Performance of NFScalarize.scalarize: time 1.565e-05/0.2534, allocations: 8 kB / 1.171 GB, free: 2.445 MB / 0.92 GB Notification: Performance of NFVerifyModel.verify: time 2.541e-05/0.2534, allocations: 11.94 kB / 1.171 GB, free: 2.434 MB / 0.92 GB Notification: Performance of NFConvertDAE.convert: time 0.0001642/0.2536, allocations: 72.06 kB / 1.171 GB, free: 2.363 MB / 0.92 GB Notification: Performance of FrontEnd - DAE generated: time 2.905e-06/0.2536, allocations: 0 / 1.171 GB, free: 2.363 MB / 0.92 GB Notification: Performance of FrontEnd: time 1.102e-06/0.2536, allocations: 0 / 1.171 GB, free: 2.363 MB / 0.92 GB Notification: Performance of Transformations before backend: time 4.328e-06/0.2536, allocations: 0 / 1.171 GB, free: 2.363 MB / 0.92 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.0003672/0.254, allocations: 349.3 kB / 1.171 GB, free: 1.977 MB / 0.92 GB Notification: Performance of prepare preOptimizeDAE: time 3.124e-05/0.254, allocations: 12.03 kB / 1.171 GB, free: 1.965 MB / 0.92 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.714e-05/0.2541, allocations: 38.75 kB / 1.171 GB, free: 1.918 MB / 0.92 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 7.35e-05/0.2541, allocations: 4.938 kB / 1.171 GB, free: 1.914 MB / 0.92 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000108/0.2543, allocations: 168.3 kB / 1.171 GB, free: 1.711 MB / 0.92 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 8.796e-06/0.2543, allocations: 384 / 1.171 GB, free: 1.711 MB / 0.92 GB Notification: Performance of preOpt expandDerOperator (simulation): time 2.41e-05/0.2543, allocations: 16.31 kB / 1.171 GB, free: 1.695 MB / 0.92 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001116/0.2544, allocations: 49.62 kB / 1.172 GB, free: 1.641 MB / 0.92 GB Notification: Performance of preOpt findStateOrder (simulation): time 7.024e-06/0.2544, allocations: 3.938 kB / 1.172 GB, free: 1.637 MB / 0.92 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.437e-05/0.2544, allocations: 7.984 kB / 1.172 GB, free: 1.629 MB / 0.92 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.801e-06/0.2545, allocations: 4 kB / 1.172 GB, free: 1.625 MB / 0.92 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 4.445e-05/0.2545, allocations: 19.97 kB / 1.172 GB, free: 1.605 MB / 0.92 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001657/0.2547, allocations: 169.6 kB / 1.172 GB, free: 1.391 MB / 0.92 GB Notification: Performance of preOpt comSubExp (simulation): time 8.873e-05/0.2548, allocations: 58.48 kB / 1.172 GB, free: 1.324 MB / 0.92 GB Notification: Performance of preOpt resolveLoops (simulation): time 2.781e-05/0.2548, allocations: 16.86 kB / 1.172 GB, free: 1.305 MB / 0.92 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0006406/0.2554, allocations: 0.5907 MB / 1.172 GB, free: 0.6055 MB / 0.92 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.547e-05/0.2555, allocations: 38.55 kB / 1.172 GB, free: 0.5586 MB / 0.92 GB Notification: Performance of pre-optimization done (n=5): time 1.183e-06/0.2555, allocations: 7.938 kB / 1.172 GB, free: 0.5508 MB / 0.92 GB Notification: Performance of matching and sorting (n=7): time 0.0004999/0.256, allocations: 298.6 kB / 1.173 GB, free: 212 kB / 0.92 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.648e-05/0.256, allocations: 51.41 kB / 1.173 GB, free: 148 kB / 0.92 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 6.317e-05/0.2561, allocations: 101.7 kB / 1.173 GB, free: 36 kB / 0.92 GB Notification: Performance of collectPreVariables (initialization): time 3.44e-05/0.2562, allocations: 33.78 kB / 1.173 GB, free: 15.99 MB / 0.9356 GB Notification: Performance of collectInitialEqns (initialization): time 4.532e-05/0.2562, allocations: 92.08 kB / 1.173 GB, free: 15.9 MB / 0.9356 GB Notification: Performance of collectInitialBindings (initialization): time 2.144e-05/0.2562, allocations: 27.75 kB / 1.173 GB, free: 15.87 MB / 0.9356 GB Notification: Performance of simplifyInitialFunctions (initialization): time 3.625e-05/0.2563, allocations: 25.7 kB / 1.173 GB, free: 15.84 MB / 0.9356 GB Notification: Performance of setup shared object (initialization): time 0.0001193/0.2564, allocations: 314.8 kB / 1.173 GB, free: 15.52 MB / 0.9356 GB Notification: Performance of preBalanceInitialSystem (initialization): time 2.888e-05/0.2564, allocations: 15.98 kB / 1.173 GB, free: 15.51 MB / 0.9356 GB Notification: Performance of partitionIndependentBlocks (initialization): time 5.284e-05/0.2565, allocations: 53.16 kB / 1.173 GB, free: 15.44 MB / 0.9356 GB Notification: Performance of analyzeInitialSystem (initialization): time 8.645e-05/0.2566, allocations: 73.25 kB / 1.173 GB, free: 15.35 MB / 0.9356 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 8.41e-07/0.2566, allocations: 0 / 1.173 GB, free: 15.35 MB / 0.9356 GB Notification: Performance of matching and sorting (n=12) (initialization): time 0.0001347/0.2567, allocations: 101.5 kB / 1.174 GB, free: 15.24 MB / 0.9356 GB Notification: Performance of prepare postOptimizeDAE: time 9.828e-06/0.2567, allocations: 7.938 kB / 1.174 GB, free: 15.23 MB / 0.9356 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.607e-06/0.2567, allocations: 0 / 1.174 GB, free: 15.23 MB / 0.9356 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.113e-05/0.2568, allocations: 4 kB / 1.174 GB, free: 15.23 MB / 0.9356 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 7.022e-05/0.2568, allocations: 23.92 kB / 1.174 GB, free: 15.21 MB / 0.9356 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.045e-06/0.2568, allocations: 4 kB / 1.174 GB, free: 15.2 MB / 0.9356 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 3.446e-05/0.2569, allocations: 7.938 kB / 1.174 GB, free: 15.2 MB / 0.9356 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.832e-06/0.2569, allocations: 4.438 kB / 1.174 GB, free: 15.19 MB / 0.9356 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.827e-05/0.257, allocations: 113.9 kB / 1.174 GB, free: 15.07 MB / 0.9356 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.237e-05/0.257, allocations: 7.938 kB / 1.174 GB, free: 15.06 MB / 0.9356 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.299e-05/0.257, allocations: 11.97 kB / 1.174 GB, free: 15.05 MB / 0.9356 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.232e-06/0.257, allocations: 0 / 1.174 GB, free: 15.05 MB / 0.9356 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.943e-06/0.2571, allocations: 4 kB / 1.174 GB, free: 15.04 MB / 0.9356 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.851e-06/0.2571, allocations: 7.922 kB / 1.174 GB, free: 15.04 MB / 0.9356 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002267/0.2573, allocations: 165.7 kB / 1.174 GB, free: 14.82 MB / 0.9356 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.908e-06/0.2573, allocations: 3.984 kB / 1.174 GB, free: 14.82 MB / 0.9356 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 7.974e-05/0.2574, allocations: 20 kB / 1.174 GB, free: 14.8 MB / 0.9356 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.503e-06/0.2574, allocations: 0 / 1.174 GB, free: 14.8 MB / 0.9356 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.881e-06/0.2574, allocations: 0 / 1.174 GB, free: 14.8 MB / 0.9356 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.173e-06/0.2574, allocations: 4 kB / 1.174 GB, free: 14.8 MB / 0.9356 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.71e-07/0.2574, allocations: 0 / 1.174 GB, free: 14.8 MB / 0.9356 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001624/0.2576, allocations: 183.3 kB / 1.174 GB, free: 14.61 MB / 0.9356 GB Notification: Performance of postOpt removeConstants (simulation): time 5.444e-05/0.2576, allocations: 81.14 kB / 1.174 GB, free: 14.51 MB / 0.9356 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.103e-05/0.2577, allocations: 0 / 1.174 GB, free: 14.51 MB / 0.9356 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 9.469e-05/0.2578, allocations: 8 kB / 1.174 GB, free: 14.5 MB / 0.9356 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.388e-05/0.2578, allocations: 7.938 kB / 1.174 GB, free: 14.49 MB / 0.9356 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.999e-06/0.2578, allocations: 3.938 kB / 1.174 GB, free: 14.49 MB / 0.9356 GB Notification: Performance of sorting global known variables: time 3.942e-05/0.2578, allocations: 87.27 kB / 1.174 GB, free: 14.4 MB / 0.9356 GB Notification: Performance of sort global known variables: time 1e-07/0.2578, allocations: 0 / 1.174 GB, free: 14.4 MB / 0.9356 GB Notification: Performance of remove unused functions: time 0.000212/0.2581, allocations: 12 kB / 1.174 GB, free: 14.39 MB / 0.9356 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.0004227/0.2585, allocations: 0.7046 MB / 1.175 GB, free: 13.66 MB / 0.9356 GB Notification: Performance of simCode: created initialization part: time 9.989e-05/0.2586, allocations: 47.91 kB / 1.175 GB, free: 13.61 MB / 0.9356 GB Notification: Performance of simCode: created event and clocks part: time 1.843e-06/0.2586, allocations: 0 / 1.175 GB, free: 13.61 MB / 0.9356 GB Notification: Performance of simCode: created simulation system equations: time 2.203e-05/0.2586, allocations: 16 kB / 1.175 GB, free: 13.59 MB / 0.9356 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002299/0.2589, allocations: 17.75 kB / 1.175 GB, free: 13.58 MB / 0.9356 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001331/0.2602, allocations: 1.532 MB / 1.177 GB, free: 11.94 MB / 0.9356 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002666/0.2605, allocations: 0.6807 MB / 1.177 GB, free: 11.23 MB / 0.9356 GB Notification: Performance of simCode: alias equations: time 3.831e-05/0.2605, allocations: 8 kB / 1.177 GB, free: 11.22 MB / 0.9356 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.24e-05/0.2606, allocations: 19.42 kB / 1.177 GB, free: 11.21 MB / 0.9356 GB Notification: Performance of SimCode: time 2e-07/0.2606, allocations: 0 / 1.177 GB, free: 11.21 MB / 0.9356 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 6.096/6.356, allocations: 1.652 MB / 1.179 GB, free: 9.629 MB / 0.9356 GB Notification: Performance of buildModelFMU: Generate platform static: time 11.46/17.81, allocations: 8.094 kB / 1.179 GB, free: 9.625 MB / 0.9356 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=400 --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[3]=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