Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_11_Buildings.Fluid.BaseClasses.FlowModels.Validation.BasicFlowFunction_m_flow_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 11.1.0-maint.11.x/package.mo", uses=false) Using package Buildings with version 11.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.1.0-maint.11.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_m_flow_DerivativeCheck,fileNamePrefix="Buildings_11_Buildings_Fluid_BaseClasses_FlowModels_Validation_BasicFlowFunction_m_flow_DerivativeCheck",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Fluid.BaseClasses.FlowModels.Validation.BasicFlowFunction_m_flow_DerivativeCheck,fileNamePrefix="Buildings_11_Buildings_Fluid_BaseClasses_FlowModels_Validation_BasicFlowFunction_m_flow_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.004503/0.004503, allocations: 98.83 kB / 15.73 MB, free: 6.031 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.001304/0.001304, allocations: 194.1 kB / 16.67 MB, free: 5.953 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.209/1.209, allocations: 222.9 MB / 240.4 MB, free: 15.09 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.1.0-maint.11.x/package.mo): time 2.334/2.334, allocations: 469.8 MB / 0.7425 GB, free: 3.32 MB / 0.6075 GB Notification: Performance of FrontEnd - loaded program: time 0.001708/0.001708, allocations: 71.88 kB / 1.065 GB, free: 14.09 MB / 0.8419 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.5729/0.5746, allocations: 159.1 MB / 1.22 GB, free: 2.066 MB / 0.9356 GB Notification: Performance of NFInst.instantiate(Buildings.Fluid.BaseClasses.FlowModels.Validation.BasicFlowFunction_m_flow_DerivativeCheck): time 0.002094/0.5767, allocations: 1.291 MB / 1.221 GB, free: 0.7695 MB / 0.9356 GB Notification: Performance of NFInst.instExpressions: time 0.0009361/0.5777, allocations: 0.6111 MB / 1.222 GB, free: 160 kB / 0.9356 GB Notification: Performance of NFInst.updateImplicitVariability: time 2.509e-05/0.5777, allocations: 0 / 1.222 GB, free: 160 kB / 0.9356 GB Notification: Performance of NFTyping.typeComponents: time 1.609e-05/0.5777, allocations: 3.984 kB / 1.222 GB, free: 156 kB / 0.9356 GB Notification: Performance of NFTyping.typeBindings: time 3.21e-05/0.5778, allocations: 3.938 kB / 1.222 GB, free: 152 kB / 0.9356 GB Notification: Performance of NFTyping.typeClassSections: time 0.0004836/0.5783, allocations: 149.4 kB / 1.222 GB, free: 4 kB / 0.9356 GB Notification: Performance of NFFlatten.flatten: time 7.242e-05/0.5783, allocations: 20.03 kB / 1.222 GB, free: 15.98 MB / 0.9512 GB Notification: Performance of NFFlatten.resolveConnections: time 2.801e-05/0.5784, allocations: 0 / 1.222 GB, free: 15.98 MB / 0.9512 GB Notification: Performance of NFEvalConstants.evaluate: time 3.024e-05/0.5784, allocations: 11.83 kB / 1.222 GB, free: 15.97 MB / 0.9512 GB Notification: Performance of NFSimplifyModel.simplify: time 3.95e-05/0.5785, allocations: 8 kB / 1.222 GB, free: 15.96 MB / 0.9512 GB Notification: Performance of NFPackage.collectConstants: time 1.232e-05/0.5785, allocations: 4 kB / 1.222 GB, free: 15.96 MB / 0.9512 GB Notification: Performance of NFFlatten.collectFunctions: time 0.000489/0.579, allocations: 343.3 kB / 1.223 GB, free: 15.62 MB / 0.9512 GB Notification: Performance of NFScalarize.scalarize: time 1.556e-05/0.579, allocations: 11.92 kB / 1.223 GB, free: 15.61 MB / 0.9512 GB Notification: Performance of NFVerifyModel.verify: time 2.021e-05/0.579, allocations: 4 kB / 1.223 GB, free: 15.61 MB / 0.9512 GB Notification: Performance of NFConvertDAE.convert: time 0.0002465/0.5793, allocations: 151.2 kB / 1.223 GB, free: 15.46 MB / 0.9512 GB Notification: Performance of FrontEnd - DAE generated: time 3.176e-06/0.5793, allocations: 0 / 1.223 GB, free: 15.46 MB / 0.9512 GB Notification: Performance of FrontEnd: time 1.112e-06/0.5793, allocations: 0 / 1.223 GB, free: 15.46 MB / 0.9512 GB Notification: Performance of Transformations before backend: time 4.479e-06/0.5793, allocations: 0 / 1.223 GB, free: 15.46 MB / 0.9512 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.0004089/0.5797, allocations: 367 kB / 1.223 GB, free: 15.05 MB / 0.9512 GB Notification: Performance of prepare preOptimizeDAE: time 3.146e-05/0.5797, allocations: 12.62 kB / 1.223 GB, free: 15.04 MB / 0.9512 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.086e-05/0.5798, allocations: 30.75 kB / 1.223 GB, free: 15 MB / 0.9512 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.059e-05/0.5798, allocations: 4.938 kB / 1.223 GB, free: 15 MB / 0.9512 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000125/0.5799, allocations: 168.3 kB / 1.223 GB, free: 14.8 MB / 0.9512 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 8.566e-06/0.5799, allocations: 384 / 1.223 GB, free: 14.8 MB / 0.9512 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.945e-05/0.58, allocations: 12.3 kB / 1.223 GB, free: 14.79 MB / 0.9512 GB Notification: Performance of preOpt clockPartitioning (simulation): time 9.29e-05/0.5801, allocations: 38.27 kB / 1.223 GB, free: 14.74 MB / 0.9512 GB Notification: Performance of preOpt findStateOrder (simulation): time 8.847e-06/0.5801, allocations: 3.938 kB / 1.223 GB, free: 14.74 MB / 0.9512 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.783e-06/0.5801, allocations: 0 / 1.223 GB, free: 14.74 MB / 0.9512 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.651e-06/0.5801, allocations: 3.984 kB / 1.223 GB, free: 14.73 MB / 0.9512 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 3.104e-05/0.5801, allocations: 11.94 kB / 1.223 GB, free: 14.72 MB / 0.9512 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001735/0.5803, allocations: 165.6 kB / 1.223 GB, free: 14.51 MB / 0.9512 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001712/0.5805, allocations: 46.53 kB / 1.224 GB, free: 14.46 MB / 0.9512 GB Notification: Performance of preOpt resolveLoops (simulation): time 3.106e-05/0.5805, allocations: 16.86 kB / 1.224 GB, free: 14.44 MB / 0.9512 GB Notification: Performance of preOpt evalFunc (simulation): time 1.737e-05/0.5806, allocations: 4.078 kB / 1.224 GB, free: 14.43 MB / 0.9512 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.735e-05/0.5806, allocations: 38.56 kB / 1.224 GB, free: 14.39 MB / 0.9512 GB Notification: Performance of pre-optimization done (n=4): time 8.81e-07/0.5806, allocations: 0 / 1.224 GB, free: 14.39 MB / 0.9512 GB Notification: Performance of matching and sorting (n=6): time 0.0005614/0.5812, allocations: 302.3 kB / 1.224 GB, free: 14.04 MB / 0.9512 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.387e-05/0.5812, allocations: 51.41 kB / 1.224 GB, free: 13.98 MB / 0.9512 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 8.112e-05/0.5813, allocations: 101.8 kB / 1.224 GB, free: 13.87 MB / 0.9512 GB Notification: Performance of collectPreVariables (initialization): time 1.636e-05/0.5813, allocations: 25.7 kB / 1.224 GB, free: 13.84 MB / 0.9512 GB Notification: Performance of collectInitialEqns (initialization): time 3.56e-05/0.5814, allocations: 80.14 kB / 1.224 GB, free: 13.75 MB / 0.9512 GB Notification: Performance of collectInitialBindings (initialization): time 3.053e-05/0.5814, allocations: 23.8 kB / 1.224 GB, free: 13.73 MB / 0.9512 GB Notification: Performance of simplifyInitialFunctions (initialization): time 3.788e-05/0.5814, allocations: 29.69 kB / 1.224 GB, free: 13.7 MB / 0.9512 GB Notification: Performance of setup shared object (initialization): time 0.0001463/0.5816, allocations: 314.8 kB / 1.224 GB, free: 13.38 MB / 0.9512 GB Notification: Performance of preBalanceInitialSystem (initialization): time 2.257e-05/0.5816, allocations: 8 kB / 1.224 GB, free: 13.37 MB / 0.9512 GB Notification: Performance of partitionIndependentBlocks (initialization): time 2.298e-05/0.5816, allocations: 15.98 kB / 1.224 GB, free: 13.36 MB / 0.9512 GB Notification: Performance of analyzeInitialSystem (initialization): time 5.595e-05/0.5817, allocations: 32.8 kB / 1.225 GB, free: 13.32 MB / 0.9512 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.91e-07/0.5817, allocations: 0 / 1.225 GB, free: 13.32 MB / 0.9512 GB Notification: Performance of matching and sorting (n=7) (initialization): time 9.722e-05/0.5818, allocations: 69.73 kB / 1.225 GB, free: 13.25 MB / 0.9512 GB Notification: Performance of prepare postOptimizeDAE: time 1.08e-05/0.5818, allocations: 8 kB / 1.225 GB, free: 13.24 MB / 0.9512 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.316e-06/0.5818, allocations: 80 / 1.225 GB, free: 13.24 MB / 0.9512 GB Notification: Performance of postOpt tearingSystem (initialization): time 9.699e-06/0.5819, allocations: 4 kB / 1.225 GB, free: 13.23 MB / 0.9512 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 4.756e-05/0.5819, allocations: 8.062 kB / 1.225 GB, free: 13.23 MB / 0.9512 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.837e-06/0.5819, allocations: 15.92 kB / 1.225 GB, free: 13.21 MB / 0.9512 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 1.462e-05/0.5819, allocations: 0 / 1.225 GB, free: 13.21 MB / 0.9512 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.258e-06/0.582, allocations: 0 / 1.225 GB, free: 13.21 MB / 0.9512 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 8.921e-05/0.582, allocations: 121.8 kB / 1.225 GB, free: 13.08 MB / 0.9512 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.29e-05/0.5821, allocations: 3.938 kB / 1.225 GB, free: 13.08 MB / 0.9512 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.000127/0.5822, allocations: 65.66 kB / 1.225 GB, free: 13 MB / 0.9512 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.693e-06/0.5822, allocations: 8 kB / 1.225 GB, free: 12.99 MB / 0.9512 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.046e-06/0.5822, allocations: 0 / 1.225 GB, free: 12.99 MB / 0.9512 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.394e-06/0.5822, allocations: 0 / 1.225 GB, free: 12.99 MB / 0.9512 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003235/0.5825, allocations: 319.3 kB / 1.225 GB, free: 12.62 MB / 0.9512 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.242e-06/0.5826, allocations: 0 / 1.225 GB, free: 12.62 MB / 0.9512 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 5.586e-05/0.5826, allocations: 12 kB / 1.225 GB, free: 12.61 MB / 0.9512 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.813e-06/0.5826, allocations: 0 / 1.225 GB, free: 12.61 MB / 0.9512 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.819e-06/0.5826, allocations: 4 kB / 1.225 GB, free: 12.61 MB / 0.9512 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.005e-06/0.5826, allocations: 4 kB / 1.225 GB, free: 12.6 MB / 0.9512 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.354e-06/0.5827, allocations: 0 / 1.225 GB, free: 12.6 MB / 0.9512 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001791/0.5828, allocations: 192.2 kB / 1.225 GB, free: 12.39 MB / 0.9512 GB Notification: Performance of postOpt removeConstants (simulation): time 4.985e-05/0.5829, allocations: 85.12 kB / 1.225 GB, free: 12.29 MB / 0.9512 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.098e-05/0.5829, allocations: 0 / 1.225 GB, free: 12.29 MB / 0.9512 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 6.143e-05/0.583, allocations: 0 / 1.225 GB, free: 12.29 MB / 0.9512 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.334e-05/0.583, allocations: 4.516 kB / 1.225 GB, free: 12.29 MB / 0.9512 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.035e-05/0.583, allocations: 4 kB / 1.225 GB, free: 12.29 MB / 0.9512 GB Notification: Performance of sorting global known variables: time 4.429e-05/0.5831, allocations: 87.33 kB / 1.225 GB, free: 12.2 MB / 0.9512 GB Notification: Performance of sort global known variables: time 1e-07/0.5831, allocations: 0 / 1.225 GB, free: 12.2 MB / 0.9512 GB Notification: Performance of remove unused functions: time 0.0002189/0.5833, allocations: 23.92 kB / 1.226 GB, free: 12.18 MB / 0.9512 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 2 * Number of states: 1 (dp_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.0005173/0.5838, allocations: 0.745 MB / 1.226 GB, free: 11.4 MB / 0.9512 GB Notification: Performance of simCode: created initialization part: time 8.932e-05/0.5839, allocations: 36 kB / 1.226 GB, free: 11.37 MB / 0.9512 GB Notification: Performance of simCode: created event and clocks part: time 1.874e-06/0.5839, allocations: 0 / 1.226 GB, free: 11.37 MB / 0.9512 GB Notification: Performance of simCode: created simulation system equations: time 2.825e-05/0.584, allocations: 19.98 kB / 1.226 GB, free: 11.35 MB / 0.9512 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002158/0.5842, allocations: 0 / 1.226 GB, free: 11.35 MB / 0.9512 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001149/0.5853, allocations: 1.322 MB / 1.228 GB, free: 9.941 MB / 0.9512 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002877/0.5856, allocations: 0.6846 MB / 1.228 GB, free: 9.23 MB / 0.9512 GB Notification: Performance of simCode: alias equations: time 2.901e-05/0.5857, allocations: 11.94 kB / 1.228 GB, free: 9.219 MB / 0.9512 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.693e-05/0.5857, allocations: 11.44 kB / 1.228 GB, free: 9.207 MB / 0.9512 GB Notification: Performance of SimCode: time 2e-07/0.5857, allocations: 0 / 1.228 GB, free: 9.207 MB / 0.9512 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 4.645/5.231, allocations: 1.636 MB / 1.23 GB, free: 7.75 MB / 0.9512 GB Notification: Performance of buildModelFMU: Generate platform static: time 11.87/17.1, allocations: 10.64 kB / 1.23 GB, free: 7.746 MB / 0.9512 GB (rm -f Buildings_11_Buildings.Fluid.BaseClasses.FlowModels.Validation.BasicFlowFunction_m_flow_DerivativeCheck.pipe ; mkfifo Buildings_11_Buildings.Fluid.BaseClasses.FlowModels.Validation.BasicFlowFunction_m_flow_DerivativeCheck.pipe ; head -c 1048576 < Buildings_11_Buildings.Fluid.BaseClasses.FlowModels.Validation.BasicFlowFunction_m_flow_DerivativeCheck.pipe >> ../files/Buildings_11_Buildings.Fluid.BaseClasses.FlowModels.Validation.BasicFlowFunction_m_flow_DerivativeCheck.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Buildings_11_Buildings.Fluid.BaseClasses.FlowModels.Validation.BasicFlowFunction_m_flow_DerivativeCheck_res.mat --tempDir=temp_Buildings_11_Buildings_Fluid_BaseClasses_FlowModels_Validation_BasicFlowFunction_m_flow_DerivativeCheck_fmu --startTime=-2 --stopTime=2 --timeout=400 --tolerance=1e-08 Buildings_11_Buildings_Fluid_BaseClasses_FlowModels_Validation_BasicFlowFunction_m_flow_DerivativeCheck.fmu > Buildings_11_Buildings.Fluid.BaseClasses.FlowModels.Validation.BasicFlowFunction_m_flow_DerivativeCheck.pipe 2>&1) diffSimulationResults("Buildings_11_Buildings.Fluid.BaseClasses.FlowModels.Validation.BasicFlowFunction_m_flow_DerivativeCheck_res.mat","/mnt/ReferenceFiles/Buildings/csv/maint_11.x/Buildings_Fluid_BaseClasses_FlowModels_Validation_BasicFlowFunction_m_flow_DerivativeCheck.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_11_Buildings.Fluid.BaseClasses.FlowModels.Validation.BasicFlowFunction_m_flow_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,dp,dp_comp Variables in the result:der(dp),der(dp_comp),der(m_flow),dp,dp_comp,err,k,m_flow,m_flow_turbulent,time