Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_latest_Buildings.Fluid.BaseClasses.FlowModels.Validation.BasicFlowFunction_dp_DerivativeCheck2.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 11.0.1-master/package.mo", uses=false) Using package Buildings with version 11.0.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.0.1-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.Fluid.BaseClasses.FlowModels.Validation.BasicFlowFunction_dp_DerivativeCheck2,fileNamePrefix="Buildings_latest_Buildings_Fluid_BaseClasses_FlowModels_Validation_BasicFlowFunction_dp_DerivativeCheck2",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Fluid.BaseClasses.FlowModels.Validation.BasicFlowFunction_dp_DerivativeCheck2,fileNamePrefix="Buildings_latest_Buildings_Fluid_BaseClasses_FlowModels_Validation_BasicFlowFunction_dp_DerivativeCheck2",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.01084/0.01084, allocations: 100.3 kB / 15.73 MB, free: 5.977 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.002273/0.002273, allocations: 197.3 kB / 16.67 MB, free: 5.914 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.316/1.316, allocations: 222.9 MB / 240.4 MB, free: 4.293 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.0.1-master/package.mo): time 2.688/2.688, allocations: 461.9 MB / 0.7348 GB, free: 14.62 MB / 0.5919 GB Notification: Performance of FrontEnd - loaded program: time 0.001436/0.001436, allocations: 71.83 kB / 1.054 GB, free: 7.613 MB / 0.8106 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3479/0.3493, allocations: 157.4 MB / 1.207 GB, free: 10.12 MB / 0.9669 GB Notification: Performance of NFInst.instantiate(Buildings.Fluid.BaseClasses.FlowModels.Validation.BasicFlowFunction_dp_DerivativeCheck2): time 0.002822/0.3522, allocations: 1.286 MB / 1.209 GB, free: 8.82 MB / 0.9669 GB Notification: Performance of NFInst.instExpressions: time 0.001151/0.3534, allocations: 0.6188 MB / 1.209 GB, free: 8.199 MB / 0.9669 GB Notification: Performance of NFInst.updateImplicitVariability: time 3.571e-05/0.3534, allocations: 4 kB / 1.209 GB, free: 8.195 MB / 0.9669 GB Notification: Performance of NFTyping.typeComponents: time 2.329e-05/0.3535, allocations: 0 / 1.209 GB, free: 8.195 MB / 0.9669 GB Notification: Performance of NFTyping.typeBindings: time 4.915e-05/0.3535, allocations: 7.922 kB / 1.209 GB, free: 8.188 MB / 0.9669 GB Notification: Performance of NFTyping.typeClassSections: time 0.0007547/0.3543, allocations: 143.4 kB / 1.209 GB, free: 8.047 MB / 0.9669 GB Notification: Performance of NFFlatten.flatten: time 9.142e-05/0.3544, allocations: 31.86 kB / 1.209 GB, free: 8.016 MB / 0.9669 GB Notification: Performance of NFFlatten.resolveConnections: time 5.786e-05/0.3545, allocations: 11.97 kB / 1.209 GB, free: 8.004 MB / 0.9669 GB Notification: Performance of NFEvalConstants.evaluate: time 2.813e-05/0.3545, allocations: 8 kB / 1.209 GB, free: 7.996 MB / 0.9669 GB Notification: Performance of NFSimplifyModel.simplify: time 7.338e-05/0.3546, allocations: 15.92 kB / 1.209 GB, free: 7.98 MB / 0.9669 GB Notification: Performance of NFPackage.collectConstants: time 1.576e-05/0.3546, allocations: 0 / 1.209 GB, free: 7.98 MB / 0.9669 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0005566/0.3552, allocations: 347.3 kB / 1.21 GB, free: 7.641 MB / 0.9669 GB Notification: Performance of NFScalarize.scalarize: time 1.624e-05/0.3552, allocations: 4 kB / 1.21 GB, free: 7.637 MB / 0.9669 GB Notification: Performance of NFVerifyModel.verify: time 2.968e-05/0.3552, allocations: 11.94 kB / 1.21 GB, free: 7.625 MB / 0.9669 GB Notification: Performance of NFConvertDAE.convert: time 0.0002843/0.3555, allocations: 155.9 kB / 1.21 GB, free: 7.473 MB / 0.9669 GB Notification: Performance of FrontEnd - DAE generated: time 5.39e-06/0.3555, allocations: 4 kB / 1.21 GB, free: 7.469 MB / 0.9669 GB Notification: Performance of FrontEnd: time 1.293e-06/0.3555, allocations: 0 / 1.21 GB, free: 7.469 MB / 0.9669 GB Notification: Performance of Transformations before backend: time 6.142e-06/0.3555, allocations: 4 kB / 1.21 GB, free: 7.465 MB / 0.9669 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.0004642/0.356, allocations: 367.3 kB / 1.21 GB, free: 7.055 MB / 0.9669 GB Notification: Performance of prepare preOptimizeDAE: time 4.778e-05/0.3561, allocations: 8.031 kB / 1.21 GB, free: 7.047 MB / 0.9669 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.986e-05/0.3561, allocations: 38.69 kB / 1.21 GB, free: 7 MB / 0.9669 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.588e-05/0.3562, allocations: 4.938 kB / 1.21 GB, free: 6.996 MB / 0.9669 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001199/0.3563, allocations: 168.3 kB / 1.21 GB, free: 6.793 MB / 0.9669 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.201e-05/0.3563, allocations: 4.375 kB / 1.21 GB, free: 6.789 MB / 0.9669 GB Notification: Performance of preOpt expandDerOperator (simulation): time 2.696e-05/0.3563, allocations: 4.375 kB / 1.21 GB, free: 6.785 MB / 0.9669 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001245/0.3565, allocations: 54.19 kB / 1.21 GB, free: 6.727 MB / 0.9669 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.369e-05/0.3565, allocations: 3.938 kB / 1.21 GB, free: 6.723 MB / 0.9669 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.054e-05/0.3565, allocations: 0 / 1.21 GB, free: 6.723 MB / 0.9669 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.3e-06/0.3565, allocations: 4 kB / 1.21 GB, free: 6.719 MB / 0.9669 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 5.31e-05/0.3566, allocations: 15.98 kB / 1.21 GB, free: 6.703 MB / 0.9669 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001855/0.3568, allocations: 169.6 kB / 1.211 GB, free: 6.488 MB / 0.9669 GB Notification: Performance of preOpt comSubExp (simulation): time 0.000109/0.3569, allocations: 66.58 kB / 1.211 GB, free: 6.414 MB / 0.9669 GB Notification: Performance of preOpt resolveLoops (simulation): time 4.298e-05/0.3569, allocations: 29 kB / 1.211 GB, free: 6.383 MB / 0.9669 GB Notification: Performance of preOpt evalFunc (simulation): time 2.043e-05/0.357, allocations: 7.984 kB / 1.211 GB, free: 6.375 MB / 0.9669 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.902e-05/0.357, allocations: 38.56 kB / 1.211 GB, free: 6.328 MB / 0.9669 GB Notification: Performance of pre-optimization done (n=7): time 1.142e-06/0.357, allocations: 0 / 1.211 GB, free: 6.328 MB / 0.9669 GB Notification: Performance of matching and sorting (n=11): time 0.001204/0.3582, allocations: 0.5837 MB / 1.211 GB, free: 5.652 MB / 0.9669 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.808e-05/0.3583, allocations: 55.41 kB / 1.211 GB, free: 5.586 MB / 0.9669 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 7.655e-05/0.3583, allocations: 97.86 kB / 1.212 GB, free: 5.48 MB / 0.9669 GB Notification: Performance of collectPreVariables (initialization): time 1.863e-05/0.3584, allocations: 25.7 kB / 1.212 GB, free: 5.449 MB / 0.9669 GB Notification: Performance of collectInitialEqns (initialization): time 4.012e-05/0.3584, allocations: 87.98 kB / 1.212 GB, free: 5.359 MB / 0.9669 GB Notification: Performance of collectInitialBindings (initialization): time 4.915e-05/0.3585, allocations: 39.45 kB / 1.212 GB, free: 5.32 MB / 0.9669 GB Notification: Performance of simplifyInitialFunctions (initialization): time 5.286e-05/0.3585, allocations: 29.7 kB / 1.212 GB, free: 5.285 MB / 0.9669 GB Notification: Performance of setup shared object (initialization): time 0.0001071/0.3586, allocations: 314.8 kB / 1.212 GB, free: 4.969 MB / 0.9669 GB Notification: Performance of preBalanceInitialSystem (initialization): time 4.606e-05/0.3587, allocations: 32.11 kB / 1.212 GB, free: 4.938 MB / 0.9669 GB Notification: Performance of partitionIndependentBlocks (initialization): time 3.627e-05/0.3587, allocations: 16 kB / 1.212 GB, free: 4.922 MB / 0.9669 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.000115/0.3589, allocations: 62.41 kB / 1.212 GB, free: 4.859 MB / 0.9669 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 9.02e-07/0.3589, allocations: 0 / 1.212 GB, free: 4.859 MB / 0.9669 GB Notification: Performance of matching and sorting (n=13) (initialization): time 0.0001498/0.359, allocations: 100.9 kB / 1.212 GB, free: 4.758 MB / 0.9669 GB Notification: Performance of prepare postOptimizeDAE: time 1.661e-05/0.359, allocations: 5.25 kB / 1.212 GB, free: 4.754 MB / 0.9669 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.36e-06/0.359, allocations: 0 / 1.212 GB, free: 4.754 MB / 0.9669 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.745e-05/0.3591, allocations: 0 / 1.212 GB, free: 4.754 MB / 0.9669 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001138/0.3592, allocations: 27.98 kB / 1.212 GB, free: 4.727 MB / 0.9669 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.596e-06/0.3592, allocations: 0 / 1.212 GB, free: 4.727 MB / 0.9669 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 3.251e-05/0.3592, allocations: 7.938 kB / 1.212 GB, free: 4.719 MB / 0.9669 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.172e-05/0.3593, allocations: 4 kB / 1.212 GB, free: 4.715 MB / 0.9669 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 1 * 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 (13): * Single equations (assignments): 13 * 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 8.361e-05/0.3594, allocations: 109.8 kB / 1.212 GB, free: 4.598 MB / 0.9669 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.86e-05/0.3594, allocations: 7.938 kB / 1.212 GB, free: 4.59 MB / 0.9669 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002039/0.3596, allocations: 109.6 kB / 1.212 GB, free: 4.473 MB / 0.9669 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.389e-06/0.3596, allocations: 3.984 kB / 1.212 GB, free: 4.469 MB / 0.9669 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.99e-06/0.3596, allocations: 0 / 1.212 GB, free: 4.469 MB / 0.9669 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.647e-06/0.3596, allocations: 0 / 1.212 GB, free: 4.469 MB / 0.9669 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0004212/0.36, allocations: 366.5 kB / 1.213 GB, free: 4.055 MB / 0.9669 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.913e-06/0.3601, allocations: 0 / 1.213 GB, free: 4.055 MB / 0.9669 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001058/0.3602, allocations: 19.98 kB / 1.213 GB, free: 4.035 MB / 0.9669 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.775e-06/0.3602, allocations: 0 / 1.213 GB, free: 4.035 MB / 0.9669 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.36e-05/0.3602, allocations: 8 kB / 1.213 GB, free: 4.027 MB / 0.9669 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 6.171e-06/0.3602, allocations: 4 kB / 1.213 GB, free: 4.023 MB / 0.9669 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.82e-07/0.3602, allocations: 4.031 kB / 1.213 GB, free: 4.02 MB / 0.9669 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002407/0.3605, allocations: 219.4 kB / 1.213 GB, free: 3.789 MB / 0.9669 GB Notification: Performance of postOpt removeConstants (simulation): time 3.923e-05/0.3605, allocations: 89.11 kB / 1.213 GB, free: 3.684 MB / 0.9669 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.596e-05/0.3605, allocations: 0 / 1.213 GB, free: 3.684 MB / 0.9669 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.444e-05/0.3606, allocations: 4 kB / 1.213 GB, free: 3.68 MB / 0.9669 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.732e-05/0.3607, allocations: 15.92 kB / 1.213 GB, free: 3.664 MB / 0.9669 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.964e-06/0.3607, allocations: 0 / 1.213 GB, free: 3.664 MB / 0.9669 GB Notification: Performance of sorting global known variables: time 3.226e-05/0.3607, allocations: 79.28 kB / 1.213 GB, free: 3.586 MB / 0.9669 GB Notification: Performance of sort global known variables: time 1.1e-07/0.3607, allocations: 0 / 1.213 GB, free: 3.586 MB / 0.9669 GB Notification: Performance of remove unused functions: time 0.0002696/0.361, allocations: 36 kB / 1.213 GB, free: 3.551 MB / 0.9669 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 2 (m_flow_comp,der_m_flow_comp) * 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 (11): * Single equations (assignments): 11 * 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.0006334/0.3616, allocations: 0.7827 MB / 1.214 GB, free: 2.742 MB / 0.9669 GB Notification: Performance of simCode: created initialization part: time 0.0001559/0.3618, allocations: 67.84 kB / 1.214 GB, free: 2.676 MB / 0.9669 GB Notification: Performance of simCode: created event and clocks part: time 2.665e-06/0.3618, allocations: 0 / 1.214 GB, free: 2.676 MB / 0.9669 GB Notification: Performance of simCode: created simulation system equations: time 4.718e-05/0.3618, allocations: 31.98 kB / 1.214 GB, free: 2.645 MB / 0.9669 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002191/0.3621, allocations: 4 kB / 1.214 GB, free: 2.641 MB / 0.9669 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001501/0.3636, allocations: 1.508 MB / 1.216 GB, free: 1.055 MB / 0.9669 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002547/0.3639, allocations: 0.6846 MB / 1.216 GB, free: 352 kB / 0.9669 GB Notification: Performance of simCode: alias equations: time 4.644e-05/0.3639, allocations: 11.98 kB / 1.216 GB, free: 340 kB / 0.9669 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.112e-05/0.364, allocations: 23.42 kB / 1.216 GB, free: 316 kB / 0.9669 GB Notification: Performance of SimCode: time 2.1e-07/0.364, allocations: 4 kB / 1.216 GB, free: 312 kB / 0.9669 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02043/0.3844, allocations: 2.087 MB / 1.218 GB, free: 14.4 MB / 0.9825 GB Notification: Performance of buildModelFMU: Generate platform static: time 8.217/8.602, allocations: 14.28 kB / 1.218 GB, free: 14.39 MB / 0.9825 GB (rm -f Buildings_latest_Buildings.Fluid.BaseClasses.FlowModels.Validation.BasicFlowFunction_dp_DerivativeCheck2.pipe ; mkfifo Buildings_latest_Buildings.Fluid.BaseClasses.FlowModels.Validation.BasicFlowFunction_dp_DerivativeCheck2.pipe ; head -c 1048576 < Buildings_latest_Buildings.Fluid.BaseClasses.FlowModels.Validation.BasicFlowFunction_dp_DerivativeCheck2.pipe >> ../files/Buildings_latest_Buildings.Fluid.BaseClasses.FlowModels.Validation.BasicFlowFunction_dp_DerivativeCheck2.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Buildings_latest_Buildings.Fluid.BaseClasses.FlowModels.Validation.BasicFlowFunction_dp_DerivativeCheck2_res.mat --tempDir=temp_Buildings_latest_Buildings_Fluid_BaseClasses_FlowModels_Validation_BasicFlowFunction_dp_DerivativeCheck2_fmu --startTime=-2 --stopTime=2 --timeout=50 --tolerance=1e-08 Buildings_latest_Buildings_Fluid_BaseClasses_FlowModels_Validation_BasicFlowFunction_dp_DerivativeCheck2.fmu > Buildings_latest_Buildings.Fluid.BaseClasses.FlowModels.Validation.BasicFlowFunction_dp_DerivativeCheck2.pipe 2>&1) diffSimulationResults("Buildings_latest_Buildings.Fluid.BaseClasses.FlowModels.Validation.BasicFlowFunction_dp_DerivativeCheck2_res.mat","/mnt/ReferenceFiles/Buildings/csv/master/Buildings_Fluid_BaseClasses_FlowModels_Validation_BasicFlowFunction_dp_DerivativeCheck2.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_latest_Buildings.Fluid.BaseClasses.FlowModels.Validation.BasicFlowFunction_dp_DerivativeCheck2.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) "Warning: Resultfile and Reference have different end time points! Reffile[501]=2.000000 File[1]=-2.000000 " Variables in the reference:time,m_flow,m_flow_comp,m_flow_turbulent,der(m_flow),der(m_flow_comp),err_m_flow,err_der_m_flow Variables in the result:der(der(dp)),der(der_m_flow),der(der_m_flow_comp),der(dp),der(m_flow),der(m_flow_comp),der_m_flow,der_m_flow_comp,dp,err_der_m_flow,err_m_flow,k,m_flow,m_flow_comp,m_flow_turbulent,time