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.001454/0.001454, 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.001418/0.001418, allocations: 196.8 kB / 16.53 MB, free: 6.664 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.277/1.277, allocations: 222.9 MB / 240.2 MB, free: 4.395 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.1.0-maint.11.x/package.mo): time 2.537/2.537, allocations: 469.8 MB / 0.7424 GB, free: 7.48 MB / 0.5919 GB Notification: Performance of FrontEnd - loaded program: time 0.001751/0.001751, allocations: 61.56 kB / 0.9087 GB, free: 34.37 MB / 0.7169 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2427/0.2445, allocations: 159.1 MB / 1.064 GB, free: 14.27 MB / 0.8262 GB Notification: Performance of NFInst.instantiate(Buildings.Fluid.BaseClasses.FlowModels.Validation.BasicFlowFunction_m_flow_DerivativeCheck): time 0.00231/0.2468, allocations: 1.294 MB / 1.065 GB, free: 12.96 MB / 0.8262 GB Notification: Performance of NFInst.instExpressions: time 0.0009443/0.2478, allocations: 0.6089 MB / 1.066 GB, free: 12.35 MB / 0.8262 GB Notification: Performance of NFInst.updateImplicitVariability: time 1.798e-05/0.2478, allocations: 0 / 1.066 GB, free: 12.35 MB / 0.8262 GB Notification: Performance of NFTyping.typeComponents: time 1.16e-05/0.2478, allocations: 0 / 1.066 GB, free: 12.35 MB / 0.8262 GB Notification: Performance of NFTyping.typeBindings: time 3.491e-05/0.2479, allocations: 7.938 kB / 1.066 GB, free: 12.34 MB / 0.8262 GB Notification: Performance of NFTyping.typeClassSections: time 0.0004585/0.2483, allocations: 148.4 kB / 1.066 GB, free: 12.2 MB / 0.8262 GB Notification: Performance of NFFlatten.flatten: time 4.607e-05/0.2484, allocations: 19.86 kB / 1.066 GB, free: 12.18 MB / 0.8262 GB Notification: Performance of NFFlatten.resolveConnections: time 3.859e-05/0.2484, allocations: 8 kB / 1.066 GB, free: 12.17 MB / 0.8262 GB Notification: Performance of NFEvalConstants.evaluate: time 2.892e-05/0.2485, allocations: 12 kB / 1.066 GB, free: 12.16 MB / 0.8262 GB Notification: Performance of NFSimplifyModel.simplify: time 4.1e-05/0.2485, allocations: 11.92 kB / 1.066 GB, free: 12.14 MB / 0.8262 GB Notification: Performance of NFPackage.collectConstants: time 1.107e-05/0.2485, allocations: 3.984 kB / 1.066 GB, free: 12.14 MB / 0.8262 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0004834/0.249, allocations: 343.3 kB / 1.066 GB, free: 11.8 MB / 0.8262 GB Notification: Performance of NFScalarize.scalarize: time 1.002e-05/0.249, allocations: 4 kB / 1.066 GB, free: 11.8 MB / 0.8262 GB Notification: Performance of NFVerifyModel.verify: time 2.116e-05/0.2491, allocations: 11.92 kB / 1.066 GB, free: 11.79 MB / 0.8262 GB Notification: Performance of NFConvertDAE.convert: time 0.0002301/0.2493, allocations: 140 kB / 1.067 GB, free: 11.65 MB / 0.8262 GB Notification: Performance of FrontEnd - DAE generated: time 2.765e-06/0.2493, allocations: 0 / 1.067 GB, free: 11.65 MB / 0.8262 GB Notification: Performance of FrontEnd: time 3.026e-06/0.2493, allocations: 0 / 1.067 GB, free: 11.65 MB / 0.8262 GB Notification: Performance of Transformations before backend: time 3.607e-06/0.2493, allocations: 3.938 kB / 1.067 GB, free: 11.65 MB / 0.8262 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.0003893/0.2497, allocations: 363.4 kB / 1.067 GB, free: 11.24 MB / 0.8262 GB Notification: Performance of prepare preOptimizeDAE: time 3.431e-05/0.2498, allocations: 12.03 kB / 1.067 GB, free: 11.23 MB / 0.8262 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 2.811e-05/0.2498, allocations: 30.75 kB / 1.067 GB, free: 11.19 MB / 0.8262 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.51e-05/0.2498, allocations: 8.844 kB / 1.067 GB, free: 11.18 MB / 0.8262 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000122/0.2499, allocations: 168.4 kB / 1.067 GB, free: 10.98 MB / 0.8262 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.921e-06/0.25, allocations: 384 / 1.067 GB, free: 10.98 MB / 0.8262 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.633e-05/0.25, allocations: 384 / 1.067 GB, free: 10.98 MB / 0.8262 GB Notification: Performance of preOpt clockPartitioning (simulation): time 9.205e-05/0.2501, allocations: 54.11 kB / 1.067 GB, free: 10.92 MB / 0.8262 GB Notification: Performance of preOpt findStateOrder (simulation): time 7.985e-06/0.2501, allocations: 3.938 kB / 1.067 GB, free: 10.92 MB / 0.8262 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.642e-06/0.2501, allocations: 4 kB / 1.067 GB, free: 10.91 MB / 0.8262 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.667e-06/0.2501, allocations: 0 / 1.067 GB, free: 10.91 MB / 0.8262 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 3.334e-05/0.2501, allocations: 8 kB / 1.067 GB, free: 10.91 MB / 0.8262 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001615/0.2503, allocations: 157.7 kB / 1.067 GB, free: 10.7 MB / 0.8262 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001503/0.2505, allocations: 42.61 kB / 1.067 GB, free: 10.65 MB / 0.8262 GB Notification: Performance of preOpt resolveLoops (simulation): time 3.045e-05/0.2505, allocations: 16.94 kB / 1.067 GB, free: 10.63 MB / 0.8262 GB Notification: Performance of preOpt evalFunc (simulation): time 1.442e-05/0.2505, allocations: 4 kB / 1.067 GB, free: 10.63 MB / 0.8262 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.566e-05/0.2506, allocations: 42.5 kB / 1.067 GB, free: 10.58 MB / 0.8262 GB Notification: Performance of pre-optimization done (n=4): time 9.82e-07/0.2506, allocations: 0 / 1.067 GB, free: 10.58 MB / 0.8262 GB Notification: Performance of matching and sorting (n=6): time 0.0005453/0.2511, allocations: 310.1 kB / 1.068 GB, free: 10.22 MB / 0.8262 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.187e-05/0.2512, allocations: 51.41 kB / 1.068 GB, free: 10.16 MB / 0.8262 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 7.018e-05/0.2512, allocations: 101.8 kB / 1.068 GB, free: 10.05 MB / 0.8262 GB Notification: Performance of collectPreVariables (initialization): time 1.615e-05/0.2513, allocations: 29.7 kB / 1.068 GB, free: 10.02 MB / 0.8262 GB Notification: Performance of collectInitialEqns (initialization): time 3.691e-05/0.2513, allocations: 84.14 kB / 1.068 GB, free: 9.93 MB / 0.8262 GB Notification: Performance of collectInitialBindings (initialization): time 2.226e-05/0.2513, allocations: 15.72 kB / 1.068 GB, free: 9.914 MB / 0.8262 GB Notification: Performance of simplifyInitialFunctions (initialization): time 3.709e-05/0.2514, allocations: 25.7 kB / 1.068 GB, free: 9.883 MB / 0.8262 GB Notification: Performance of setup shared object (initialization): time 0.0001213/0.2515, allocations: 310.8 kB / 1.068 GB, free: 9.57 MB / 0.8262 GB Notification: Performance of preBalanceInitialSystem (initialization): time 2.441e-05/0.2515, allocations: 12 kB / 1.068 GB, free: 9.559 MB / 0.8262 GB Notification: Performance of partitionIndependentBlocks (initialization): time 2.022e-05/0.2515, allocations: 11.98 kB / 1.068 GB, free: 9.547 MB / 0.8262 GB Notification: Performance of analyzeInitialSystem (initialization): time 5.665e-05/0.2516, allocations: 28.86 kB / 1.068 GB, free: 9.516 MB / 0.8262 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.31e-07/0.2516, allocations: 7.875 kB / 1.068 GB, free: 9.508 MB / 0.8262 GB Notification: Performance of matching and sorting (n=7) (initialization): time 9.701e-05/0.2517, allocations: 73.53 kB / 1.069 GB, free: 9.43 MB / 0.8262 GB Notification: Performance of prepare postOptimizeDAE: time 1.004e-05/0.2517, allocations: 8 kB / 1.069 GB, free: 9.422 MB / 0.8262 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.407e-06/0.2517, allocations: 0 / 1.069 GB, free: 9.422 MB / 0.8262 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.148e-05/0.2518, allocations: 0 / 1.069 GB, free: 9.422 MB / 0.8262 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 4.816e-05/0.2518, allocations: 16.05 kB / 1.069 GB, free: 9.406 MB / 0.8262 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.45e-06/0.2518, allocations: 4 kB / 1.069 GB, free: 9.402 MB / 0.8262 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 1.672e-05/0.2518, allocations: 0 / 1.069 GB, free: 9.402 MB / 0.8262 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.101e-06/0.2518, allocations: 4 kB / 1.069 GB, free: 9.398 MB / 0.8262 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 7.279e-05/0.2519, allocations: 109.8 kB / 1.069 GB, free: 9.281 MB / 0.8262 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.575e-05/0.2519, allocations: 7.938 kB / 1.069 GB, free: 9.273 MB / 0.8262 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001229/0.2521, allocations: 81.52 kB / 1.069 GB, free: 9.188 MB / 0.8262 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.472e-06/0.2521, allocations: 0.5156 kB / 1.069 GB, free: 9.188 MB / 0.8262 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.755e-06/0.2521, allocations: 0 / 1.069 GB, free: 9.188 MB / 0.8262 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.034e-06/0.2521, allocations: 0 / 1.069 GB, free: 9.188 MB / 0.8262 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003022/0.2524, allocations: 319.3 kB / 1.069 GB, free: 8.816 MB / 0.8262 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.112e-06/0.2524, allocations: 0 / 1.069 GB, free: 8.816 MB / 0.8262 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 5.619e-05/0.2525, allocations: 12 kB / 1.069 GB, free: 8.805 MB / 0.8262 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.694e-06/0.2525, allocations: 0 / 1.069 GB, free: 8.805 MB / 0.8262 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.148e-05/0.2525, allocations: 12 kB / 1.069 GB, free: 8.793 MB / 0.8262 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.183e-06/0.2525, allocations: 4 kB / 1.069 GB, free: 8.789 MB / 0.8262 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.22e-07/0.2525, allocations: 0 / 1.069 GB, free: 8.789 MB / 0.8262 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001794/0.2527, allocations: 180.2 kB / 1.069 GB, free: 8.594 MB / 0.8262 GB Notification: Performance of postOpt removeConstants (simulation): time 5.594e-05/0.2528, allocations: 85.12 kB / 1.069 GB, free: 8.492 MB / 0.8262 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.101e-05/0.2528, allocations: 0 / 1.069 GB, free: 8.492 MB / 0.8262 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 7.12e-05/0.2528, allocations: 4 kB / 1.069 GB, free: 8.488 MB / 0.8262 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.785e-05/0.2529, allocations: 8.062 kB / 1.069 GB, free: 8.48 MB / 0.8262 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.272e-06/0.2529, allocations: 4 kB / 1.069 GB, free: 8.477 MB / 0.8262 GB Notification: Performance of sorting global known variables: time 4.278e-05/0.2529, allocations: 83.27 kB / 1.069 GB, free: 8.395 MB / 0.8262 GB Notification: Performance of sort global known variables: time 1.2e-07/0.2529, allocations: 0 / 1.069 GB, free: 8.395 MB / 0.8262 GB Notification: Performance of remove unused functions: time 0.0002451/0.2532, allocations: 19.94 kB / 1.069 GB, free: 8.375 MB / 0.8262 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.000493/0.2537, allocations: 0.7408 MB / 1.07 GB, free: 7.605 MB / 0.8262 GB Notification: Performance of simCode: created initialization part: time 9.584e-05/0.2538, allocations: 31.98 kB / 1.07 GB, free: 7.574 MB / 0.8262 GB Notification: Performance of simCode: created event and clocks part: time 3.587e-06/0.2538, allocations: 0 / 1.07 GB, free: 7.574 MB / 0.8262 GB Notification: Performance of simCode: created simulation system equations: time 2.646e-05/0.2538, allocations: 23.88 kB / 1.07 GB, free: 7.551 MB / 0.8262 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001961/0.254, allocations: 6.641 kB / 1.07 GB, free: 7.547 MB / 0.8262 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001134/0.2552, allocations: 1.323 MB / 1.071 GB, free: 6.137 MB / 0.8262 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002694/0.2555, allocations: 0.6807 MB / 1.072 GB, free: 5.43 MB / 0.8262 GB Notification: Performance of simCode: alias equations: time 3.123e-05/0.2555, allocations: 16.09 kB / 1.072 GB, free: 5.414 MB / 0.8262 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.643e-05/0.2555, allocations: 11.44 kB / 1.072 GB, free: 5.402 MB / 0.8262 GB Notification: Performance of SimCode: time 2.3e-07/0.2555, allocations: 0 / 1.072 GB, free: 5.402 MB / 0.8262 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.4802/0.7358, allocations: 1.603 MB / 1.074 GB, free: 3.961 MB / 0.8262 GB Notification: Performance of buildModelFMU: Generate platform static: time 11.59/12.32, allocations: 6.562 kB / 1.074 GB, free: 3.957 MB / 0.8262 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