Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_9_Buildings.Fluid.BaseClasses.FlowModels.Validation.BasicFlowFunction_dp_DerivativeCheck.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_DerivativeCheck,fileNamePrefix="Buildings_9_Buildings_Fluid_BaseClasses_FlowModels_Validation_BasicFlowFunction_dp_DerivativeCheck",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Fluid.BaseClasses.FlowModels.Validation.BasicFlowFunction_dp_DerivativeCheck,fileNamePrefix="Buildings_9_Buildings_Fluid_BaseClasses_FlowModels_Validation_BasicFlowFunction_dp_DerivativeCheck",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.001276/0.001276, allocations: 103.4 kB / 15.33 MB, free: 0.5078 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.00143/0.00143, allocations: 194.7 kB / 16.26 MB, free: 6.625 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.363/1.363, allocations: 222.9 MB / 239.9 MB, free: 4.52 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.277/2.277, allocations: 390.2 MB / 0.6644 GB, free: 0.582 MB / 0.5137 GB Notification: Performance of FrontEnd - loaded program: time 0.001464/0.001464, allocations: 67.91 kB / 0.8122 GB, free: 14.69 MB / 0.67 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.5185/0.52, allocations: 140.4 MB / 0.9492 GB, free: 9.109 MB / 0.7169 GB Notification: Performance of NFInst.instantiate(Buildings.Fluid.BaseClasses.FlowModels.Validation.BasicFlowFunction_dp_DerivativeCheck): time 0.001839/0.5218, allocations: 1.331 MB / 0.9505 GB, free: 8.055 MB / 0.7169 GB Notification: Performance of NFInst.instExpressions: time 0.0006987/0.5225, allocations: 0.606 MB / 0.9511 GB, free: 7.574 MB / 0.7169 GB Notification: Performance of NFInst.updateImplicitVariability: time 1.633e-05/0.5226, allocations: 0 / 0.9511 GB, free: 7.574 MB / 0.7169 GB Notification: Performance of NFTyping.typeComponents: time 1.421e-05/0.5226, allocations: 3.984 kB / 0.9511 GB, free: 7.57 MB / 0.7169 GB Notification: Performance of NFTyping.typeBindings: time 3.851e-05/0.5226, allocations: 9.094 kB / 0.9511 GB, free: 7.562 MB / 0.7169 GB Notification: Performance of NFTyping.typeClassSections: time 0.0004042/0.523, allocations: 136.3 kB / 0.9513 GB, free: 7.477 MB / 0.7169 GB Notification: Performance of NFFlatten.flatten: time 4.077e-05/0.5231, allocations: 17.55 kB / 0.9513 GB, free: 7.469 MB / 0.7169 GB Notification: Performance of NFFlatten.resolveConnections: time 3.094e-05/0.5231, allocations: 1.594 kB / 0.9513 GB, free: 7.469 MB / 0.7169 GB Notification: Performance of NFEvalConstants.evaluate: time 2.912e-05/0.5232, allocations: 12.19 kB / 0.9513 GB, free: 7.461 MB / 0.7169 GB Notification: Performance of NFSimplifyModel.simplify: time 3.518e-05/0.5232, allocations: 10.94 kB / 0.9513 GB, free: 7.453 MB / 0.7169 GB Notification: Performance of NFPackage.collectConstants: time 9.077e-06/0.5232, allocations: 1.344 kB / 0.9513 GB, free: 7.453 MB / 0.7169 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0003617/0.5236, allocations: 342.3 kB / 0.9516 GB, free: 7.258 MB / 0.7169 GB Notification: Performance of NFScalarize.scalarize: time 9.368e-06/0.5236, allocations: 9.359 kB / 0.9516 GB, free: 7.25 MB / 0.7169 GB Notification: Performance of NFVerifyModel.verify: time 1.766e-05/0.5236, allocations: 10.75 kB / 0.9517 GB, free: 7.242 MB / 0.7169 GB Notification: Performance of NFConvertDAE.convert: time 0.0001899/0.5238, allocations: 150.4 kB / 0.9518 GB, free: 7.156 MB / 0.7169 GB Notification: Performance of FrontEnd - DAE generated: time 3.506e-06/0.5238, allocations: 1.156 kB / 0.9518 GB, free: 7.156 MB / 0.7169 GB Notification: Performance of FrontEnd: time 1.373e-06/0.5238, allocations: 0 / 0.9518 GB, free: 7.156 MB / 0.7169 GB Notification: Performance of Transformations before backend: time 4.108e-06/0.5238, allocations: 0 / 0.9518 GB, free: 7.156 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: 4 * Number of variables: 4 Notification: Performance of Generate backend data structure: time 0.0002647/0.5241, allocations: 355.5 kB / 0.9521 GB, free: 6.773 MB / 0.7169 GB Notification: Performance of prepare preOptimizeDAE: time 3.106e-05/0.5241, allocations: 10.22 kB / 0.9522 GB, free: 6.773 MB / 0.7169 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 1.978e-05/0.5242, allocations: 34.73 kB / 0.9522 GB, free: 6.73 MB / 0.7169 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.264e-05/0.5242, allocations: 7.406 kB / 0.9522 GB, free: 6.727 MB / 0.7169 GB Notification: Performance of preOpt evaluateParameters (simulation): time 5.253e-05/0.5242, allocations: 165.7 kB / 0.9523 GB, free: 6.527 MB / 0.7169 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 9.698e-06/0.5243, allocations: 4.375 kB / 0.9524 GB, free: 6.523 MB / 0.7169 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.654e-05/0.5243, allocations: 3.406 kB / 0.9524 GB, free: 6.523 MB / 0.7169 GB Notification: Performance of preOpt clockPartitioning (simulation): time 7.836e-05/0.5244, allocations: 43.78 kB / 0.9524 GB, free: 6.48 MB / 0.7169 GB Notification: Performance of preOpt findStateOrder (simulation): time 6.853e-06/0.5244, allocations: 7.875 kB / 0.9524 GB, free: 6.473 MB / 0.7169 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.044e-06/0.5244, allocations: 6.219 kB / 0.9524 GB, free: 6.469 MB / 0.7169 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.566e-06/0.5244, allocations: 0 / 0.9524 GB, free: 6.469 MB / 0.7169 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 3.304e-05/0.5244, allocations: 10.02 kB / 0.9524 GB, free: 6.465 MB / 0.7169 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 9.731e-05/0.5245, allocations: 166.3 kB / 0.9526 GB, free: 6.258 MB / 0.7169 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001429/0.5247, allocations: 39.75 kB / 0.9526 GB, free: 6.227 MB / 0.7169 GB Notification: Performance of preOpt resolveLoops (simulation): time 2.672e-05/0.5247, allocations: 19.95 kB / 0.9526 GB, free: 6.211 MB / 0.7169 GB Notification: Performance of preOpt evalFunc (simulation): time 1.401e-05/0.5247, allocations: 1.25 kB / 0.9526 GB, free: 6.211 MB / 0.7169 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.188e-05/0.5248, allocations: 35.62 kB / 0.9527 GB, free: 6.168 MB / 0.7169 GB Notification: Performance of pre-optimization done (n=4): time 9.92e-07/0.5248, allocations: 0 / 0.9527 GB, free: 6.168 MB / 0.7169 GB Notification: Performance of matching and sorting (n=6): time 0.0004634/0.5252, allocations: 320.6 kB / 0.953 GB, free: 5.859 MB / 0.7169 GB Notification: Performance of inlineWhenForInitialization (initialization): time 1.519e-05/0.5253, allocations: 51.41 kB / 0.953 GB, free: 5.797 MB / 0.7169 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 3.684e-05/0.5253, allocations: 98.12 kB / 0.9531 GB, free: 5.695 MB / 0.7169 GB Notification: Performance of collectPreVariables (initialization): time 7.514e-06/0.5253, allocations: 27.11 kB / 0.9531 GB, free: 5.664 MB / 0.7169 GB Notification: Performance of collectInitialEqns (initialization): time 1.18e-05/0.5253, allocations: 80.14 kB / 0.9532 GB, free: 5.582 MB / 0.7169 GB Notification: Performance of collectInitialBindings (initialization): time 2.135e-05/0.5254, allocations: 26.3 kB / 0.9532 GB, free: 5.559 MB / 0.7169 GB Notification: Performance of simplifyInitialFunctions (initialization): time 2.849e-05/0.5254, allocations: 18.38 kB / 0.9533 GB, free: 5.539 MB / 0.7169 GB Notification: Performance of setup shared object (initialization): time 3.169e-05/0.5254, allocations: 316.2 kB / 0.9536 GB, free: 5.223 MB / 0.7169 GB Notification: Performance of preBalanceInitialSystem (initialization): time 2.28e-05/0.5255, allocations: 14.52 kB / 0.9536 GB, free: 5.215 MB / 0.7169 GB Notification: Performance of partitionIndependentBlocks (initialization): time 1.95e-05/0.5255, allocations: 11.56 kB / 0.9536 GB, free: 5.211 MB / 0.7169 GB Notification: Performance of analyzeInitialSystem (initialization): time 4.575e-05/0.5255, allocations: 31.42 kB / 0.9536 GB, free: 5.191 MB / 0.7169 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.21e-07/0.5255, allocations: 0 / 0.9536 GB, free: 5.191 MB / 0.7169 GB Notification: Performance of matching and sorting (n=7) (initialization): time 7.739e-05/0.5256, allocations: 69.28 kB / 0.9537 GB, free: 5.141 MB / 0.7169 GB Notification: Performance of prepare postOptimizeDAE: time 1.01e-05/0.5256, allocations: 5.281 kB / 0.9537 GB, free: 5.141 MB / 0.7169 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.246e-06/0.5256, allocations: 192 / 0.9537 GB, free: 5.141 MB / 0.7169 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.049e-05/0.5256, allocations: 1.406 kB / 0.9537 GB, free: 5.141 MB / 0.7169 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 4.496e-05/0.5257, allocations: 12.98 kB / 0.9537 GB, free: 5.137 MB / 0.7169 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.559e-06/0.5257, allocations: 4.062 kB / 0.9537 GB, free: 5.133 MB / 0.7169 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 1.715e-05/0.5257, allocations: 8.891 kB / 0.9537 GB, free: 5.125 MB / 0.7169 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.82e-06/0.5257, allocations: 1.469 kB / 0.9537 GB, free: 5.125 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 (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 prepare postOptimizeDAE: time 3.667e-05/0.5258, allocations: 116.7 kB / 0.9538 GB, free: 5.004 MB / 0.7169 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.046e-05/0.5258, allocations: 5.562 kB / 0.9538 GB, free: 5 MB / 0.7169 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001089/0.5259, allocations: 79.52 kB / 0.9539 GB, free: 4.934 MB / 0.7169 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.513e-06/0.5259, allocations: 0 / 0.9539 GB, free: 4.934 MB / 0.7169 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.996e-06/0.5259, allocations: 0 / 0.9539 GB, free: 4.934 MB / 0.7169 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.294e-06/0.5259, allocations: 5.188 kB / 0.9539 GB, free: 4.93 MB / 0.7169 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001955/0.5261, allocations: 316.1 kB / 0.9542 GB, free: 4.59 MB / 0.7169 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.342e-06/0.5261, allocations: 3.938 kB / 0.9542 GB, free: 4.586 MB / 0.7169 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 5.49e-05/0.5262, allocations: 14.2 kB / 0.9542 GB, free: 4.582 MB / 0.7169 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.415e-06/0.5262, allocations: 1.656 kB / 0.9542 GB, free: 4.582 MB / 0.7169 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.462e-06/0.5262, allocations: 7.938 kB / 0.9542 GB, free: 4.574 MB / 0.7169 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.282e-06/0.5262, allocations: 1.406 kB / 0.9542 GB, free: 4.574 MB / 0.7169 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.313e-06/0.5262, allocations: 1.125 kB / 0.9542 GB, free: 4.574 MB / 0.7169 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001185/0.5264, allocations: 180.9 kB / 0.9544 GB, free: 4.406 MB / 0.7169 GB Notification: Performance of postOpt removeConstants (simulation): time 2.169e-05/0.5264, allocations: 84.53 kB / 0.9545 GB, free: 4.309 MB / 0.7169 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.164e-05/0.5264, allocations: 1.469 kB / 0.9545 GB, free: 4.309 MB / 0.7169 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 6.651e-05/0.5265, allocations: 1.594 kB / 0.9545 GB, free: 4.309 MB / 0.7169 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.215e-05/0.5265, allocations: 5.141 kB / 0.9545 GB, free: 4.305 MB / 0.7169 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.11e-06/0.5265, allocations: 6.906 kB / 0.9545 GB, free: 4.301 MB / 0.7169 GB Notification: Performance of sorting global known variables: time 1.607e-05/0.5265, allocations: 77.84 kB / 0.9546 GB, free: 4.227 MB / 0.7169 GB Notification: Performance of sort global known variables: time 1.01e-07/0.5265, allocations: 4.062 kB / 0.9546 GB, free: 4.223 MB / 0.7169 GB Notification: Performance of remove unused functions: time 0.0002235/0.5267, allocations: 18.84 kB / 0.9546 GB, free: 4.219 MB / 0.7169 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 2 * Number of states: 1 (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 (6): * Single equations (assignments): 6 * 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.0002895/0.527, allocations: 0.7402 MB / 0.9553 GB, free: 3.508 MB / 0.7169 GB Notification: Performance of simCode: created initialization part: time 8.671e-05/0.5271, allocations: 41.11 kB / 0.9554 GB, free: 3.488 MB / 0.7169 GB Notification: Performance of simCode: created event and clocks part: time 1.653e-06/0.5271, allocations: 4.062 kB / 0.9554 GB, free: 3.484 MB / 0.7169 GB Notification: Performance of simCode: created simulation system equations: time 2.292e-05/0.5272, allocations: 15 kB / 0.9554 GB, free: 3.48 MB / 0.7169 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002032/0.5274, allocations: 6.547 kB / 0.9554 GB, free: 3.477 MB / 0.7169 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0007505/0.5281, allocations: 1.32 MB / 0.9567 GB, free: 2.18 MB / 0.7169 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 7.397e-05/0.5282, allocations: 0.6842 MB / 0.9574 GB, free: 1.477 MB / 0.7169 GB Notification: Performance of simCode: alias equations: time 2.716e-05/0.5283, allocations: 3.75 kB / 0.9574 GB, free: 1.477 MB / 0.7169 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.457e-05/0.5283, allocations: 14.12 kB / 0.9574 GB, free: 1.465 MB / 0.7169 GB Notification: Performance of SimCode: time 2.1e-07/0.5283, allocations: 0 / 0.9574 GB, free: 1.465 MB / 0.7169 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.226/0.7543, allocations: 1.499 MB / 0.9588 GB, free: 0.7695 MB / 0.7169 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001536/0.7545, allocations: 242.3 kB / 0.9591 GB, free: 0.5156 MB / 0.7169 GB Notification: Performance of buildModelFMU: Generate platform static: time 1.785/2.54, allocations: 0 / 0.9591 GB, free: 0.5156 MB / 0.7169 GB (rm -f Buildings_9_Buildings.Fluid.BaseClasses.FlowModels.Validation.BasicFlowFunction_dp_DerivativeCheck.pipe ; mkfifo Buildings_9_Buildings.Fluid.BaseClasses.FlowModels.Validation.BasicFlowFunction_dp_DerivativeCheck.pipe ; head -c 1048576 < Buildings_9_Buildings.Fluid.BaseClasses.FlowModels.Validation.BasicFlowFunction_dp_DerivativeCheck.pipe >> ../files/Buildings_9_Buildings.Fluid.BaseClasses.FlowModels.Validation.BasicFlowFunction_dp_DerivativeCheck.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Buildings_9_Buildings.Fluid.BaseClasses.FlowModels.Validation.BasicFlowFunction_dp_DerivativeCheck_res.mat --tempDir=temp_Buildings_9_Buildings_Fluid_BaseClasses_FlowModels_Validation_BasicFlowFunction_dp_DerivativeCheck_fmu --startTime=-2 --stopTime=2 --timeout=50 --tolerance=1e-08 Buildings_9_Buildings_Fluid_BaseClasses_FlowModels_Validation_BasicFlowFunction_dp_DerivativeCheck.fmu > Buildings_9_Buildings.Fluid.BaseClasses.FlowModels.Validation.BasicFlowFunction_dp_DerivativeCheck.pipe 2>&1) diffSimulationResults("Buildings_9_Buildings.Fluid.BaseClasses.FlowModels.Validation.BasicFlowFunction_dp_DerivativeCheck_res.mat","/mnt/ReferenceFiles/Buildings/csv/maint_9.1.x/Buildings_Fluid_BaseClasses_FlowModels_Validation_BasicFlowFunction_dp_DerivativeCheck.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_9_Buildings.Fluid.BaseClasses.FlowModels.Validation.BasicFlowFunction_dp_DerivativeCheck.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 Variables in the result:der(dp),der(m_flow),der(m_flow_comp),dp,err,k,m_flow,m_flow_comp,m_flow_turbulent,time