Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_10_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 10.1.1-maint.10.0.x/package.mo", uses=false) Using package Buildings with version 10.1.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 10.1.1-maint.10.0.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_10_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_10_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.0044/0.0044, allocations: 101.5 kB / 15.73 MB, free: 6.059 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.001313/0.001313, allocations: 195.2 kB / 16.68 MB, free: 5.969 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.245/1.245, allocations: 222.9 MB / 240.4 MB, free: 4.172 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 10.1.1-maint.10.0.x/package.mo): time 2.32/2.32, allocations: 437.1 MB / 0.7106 GB, free: 4.793 MB / 0.5606 GB Notification: Performance of FrontEnd - loaded program: time 0.001695/0.001695, allocations: 67.89 kB / 1.018 GB, free: 15 MB / 0.7794 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2367/0.2384, allocations: 151.6 MB / 1.166 GB, free: 7.254 MB / 0.92 GB Notification: Performance of NFInst.instantiate(Buildings.Fluid.BaseClasses.FlowModels.Validation.BasicFlowFunction_m_flow_DerivativeCheck): time 0.001923/0.2404, allocations: 1.281 MB / 1.167 GB, free: 5.957 MB / 0.92 GB Notification: Performance of NFInst.instExpressions: time 0.000912/0.2413, allocations: 0.6191 MB / 1.168 GB, free: 5.336 MB / 0.92 GB Notification: Performance of NFInst.updateImplicitVariability: time 1.898e-05/0.2413, allocations: 0 / 1.168 GB, free: 5.336 MB / 0.92 GB Notification: Performance of NFTyping.typeComponents: time 1.831e-05/0.2414, allocations: 3.938 kB / 1.168 GB, free: 5.332 MB / 0.92 GB Notification: Performance of NFTyping.typeBindings: time 2.789e-05/0.2414, allocations: 0 / 1.168 GB, free: 5.332 MB / 0.92 GB Notification: Performance of NFTyping.typeClassSections: time 0.0004549/0.2419, allocations: 154.9 kB / 1.168 GB, free: 5.184 MB / 0.92 GB Notification: Performance of NFFlatten.flatten: time 5.108e-05/0.2419, allocations: 15.94 kB / 1.168 GB, free: 5.168 MB / 0.92 GB Notification: Performance of NFFlatten.resolveConnections: time 3.26e-05/0.2419, allocations: 0 / 1.168 GB, free: 5.168 MB / 0.92 GB Notification: Performance of NFEvalConstants.evaluate: time 3.301e-05/0.242, allocations: 15.92 kB / 1.168 GB, free: 5.152 MB / 0.92 GB Notification: Performance of NFSimplifyModel.simplify: time 4.524e-05/0.242, allocations: 7.938 kB / 1.168 GB, free: 5.145 MB / 0.92 GB Notification: Performance of NFPackage.collectConstants: time 9.047e-06/0.2421, allocations: 4 kB / 1.168 GB, free: 5.141 MB / 0.92 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0004658/0.2425, allocations: 343.4 kB / 1.169 GB, free: 4.805 MB / 0.92 GB Notification: Performance of NFScalarize.scalarize: time 1.071e-05/0.2425, allocations: 4 kB / 1.169 GB, free: 4.801 MB / 0.92 GB Notification: Performance of NFVerifyModel.verify: time 1.841e-05/0.2426, allocations: 7.938 kB / 1.169 GB, free: 4.793 MB / 0.92 GB Notification: Performance of NFConvertDAE.convert: time 0.000236/0.2428, allocations: 155.8 kB / 1.169 GB, free: 4.641 MB / 0.92 GB Notification: Performance of FrontEnd - DAE generated: time 2.605e-06/0.2428, allocations: 0 / 1.169 GB, free: 4.641 MB / 0.92 GB Notification: Performance of FrontEnd: time 1.062e-06/0.2428, allocations: 0 / 1.169 GB, free: 4.641 MB / 0.92 GB Notification: Performance of Transformations before backend: time 3.717e-06/0.2428, allocations: 0 / 1.169 GB, free: 4.641 MB / 0.92 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.0003713/0.2432, allocations: 359.1 kB / 1.169 GB, free: 4.238 MB / 0.92 GB Notification: Performance of prepare preOptimizeDAE: time 3.451e-05/0.2432, allocations: 16.02 kB / 1.169 GB, free: 4.223 MB / 0.92 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.132e-05/0.2433, allocations: 30.75 kB / 1.169 GB, free: 4.184 MB / 0.92 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.32e-05/0.2433, allocations: 4.938 kB / 1.169 GB, free: 4.18 MB / 0.92 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001172/0.2434, allocations: 176.2 kB / 1.169 GB, free: 3.969 MB / 0.92 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 8.516e-06/0.2434, allocations: 384 / 1.169 GB, free: 3.969 MB / 0.92 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.469e-05/0.2435, allocations: 4.375 kB / 1.169 GB, free: 3.965 MB / 0.92 GB Notification: Performance of preOpt clockPartitioning (simulation): time 8.661e-05/0.2435, allocations: 42.25 kB / 1.169 GB, free: 3.918 MB / 0.92 GB Notification: Performance of preOpt findStateOrder (simulation): time 8.496e-06/0.2436, allocations: 3.938 kB / 1.169 GB, free: 3.914 MB / 0.92 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.542e-06/0.2436, allocations: 0 / 1.169 GB, free: 3.914 MB / 0.92 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.31e-06/0.2436, allocations: 0 / 1.169 GB, free: 3.914 MB / 0.92 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 3.253e-05/0.2436, allocations: 15.92 kB / 1.169 GB, free: 3.898 MB / 0.92 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001574/0.2438, allocations: 161.7 kB / 1.17 GB, free: 3.691 MB / 0.92 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001475/0.2439, allocations: 42.5 kB / 1.17 GB, free: 3.641 MB / 0.92 GB Notification: Performance of preOpt resolveLoops (simulation): time 2.909e-05/0.244, allocations: 20.8 kB / 1.17 GB, free: 3.617 MB / 0.92 GB Notification: Performance of preOpt evalFunc (simulation): time 1.699e-05/0.244, allocations: 3.984 kB / 1.17 GB, free: 3.613 MB / 0.92 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.503e-05/0.244, allocations: 34.56 kB / 1.17 GB, free: 3.57 MB / 0.92 GB Notification: Performance of pre-optimization done (n=4): time 1.032e-06/0.244, allocations: 4 kB / 1.17 GB, free: 3.566 MB / 0.92 GB Notification: Performance of matching and sorting (n=6): time 0.0005242/0.2446, allocations: 310.3 kB / 1.17 GB, free: 3.211 MB / 0.92 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.267e-05/0.2446, allocations: 51.41 kB / 1.17 GB, free: 3.148 MB / 0.92 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 6.607e-05/0.2447, allocations: 97.86 kB / 1.17 GB, free: 3.043 MB / 0.92 GB Notification: Performance of collectPreVariables (initialization): time 1.492e-05/0.2447, allocations: 25.7 kB / 1.17 GB, free: 3.012 MB / 0.92 GB Notification: Performance of collectInitialEqns (initialization): time 3.499e-05/0.2447, allocations: 80.14 kB / 1.17 GB, free: 2.93 MB / 0.92 GB Notification: Performance of collectInitialBindings (initialization): time 2.755e-05/0.2448, allocations: 35.7 kB / 1.17 GB, free: 2.895 MB / 0.92 GB Notification: Performance of simplifyInitialFunctions (initialization): time 3.138e-05/0.2448, allocations: 21.72 kB / 1.17 GB, free: 2.867 MB / 0.92 GB Notification: Performance of setup shared object (initialization): time 0.0001184/0.2449, allocations: 318.8 kB / 1.171 GB, free: 2.547 MB / 0.92 GB Notification: Performance of preBalanceInitialSystem (initialization): time 2.14e-05/0.245, allocations: 8 kB / 1.171 GB, free: 2.539 MB / 0.92 GB Notification: Performance of partitionIndependentBlocks (initialization): time 2.148e-05/0.245, allocations: 12 kB / 1.171 GB, free: 2.527 MB / 0.92 GB Notification: Performance of analyzeInitialSystem (initialization): time 5.177e-05/0.245, allocations: 32.84 kB / 1.171 GB, free: 2.492 MB / 0.92 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.01e-07/0.245, allocations: 0 / 1.171 GB, free: 2.492 MB / 0.92 GB Notification: Performance of matching and sorting (n=7) (initialization): time 8.84e-05/0.2451, allocations: 65.59 kB / 1.171 GB, free: 2.422 MB / 0.92 GB Notification: Performance of prepare postOptimizeDAE: time 1.053e-05/0.2452, allocations: 8 kB / 1.171 GB, free: 2.414 MB / 0.92 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.226e-06/0.2452, allocations: 0 / 1.171 GB, free: 2.414 MB / 0.92 GB Notification: Performance of postOpt tearingSystem (initialization): time 9.778e-06/0.2452, allocations: 7.984 kB / 1.171 GB, free: 2.406 MB / 0.92 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 4.52e-05/0.2452, allocations: 16 kB / 1.171 GB, free: 2.391 MB / 0.92 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 3.717e-06/0.2452, allocations: 4.234 kB / 1.171 GB, free: 2.387 MB / 0.92 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 1.419e-05/0.2453, allocations: 0 / 1.171 GB, free: 2.387 MB / 0.92 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.857e-06/0.2453, allocations: 0 / 1.171 GB, free: 2.387 MB / 0.92 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.178e-05/0.2453, allocations: 114.5 kB / 1.171 GB, free: 2.266 MB / 0.92 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.04e-05/0.2454, allocations: 3.938 kB / 1.171 GB, free: 2.262 MB / 0.92 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.00012/0.2455, allocations: 73.62 kB / 1.171 GB, free: 2.176 MB / 0.92 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.346e-06/0.2455, allocations: 4 kB / 1.171 GB, free: 2.172 MB / 0.92 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.438e-06/0.2455, allocations: 4 kB / 1.171 GB, free: 2.168 MB / 0.92 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.164e-06/0.2455, allocations: 3.938 kB / 1.171 GB, free: 2.164 MB / 0.92 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002814/0.2458, allocations: 311.4 kB / 1.171 GB, free: 1.801 MB / 0.92 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.163e-06/0.2458, allocations: 0 / 1.171 GB, free: 1.801 MB / 0.92 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 6.287e-05/0.2459, allocations: 19.92 kB / 1.171 GB, free: 1.781 MB / 0.92 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.643e-06/0.2459, allocations: 7.875 kB / 1.171 GB, free: 1.773 MB / 0.92 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.494e-06/0.2459, allocations: 4 kB / 1.171 GB, free: 1.77 MB / 0.92 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.222e-06/0.2459, allocations: 0 / 1.171 GB, free: 1.77 MB / 0.92 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.62e-07/0.2459, allocations: 4 kB / 1.171 GB, free: 1.766 MB / 0.92 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001693/0.2461, allocations: 188.3 kB / 1.171 GB, free: 1.562 MB / 0.92 GB Notification: Performance of postOpt removeConstants (simulation): time 4.614e-05/0.2461, allocations: 81.14 kB / 1.171 GB, free: 1.465 MB / 0.92 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 9.789e-06/0.2461, allocations: 0 / 1.171 GB, free: 1.465 MB / 0.92 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 6.034e-05/0.2462, allocations: 0 / 1.171 GB, free: 1.465 MB / 0.92 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.56e-05/0.2462, allocations: 7.984 kB / 1.171 GB, free: 1.457 MB / 0.92 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.971e-06/0.2462, allocations: 4.188 kB / 1.171 GB, free: 1.453 MB / 0.92 GB Notification: Performance of sorting global known variables: time 3.841e-05/0.2463, allocations: 87.28 kB / 1.172 GB, free: 1.367 MB / 0.92 GB Notification: Performance of sort global known variables: time 1.2e-07/0.2463, allocations: 0 / 1.172 GB, free: 1.367 MB / 0.92 GB Notification: Performance of remove unused functions: time 0.0002161/0.2465, allocations: 19.94 kB / 1.172 GB, free: 1.348 MB / 0.92 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.0004766/0.247, allocations: 0.7411 MB / 1.172 GB, free: 0.5781 MB / 0.92 GB Notification: Performance of simCode: created initialization part: time 8.74e-05/0.2471, allocations: 39.98 kB / 1.172 GB, free: 0.5391 MB / 0.92 GB Notification: Performance of simCode: created event and clocks part: time 1.613e-06/0.2471, allocations: 0 / 1.172 GB, free: 0.5391 MB / 0.92 GB Notification: Performance of simCode: created simulation system equations: time 2.942e-05/0.2471, allocations: 16 kB / 1.172 GB, free: 0.5234 MB / 0.92 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001889/0.2473, allocations: 9.609 kB / 1.172 GB, free: 0.5156 MB / 0.92 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001091/0.2484, allocations: 1.311 MB / 1.174 GB, free: 15.12 MB / 0.9356 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002651/0.2487, allocations: 0.6846 MB / 1.174 GB, free: 14.41 MB / 0.9356 GB Notification: Performance of simCode: alias equations: time 2.638e-05/0.2487, allocations: 8.234 kB / 1.174 GB, free: 14.4 MB / 0.9356 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.262e-05/0.2487, allocations: 11.53 kB / 1.174 GB, free: 14.39 MB / 0.9356 GB Notification: Performance of SimCode: time 2.31e-07/0.2488, allocations: 3.938 kB / 1.174 GB, free: 14.39 MB / 0.9356 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 5.041/5.29, allocations: 1.629 MB / 1.176 GB, free: 12.94 MB / 0.9356 GB Notification: Performance of buildModelFMU: Generate platform static: time 18.99/24.28, allocations: 6.359 kB / 1.176 GB, free: 12.93 MB / 0.9356 GB (rm -f Buildings_10_Buildings.Fluid.BaseClasses.FlowModels.Validation.BasicFlowFunction_m_flow_DerivativeCheck.pipe ; mkfifo Buildings_10_Buildings.Fluid.BaseClasses.FlowModels.Validation.BasicFlowFunction_m_flow_DerivativeCheck.pipe ; head -c 1048576 < Buildings_10_Buildings.Fluid.BaseClasses.FlowModels.Validation.BasicFlowFunction_m_flow_DerivativeCheck.pipe >> ../files/Buildings_10_Buildings.Fluid.BaseClasses.FlowModels.Validation.BasicFlowFunction_m_flow_DerivativeCheck.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Buildings_10_Buildings.Fluid.BaseClasses.FlowModels.Validation.BasicFlowFunction_m_flow_DerivativeCheck_res.mat --tempDir=temp_Buildings_10_Buildings_Fluid_BaseClasses_FlowModels_Validation_BasicFlowFunction_m_flow_DerivativeCheck_fmu --startTime=-2 --stopTime=2 --timeout=400 --tolerance=1e-08 Buildings_10_Buildings_Fluid_BaseClasses_FlowModels_Validation_BasicFlowFunction_m_flow_DerivativeCheck.fmu > Buildings_10_Buildings.Fluid.BaseClasses.FlowModels.Validation.BasicFlowFunction_m_flow_DerivativeCheck.pipe 2>&1) diffSimulationResults("Buildings_10_Buildings.Fluid.BaseClasses.FlowModels.Validation.BasicFlowFunction_m_flow_DerivativeCheck_res.mat","/mnt/ReferenceFiles/Buildings/csv/maint_10.0.x/Buildings_Fluid_BaseClasses_FlowModels_Validation_BasicFlowFunction_m_flow_DerivativeCheck.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_10_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