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 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.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.007144/0.007144, allocations: 96.7 kB / 15.73 MB, free: 6.055 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.002137/0.002137, allocations: 198.1 kB / 16.68 MB, free: 5.977 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.218/1.218, 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 12.0.0-master/package.mo): time 2.431/2.431, allocations: 482.6 MB / 0.755 GB, free: 10.72 MB / 0.6075 GB Notification: Performance of FrontEnd - loaded program: time 0.001587/0.001587, allocations: 64.12 kB / 1.083 GB, free: 12.31 MB / 0.8419 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2505/0.2521, allocations: 162.3 MB / 1.242 GB, free: 9.898 MB / 0.9981 GB Notification: Performance of NFInst.instantiate(Buildings.Fluid.BaseClasses.FlowModels.Validation.BasicFlowFunction_dp_DerivativeCheck2): time 0.001847/0.254, allocations: 1.278 MB / 1.243 GB, free: 8.609 MB / 0.9981 GB Notification: Performance of NFInst.instExpressions: time 0.0008896/0.2549, allocations: 0.611 MB / 1.244 GB, free: 7.996 MB / 0.9981 GB Notification: Performance of NFInst.updateImplicitVariability: time 2.049e-05/0.2549, allocations: 4 kB / 1.244 GB, free: 7.992 MB / 0.9981 GB Notification: Performance of NFTyping.typeComponents: time 1.852e-05/0.2549, allocations: 7.922 kB / 1.244 GB, free: 7.984 MB / 0.9981 GB Notification: Performance of NFTyping.typeBindings: time 3.081e-05/0.2549, allocations: 4 kB / 1.244 GB, free: 7.98 MB / 0.9981 GB Notification: Performance of NFTyping.typeClassSections: time 0.0004394/0.2554, allocations: 150.6 kB / 1.244 GB, free: 7.836 MB / 0.9981 GB Notification: Performance of NFFlatten.flatten: time 5.321e-05/0.2555, allocations: 31.91 kB / 1.244 GB, free: 7.805 MB / 0.9981 GB Notification: Performance of NFFlatten.resolveConnections: time 3.711e-05/0.2555, allocations: 7.984 kB / 1.244 GB, free: 7.797 MB / 0.9981 GB Notification: Performance of NFEvalConstants.evaluate: time 1.702e-05/0.2555, allocations: 7.938 kB / 1.244 GB, free: 7.789 MB / 0.9981 GB Notification: Performance of NFSimplifyModel.simplify: time 4.877e-05/0.2556, allocations: 19.92 kB / 1.244 GB, free: 7.77 MB / 0.9981 GB Notification: Performance of NFPackage.collectConstants: time 9.237e-06/0.2556, allocations: 4 kB / 1.244 GB, free: 7.766 MB / 0.9981 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0004506/0.256, allocations: 347.3 kB / 1.244 GB, free: 7.426 MB / 0.9981 GB Notification: Performance of NFScalarize.scalarize: time 8.937e-06/0.2561, allocations: 0 / 1.244 GB, free: 7.426 MB / 0.9981 GB Notification: Performance of NFVerifyModel.verify: time 2.558e-05/0.2561, allocations: 19.92 kB / 1.244 GB, free: 7.406 MB / 0.9981 GB Notification: Performance of NFConvertDAE.convert: time 0.0002197/0.2563, allocations: 147.5 kB / 1.244 GB, free: 7.262 MB / 0.9981 GB Notification: Performance of FrontEnd - DAE generated: time 2.565e-06/0.2563, allocations: 0 / 1.244 GB, free: 7.262 MB / 0.9981 GB Notification: Performance of FrontEnd: time 1.012e-06/0.2563, allocations: 0 / 1.244 GB, free: 7.262 MB / 0.9981 GB Notification: Performance of Transformations before backend: time 6.422e-06/0.2563, allocations: 0 / 1.244 GB, free: 7.262 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.0003644/0.2567, allocations: 375 kB / 1.245 GB, free: 6.844 MB / 0.9981 GB Notification: Performance of prepare preOptimizeDAE: time 3.134e-05/0.2567, allocations: 12.03 kB / 1.245 GB, free: 6.832 MB / 0.9981 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 2.902e-05/0.2568, allocations: 34.75 kB / 1.245 GB, free: 6.789 MB / 0.9981 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.427e-05/0.2568, allocations: 8.938 kB / 1.245 GB, free: 6.781 MB / 0.9981 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001031/0.2569, allocations: 164.4 kB / 1.245 GB, free: 6.582 MB / 0.9981 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 8.526e-06/0.2569, allocations: 4.312 kB / 1.245 GB, free: 6.578 MB / 0.9981 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.884e-05/0.2569, allocations: 8.328 kB / 1.245 GB, free: 6.57 MB / 0.9981 GB Notification: Performance of preOpt clockPartitioning (simulation): time 9.645e-05/0.257, allocations: 50.25 kB / 1.245 GB, free: 6.516 MB / 0.9981 GB Notification: Performance of preOpt findStateOrder (simulation): time 9.668e-06/0.2571, allocations: 3.938 kB / 1.245 GB, free: 6.512 MB / 0.9981 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.214e-06/0.2571, allocations: 0 / 1.245 GB, free: 6.512 MB / 0.9981 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.799e-06/0.2571, allocations: 0 / 1.245 GB, free: 6.512 MB / 0.9981 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 4.478e-05/0.2571, allocations: 23.92 kB / 1.245 GB, free: 6.488 MB / 0.9981 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001532/0.2573, allocations: 173.7 kB / 1.245 GB, free: 6.27 MB / 0.9981 GB Notification: Performance of preOpt comSubExp (simulation): time 9.03e-05/0.2574, allocations: 58.55 kB / 1.245 GB, free: 6.203 MB / 0.9981 GB Notification: Performance of preOpt resolveLoops (simulation): time 3.62e-05/0.2574, allocations: 28.86 kB / 1.245 GB, free: 6.172 MB / 0.9981 GB Notification: Performance of preOpt evalFunc (simulation): time 1.637e-05/0.2574, allocations: 7.922 kB / 1.245 GB, free: 6.164 MB / 0.9981 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.237e-05/0.2575, allocations: 30.56 kB / 1.245 GB, free: 6.125 MB / 0.9981 GB Notification: Performance of pre-optimization done (n=7): time 3.928e-06/0.2575, allocations: 4 kB / 1.245 GB, free: 6.121 MB / 0.9981 GB Notification: Performance of matching and sorting (n=11): time 0.00094/0.2584, allocations: 0.5955 MB / 1.246 GB, free: 5.434 MB / 0.9981 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.407e-05/0.2585, allocations: 55.41 kB / 1.246 GB, free: 5.367 MB / 0.9981 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 5.757e-05/0.2585, allocations: 93.86 kB / 1.246 GB, free: 5.266 MB / 0.9981 GB Notification: Performance of collectPreVariables (initialization): time 1.665e-05/0.2586, allocations: 33.83 kB / 1.246 GB, free: 5.227 MB / 0.9981 GB Notification: Performance of collectInitialEqns (initialization): time 2.889e-05/0.2586, allocations: 80.14 kB / 1.246 GB, free: 5.145 MB / 0.9981 GB Notification: Performance of collectInitialBindings (initialization): time 4.048e-05/0.2586, allocations: 39.69 kB / 1.246 GB, free: 5.105 MB / 0.9981 GB Notification: Performance of simplifyInitialFunctions (initialization): time 3.8e-05/0.2587, allocations: 25.7 kB / 1.246 GB, free: 5.074 MB / 0.9981 GB Notification: Performance of setup shared object (initialization): time 0.0001216/0.2588, allocations: 314.8 kB / 1.247 GB, free: 4.758 MB / 0.9981 GB Notification: Performance of preBalanceInitialSystem (initialization): time 3.774e-05/0.2588, allocations: 23.98 kB / 1.247 GB, free: 4.734 MB / 0.9981 GB Notification: Performance of partitionIndependentBlocks (initialization): time 3.404e-05/0.2589, allocations: 24 kB / 1.247 GB, free: 4.711 MB / 0.9981 GB Notification: Performance of analyzeInitialSystem (initialization): time 8.177e-05/0.259, allocations: 56.84 kB / 1.247 GB, free: 4.652 MB / 0.9981 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.91e-07/0.259, allocations: 4 kB / 1.247 GB, free: 4.648 MB / 0.9981 GB Notification: Performance of matching and sorting (n=13) (initialization): time 0.0001313/0.2591, allocations: 97.52 kB / 1.247 GB, free: 4.547 MB / 0.9981 GB Notification: Performance of prepare postOptimizeDAE: time 1.124e-05/0.2591, allocations: 8 kB / 1.247 GB, free: 4.539 MB / 0.9981 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.936e-06/0.2591, allocations: 0 / 1.247 GB, free: 4.539 MB / 0.9981 GB Notification: Performance of postOpt tearingSystem (initialization): time 8.636e-06/0.2591, allocations: 0 / 1.247 GB, free: 4.539 MB / 0.9981 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 8.376e-05/0.2592, allocations: 19.98 kB / 1.247 GB, free: 4.52 MB / 0.9981 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.941e-06/0.2592, allocations: 4 kB / 1.247 GB, free: 4.516 MB / 0.9981 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 2.1e-05/0.2593, allocations: 4 kB / 1.247 GB, free: 4.512 MB / 0.9981 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.18e-06/0.2593, allocations: 0 / 1.247 GB, free: 4.512 MB / 0.9981 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 7.343e-05/0.2594, allocations: 121.8 kB / 1.247 GB, free: 4.383 MB / 0.9981 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.475e-05/0.2594, allocations: 7.938 kB / 1.247 GB, free: 4.375 MB / 0.9981 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001659/0.2595, allocations: 109.7 kB / 1.247 GB, free: 4.258 MB / 0.9981 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.018e-06/0.2596, allocations: 7.938 kB / 1.247 GB, free: 4.25 MB / 0.9981 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.615e-06/0.2596, allocations: 0 / 1.247 GB, free: 4.25 MB / 0.9981 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.067e-06/0.2596, allocations: 3.984 kB / 1.247 GB, free: 4.246 MB / 0.9981 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003439/0.2599, allocations: 362.3 kB / 1.247 GB, free: 3.836 MB / 0.9981 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.052e-06/0.2599, allocations: 0 / 1.247 GB, free: 3.836 MB / 0.9981 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 9.005e-05/0.26, allocations: 23.98 kB / 1.247 GB, free: 3.812 MB / 0.9981 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.422e-06/0.26, allocations: 0 / 1.247 GB, free: 3.812 MB / 0.9981 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.355e-06/0.2601, allocations: 8 kB / 1.247 GB, free: 3.805 MB / 0.9981 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.815e-06/0.2601, allocations: 4 kB / 1.247 GB, free: 3.801 MB / 0.9981 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.81e-07/0.2601, allocations: 0 / 1.247 GB, free: 3.801 MB / 0.9981 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002151/0.2603, allocations: 219.3 kB / 1.248 GB, free: 3.57 MB / 0.9981 GB Notification: Performance of postOpt removeConstants (simulation): time 3.735e-05/0.2603, allocations: 81.14 kB / 1.248 GB, free: 3.473 MB / 0.9981 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.608e-05/0.2603, allocations: 4 kB / 1.248 GB, free: 3.469 MB / 0.9981 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 7.074e-05/0.2604, allocations: 0 / 1.248 GB, free: 3.469 MB / 0.9981 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.584e-05/0.2604, allocations: 8.047 kB / 1.248 GB, free: 3.461 MB / 0.9981 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.008e-05/0.2605, allocations: 12 kB / 1.248 GB, free: 3.449 MB / 0.9981 GB Notification: Performance of sorting global known variables: time 3.133e-05/0.2605, allocations: 79.22 kB / 1.248 GB, free: 3.371 MB / 0.9981 GB Notification: Performance of sort global known variables: time 1.21e-07/0.2605, allocations: 4 kB / 1.248 GB, free: 3.367 MB / 0.9981 GB Notification: Performance of remove unused functions: time 0.0002199/0.2607, allocations: 35.88 kB / 1.248 GB, free: 3.332 MB / 0.9981 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.0005258/0.2613, allocations: 0.7832 MB / 1.249 GB, free: 2.523 MB / 0.9981 GB Notification: Performance of simCode: created initialization part: time 0.0001218/0.2614, allocations: 71.7 kB / 1.249 GB, free: 2.457 MB / 0.9981 GB Notification: Performance of simCode: created event and clocks part: time 1.934e-06/0.2614, allocations: 0 / 1.249 GB, free: 2.457 MB / 0.9981 GB Notification: Performance of simCode: created simulation system equations: time 4.356e-05/0.2614, allocations: 31.92 kB / 1.249 GB, free: 2.426 MB / 0.9981 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001811/0.2616, allocations: 8.219 kB / 1.249 GB, free: 2.418 MB / 0.9981 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001256/0.2629, allocations: 1.5 MB / 1.25 GB, free: 0.8398 MB / 0.9981 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002533/0.2631, allocations: 0.6846 MB / 1.251 GB, free: 132 kB / 0.9981 GB Notification: Performance of simCode: alias equations: time 3.826e-05/0.2632, allocations: 8 kB / 1.251 GB, free: 124 kB / 0.9981 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.002e-05/0.2632, allocations: 19.42 kB / 1.251 GB, free: 108 kB / 0.9981 GB Notification: Performance of SimCode: time 1.9e-07/0.2632, allocations: 0 / 1.251 GB, free: 108 kB / 0.9981 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 4.894/5.157, allocations: 2.063 MB / 1.253 GB, free: 14.38 MB / 0.9981 GB Notification: Performance of buildModelFMU: Generate platform static: time 19.08/24.24, allocations: 8.969 kB / 1.253 GB, free: 14.38 MB / 0.9981 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=400 --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[1590]=-0.353000 " Variables in the reference:time,m_flow,m_flow_comp,m_flow_turbulent,der(m_flow),der(m_flow_comp) 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