Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_9_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 9.1.3-maint.9.1.x/package.mo", uses=false) Using package Buildings with version 9.1.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.1.3-maint.9.1.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.Fluid.BaseClasses.FlowModels.Validation.BasicFlowFunction_dp_DerivativeCheck2,fileNamePrefix="Buildings_9_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_9_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.00122/0.001221, allocations: 108 kB / 15.61 MB, free: 152 kB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001225/0.001225, allocations: 196.7 kB / 16.53 MB, free: 6.699 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.307/1.307, allocations: 222.9 MB / 240.2 MB, free: 4.41 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.1.3-maint.9.1.x/package.mo): time 2.253/2.253, allocations: 390.2 MB / 0.6647 GB, free: 464 kB / 0.5137 GB Notification: Performance of FrontEnd - loaded program: time 0.001235/0.001235, allocations: 64.05 kB / 0.8126 GB, free: 14.37 MB / 0.67 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.5528/0.554, allocations: 140.4 MB / 0.9497 GB, free: 9.301 MB / 0.7169 GB Notification: Performance of NFInst.instantiate(Buildings.Fluid.BaseClasses.FlowModels.Validation.BasicFlowFunction_dp_DerivativeCheck2): time 0.001907/0.556, allocations: 1.279 MB / 0.951 GB, free: 8.281 MB / 0.7169 GB Notification: Performance of NFInst.instExpressions: time 0.0007525/0.5567, allocations: 0.6125 MB / 0.9516 GB, free: 7.793 MB / 0.7169 GB Notification: Performance of NFInst.updateImplicitVariability: time 2.1e-05/0.5568, allocations: 0.9375 kB / 0.9516 GB, free: 7.793 MB / 0.7169 GB Notification: Performance of NFTyping.typeComponents: time 1.569e-05/0.5568, allocations: 3.938 kB / 0.9516 GB, free: 7.789 MB / 0.7169 GB Notification: Performance of NFTyping.typeBindings: time 2.916e-05/0.5568, allocations: 0.7188 kB / 0.9516 GB, free: 7.789 MB / 0.7169 GB Notification: Performance of NFTyping.typeClassSections: time 0.0004133/0.5573, allocations: 161.2 kB / 0.9517 GB, free: 7.676 MB / 0.7169 GB Notification: Performance of NFFlatten.flatten: time 5.06e-05/0.5573, allocations: 25.45 kB / 0.9518 GB, free: 7.664 MB / 0.7169 GB Notification: Performance of NFFlatten.resolveConnections: time 3.597e-05/0.5574, allocations: 1.625 kB / 0.9518 GB, free: 7.664 MB / 0.7169 GB Notification: Performance of NFEvalConstants.evaluate: time 1.992e-05/0.5574, allocations: 11.31 kB / 0.9518 GB, free: 7.66 MB / 0.7169 GB Notification: Performance of NFSimplifyModel.simplify: time 4.471e-05/0.5574, allocations: 15.52 kB / 0.9518 GB, free: 7.648 MB / 0.7169 GB Notification: Performance of NFPackage.collectConstants: time 1.2e-05/0.5574, allocations: 1.969 kB / 0.9518 GB, free: 7.648 MB / 0.7169 GB Notification: Performance of NFFlatten.collectFunctions: time 0.000405/0.5579, allocations: 346.2 kB / 0.9521 GB, free: 7.449 MB / 0.7169 GB Notification: Performance of NFScalarize.scalarize: time 1.078e-05/0.5579, allocations: 1.969 kB / 0.9521 GB, free: 7.449 MB / 0.7169 GB Notification: Performance of NFVerifyModel.verify: time 2.421e-05/0.5579, allocations: 21.66 kB / 0.9521 GB, free: 7.434 MB / 0.7169 GB Notification: Performance of NFConvertDAE.convert: time 0.000211/0.5581, allocations: 152.7 kB / 0.9523 GB, free: 7.348 MB / 0.7169 GB Notification: Performance of FrontEnd - DAE generated: time 4.058e-06/0.5581, allocations: 4 kB / 0.9523 GB, free: 7.344 MB / 0.7169 GB Notification: Performance of FrontEnd: time 1.082e-06/0.5581, allocations: 3.938 kB / 0.9523 GB, free: 7.34 MB / 0.7169 GB Notification: Performance of Transformations before backend: time 4.118e-06/0.5581, allocations: 1.375 kB / 0.9523 GB, free: 7.34 MB / 0.7169 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.0002815/0.5584, allocations: 369.3 kB / 0.9526 GB, free: 6.945 MB / 0.7169 GB Notification: Performance of prepare preOptimizeDAE: time 2.948e-05/0.5585, allocations: 9.906 kB / 0.9527 GB, free: 6.945 MB / 0.7169 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 2.292e-05/0.5585, allocations: 36.41 kB / 0.9527 GB, free: 6.902 MB / 0.7169 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.325e-05/0.5585, allocations: 3.812 kB / 0.9527 GB, free: 6.902 MB / 0.7169 GB Notification: Performance of preOpt evaluateParameters (simulation): time 5.243e-05/0.5586, allocations: 162.1 kB / 0.9528 GB, free: 6.707 MB / 0.7169 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 9.788e-06/0.5586, allocations: 1.969 kB / 0.9528 GB, free: 6.707 MB / 0.7169 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.788e-05/0.5586, allocations: 10.59 kB / 0.9529 GB, free: 6.699 MB / 0.7169 GB Notification: Performance of preOpt clockPartitioning (simulation): time 9.148e-05/0.5587, allocations: 52.64 kB / 0.9529 GB, free: 6.652 MB / 0.7169 GB Notification: Performance of preOpt findStateOrder (simulation): time 9.668e-06/0.5587, allocations: 5.188 kB / 0.9529 GB, free: 6.648 MB / 0.7169 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.035e-06/0.5587, allocations: 0 / 0.9529 GB, free: 6.648 MB / 0.7169 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.068e-06/0.5587, allocations: 1 kB / 0.9529 GB, free: 6.648 MB / 0.7169 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 4.36e-05/0.5588, allocations: 23.92 kB / 0.9529 GB, free: 6.637 MB / 0.7169 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.000105/0.5589, allocations: 165.8 kB / 0.9531 GB, free: 6.434 MB / 0.7169 GB Notification: Performance of preOpt comSubExp (simulation): time 8.176e-05/0.559, allocations: 58.84 kB / 0.9532 GB, free: 6.391 MB / 0.7169 GB Notification: Performance of preOpt resolveLoops (simulation): time 3.505e-05/0.559, allocations: 30.25 kB / 0.9532 GB, free: 6.371 MB / 0.7169 GB Notification: Performance of preOpt evalFunc (simulation): time 1.803e-05/0.5591, allocations: 5.344 kB / 0.9532 GB, free: 6.367 MB / 0.7169 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.299e-05/0.5591, allocations: 32.19 kB / 0.9532 GB, free: 6.328 MB / 0.7169 GB Notification: Performance of pre-optimization done (n=7): time 8.92e-07/0.5591, allocations: 0 / 0.9532 GB, free: 6.328 MB / 0.7169 GB Notification: Performance of matching and sorting (n=11): time 0.0008734/0.56, allocations: 0.5903 MB / 0.9538 GB, free: 5.777 MB / 0.7169 GB Notification: Performance of inlineWhenForInitialization (initialization): time 2.114e-05/0.56, allocations: 53.72 kB / 0.9538 GB, free: 5.715 MB / 0.7169 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 3.545e-05/0.56, allocations: 100.2 kB / 0.9539 GB, free: 5.609 MB / 0.7169 GB Notification: Performance of collectPreVariables (initialization): time 1.002e-05/0.56, allocations: 27.17 kB / 0.954 GB, free: 5.578 MB / 0.7169 GB Notification: Performance of collectInitialEqns (initialization): time 1.219e-05/0.5601, allocations: 84.08 kB / 0.954 GB, free: 5.492 MB / 0.7169 GB Notification: Performance of collectInitialBindings (initialization): time 2.814e-05/0.5601, allocations: 40.61 kB / 0.9541 GB, free: 5.457 MB / 0.7169 GB Notification: Performance of simplifyInitialFunctions (initialization): time 3.421e-05/0.5601, allocations: 26.47 kB / 0.9541 GB, free: 5.434 MB / 0.7169 GB Notification: Performance of setup shared object (initialization): time 3.871e-05/0.5602, allocations: 319.9 kB / 0.9544 GB, free: 5.113 MB / 0.7169 GB Notification: Performance of preBalanceInitialSystem (initialization): time 3.714e-05/0.5602, allocations: 19.88 kB / 0.9544 GB, free: 5.105 MB / 0.7169 GB Notification: Performance of partitionIndependentBlocks (initialization): time 3.506e-05/0.5603, allocations: 29.17 kB / 0.9545 GB, free: 5.09 MB / 0.7169 GB Notification: Performance of analyzeInitialSystem (initialization): time 7.813e-05/0.5603, allocations: 54.7 kB / 0.9545 GB, free: 5.062 MB / 0.7169 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.01e-07/0.5603, allocations: 0 / 0.9545 GB, free: 5.062 MB / 0.7169 GB Notification: Performance of matching and sorting (n=13) (initialization): time 0.0001263/0.5605, allocations: 107.9 kB / 0.9546 GB, free: 4.992 MB / 0.7169 GB Notification: Performance of prepare postOptimizeDAE: time 1.035e-05/0.5605, allocations: 5.25 kB / 0.9546 GB, free: 4.992 MB / 0.7169 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.847e-06/0.5605, allocations: 0 / 0.9546 GB, free: 4.992 MB / 0.7169 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.101e-05/0.5605, allocations: 4 kB / 0.9546 GB, free: 4.988 MB / 0.7169 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 9.331e-05/0.5606, allocations: 25.73 kB / 0.9546 GB, free: 4.98 MB / 0.7169 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.619e-06/0.5606, allocations: 1.406 kB / 0.9547 GB, free: 4.98 MB / 0.7169 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 2.372e-05/0.5606, allocations: 5.062 kB / 0.9547 GB, free: 4.977 MB / 0.7169 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.612e-06/0.5607, allocations: 2.656 kB / 0.9547 GB, free: 4.977 MB / 0.7169 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 4.635e-05/0.5607, allocations: 112.7 kB / 0.9548 GB, free: 4.859 MB / 0.7169 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.405e-05/0.5607, allocations: 10.84 kB / 0.9548 GB, free: 4.852 MB / 0.7169 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001593/0.5609, allocations: 106.4 kB / 0.9549 GB, free: 4.773 MB / 0.7169 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.006e-06/0.5609, allocations: 10.3 kB / 0.9549 GB, free: 4.766 MB / 0.7169 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.577e-06/0.5609, allocations: 0 / 0.9549 GB, free: 4.766 MB / 0.7169 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.936e-06/0.5609, allocations: 0 / 0.9549 GB, free: 4.766 MB / 0.7169 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002666/0.5612, allocations: 353.2 kB / 0.9552 GB, free: 4.414 MB / 0.7169 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.142e-06/0.5612, allocations: 0 / 0.9552 GB, free: 4.414 MB / 0.7169 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 9.614e-05/0.5613, allocations: 17.88 kB / 0.9552 GB, free: 4.414 MB / 0.7169 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.653e-06/0.5613, allocations: 0 / 0.9552 GB, free: 4.414 MB / 0.7169 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.237e-06/0.5613, allocations: 9.422 kB / 0.9553 GB, free: 4.406 MB / 0.7169 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.212e-06/0.5613, allocations: 1.531 kB / 0.9553 GB, free: 4.406 MB / 0.7169 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.21e-07/0.5613, allocations: 0 / 0.9553 GB, free: 4.406 MB / 0.7169 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001775/0.5615, allocations: 217.5 kB / 0.9555 GB, free: 4.23 MB / 0.7169 GB Notification: Performance of postOpt removeConstants (simulation): time 1.606e-05/0.5615, allocations: 86.33 kB / 0.9555 GB, free: 4.129 MB / 0.7169 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.258e-05/0.5616, allocations: 1.156 kB / 0.9555 GB, free: 4.129 MB / 0.7169 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 7.977e-05/0.5616, allocations: 6.266 kB / 0.9555 GB, free: 4.125 MB / 0.7169 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.535e-05/0.5617, allocations: 3.719 kB / 0.9556 GB, free: 4.125 MB / 0.7169 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.294e-06/0.5617, allocations: 6.531 kB / 0.9556 GB, free: 4.121 MB / 0.7169 GB Notification: Performance of sorting global known variables: time 1.635e-05/0.5617, allocations: 81.84 kB / 0.9556 GB, free: 4.043 MB / 0.7169 GB Notification: Performance of sort global known variables: time 1.1e-07/0.5617, allocations: 0 / 0.9556 GB, free: 4.043 MB / 0.7169 GB Notification: Performance of remove unused functions: time 0.0002438/0.5619, allocations: 44.23 kB / 0.9557 GB, free: 4.023 MB / 0.7169 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.0003719/0.5623, allocations: 0.7826 MB / 0.9564 GB, free: 3.305 MB / 0.7169 GB Notification: Performance of simCode: created initialization part: time 0.0001335/0.5625, allocations: 67.88 kB / 0.9565 GB, free: 3.277 MB / 0.7169 GB Notification: Performance of simCode: created event and clocks part: time 2.385e-06/0.5625, allocations: 15.88 kB / 0.9565 GB, free: 3.266 MB / 0.7169 GB Notification: Performance of simCode: created simulation system equations: time 3.944e-05/0.5625, allocations: 31.19 kB / 0.9566 GB, free: 3.254 MB / 0.7169 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002036/0.5627, allocations: 6.5 kB / 0.9566 GB, free: 3.25 MB / 0.7169 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0009847/0.5637, allocations: 1.502 MB / 0.958 GB, free: 1.859 MB / 0.7169 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 8.864e-05/0.5638, allocations: 0.6863 MB / 0.9587 GB, free: 1.156 MB / 0.7169 GB Notification: Performance of simCode: alias equations: time 3.932e-05/0.5639, allocations: 9.844 kB / 0.9587 GB, free: 1.152 MB / 0.7169 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.167e-05/0.5639, allocations: 22.95 kB / 0.9587 GB, free: 1.137 MB / 0.7169 GB Notification: Performance of SimCode: time 2.1e-07/0.5639, allocations: 0 / 0.9587 GB, free: 1.137 MB / 0.7169 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 2.708/3.271, allocations: 2.025 MB / 0.9607 GB, free: 112 kB / 0.7169 GB Notification: Performance of buildModelFMU: Generate platform static: time 8.148/11.42, allocations: 6.281 kB / 0.9607 GB, free: 108 kB / 0.7169 GB (rm -f Buildings_9_Buildings.Fluid.BaseClasses.FlowModels.Validation.BasicFlowFunction_dp_DerivativeCheck2.pipe ; mkfifo Buildings_9_Buildings.Fluid.BaseClasses.FlowModels.Validation.BasicFlowFunction_dp_DerivativeCheck2.pipe ; head -c 1048576 < Buildings_9_Buildings.Fluid.BaseClasses.FlowModels.Validation.BasicFlowFunction_dp_DerivativeCheck2.pipe >> ../files/Buildings_9_Buildings.Fluid.BaseClasses.FlowModels.Validation.BasicFlowFunction_dp_DerivativeCheck2.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Buildings_9_Buildings.Fluid.BaseClasses.FlowModels.Validation.BasicFlowFunction_dp_DerivativeCheck2_res.mat --tempDir=temp_Buildings_9_Buildings_Fluid_BaseClasses_FlowModels_Validation_BasicFlowFunction_dp_DerivativeCheck2_fmu --startTime=-2 --stopTime=2 --timeout=50 --tolerance=1e-08 Buildings_9_Buildings_Fluid_BaseClasses_FlowModels_Validation_BasicFlowFunction_dp_DerivativeCheck2.fmu > Buildings_9_Buildings.Fluid.BaseClasses.FlowModels.Validation.BasicFlowFunction_dp_DerivativeCheck2.pipe 2>&1) diffSimulationResults("Buildings_9_Buildings.Fluid.BaseClasses.FlowModels.Validation.BasicFlowFunction_dp_DerivativeCheck2_res.mat","/mnt/ReferenceFiles/Buildings/csv/maint_9.1.x/Buildings_Fluid_BaseClasses_FlowModels_Validation_BasicFlowFunction_dp_DerivativeCheck2.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_9_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