Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_9_Buildings.Fluid.BaseClasses.FlowModels.Validation.BasicFlowFunction_m_flow_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_m_flow_DerivativeCheck2,fileNamePrefix="Buildings_9_Buildings_Fluid_BaseClasses_FlowModels_Validation_BasicFlowFunction_m_flow_DerivativeCheck2",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Fluid.BaseClasses.FlowModels.Validation.BasicFlowFunction_m_flow_DerivativeCheck2,fileNamePrefix="Buildings_9_Buildings_Fluid_BaseClasses_FlowModels_Validation_BasicFlowFunction_m_flow_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.007211/0.007211, allocations: 103.2 kB / 15.73 MB, free: 6.004 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.001698/0.001698, allocations: 191.2 kB / 16.67 MB, free: 5.93 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.362/1.362, allocations: 222.9 MB / 240.4 MB, free: 15.1 MB / 206.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.211/2.211, allocations: 390.3 MB / 0.6648 GB, free: 0.6016 MB / 0.5294 GB Notification: Performance of FrontEnd - loaded program: time 0.001306/0.001306, allocations: 59.91 kB / 0.9504 GB, free: 8.129 MB / 0.7325 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.7019/0.7033, allocations: 140.4 MB / 1.087 GB, free: 5.25 MB / 0.8575 GB Notification: Performance of NFInst.instantiate(Buildings.Fluid.BaseClasses.FlowModels.Validation.BasicFlowFunction_m_flow_DerivativeCheck2): time 0.002061/0.7054, allocations: 1.462 MB / 1.089 GB, free: 4.234 MB / 0.8575 GB Notification: Performance of NFInst.instExpressions: time 0.000881/0.7063, allocations: 0.6324 MB / 1.09 GB, free: 3.793 MB / 0.8575 GB Notification: Performance of NFInst.updateImplicitVariability: time 3.356e-05/0.7063, allocations: 1.312 kB / 1.09 GB, free: 3.793 MB / 0.8575 GB Notification: Performance of NFTyping.typeComponents: time 2.901e-05/0.7063, allocations: 9.047 kB / 1.09 GB, free: 3.785 MB / 0.8575 GB Notification: Performance of NFTyping.typeBindings: time 4.255e-05/0.7064, allocations: 5.766 kB / 1.09 GB, free: 3.781 MB / 0.8575 GB Notification: Performance of NFTyping.typeClassSections: time 0.0005198/0.7069, allocations: 166.6 kB / 1.09 GB, free: 3.703 MB / 0.8575 GB Notification: Performance of NFFlatten.flatten: time 7.731e-05/0.707, allocations: 57.69 kB / 1.09 GB, free: 3.676 MB / 0.8575 GB Notification: Performance of NFFlatten.resolveConnections: time 4.304e-05/0.707, allocations: 4.766 kB / 1.09 GB, free: 3.676 MB / 0.8575 GB Notification: Performance of NFEvalConstants.evaluate: time 5.627e-05/0.7071, allocations: 27.22 kB / 1.09 GB, free: 3.66 MB / 0.8575 GB Notification: Performance of NFSimplifyModel.simplify: time 4.192e-05/0.7072, allocations: 22.14 kB / 1.09 GB, free: 3.652 MB / 0.8575 GB Notification: Performance of NFPackage.collectConstants: time 1.427e-05/0.7072, allocations: 4.344 kB / 1.09 GB, free: 3.652 MB / 0.8575 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0005146/0.7077, allocations: 348.6 kB / 1.09 GB, free: 3.551 MB / 0.8575 GB Notification: Performance of NFScalarize.scalarize: time 1.924e-05/0.7077, allocations: 15.91 kB / 1.09 GB, free: 3.539 MB / 0.8575 GB Notification: Performance of NFVerifyModel.verify: time 3.377e-05/0.7078, allocations: 23.14 kB / 1.09 GB, free: 3.527 MB / 0.8575 GB Notification: Performance of NFConvertDAE.convert: time 0.000281/0.708, allocations: 179.9 kB / 1.09 GB, free: 3.465 MB / 0.8575 GB Notification: Performance of FrontEnd - DAE generated: time 3.006e-06/0.7081, allocations: 0 / 1.09 GB, free: 3.465 MB / 0.8575 GB Notification: Performance of FrontEnd: time 1.322e-06/0.7081, allocations: 0 / 1.09 GB, free: 3.465 MB / 0.8575 GB Notification: Performance of Transformations before backend: time 4.579e-06/0.7081, allocations: 5.188 kB / 1.09 GB, free: 3.461 MB / 0.8575 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 13 * Number of variables: 13 Notification: Performance of Generate backend data structure: time 0.0004903/0.7086, allocations: 393.1 kB / 1.091 GB, free: 3.07 MB / 0.8575 GB Notification: Performance of prepare preOptimizeDAE: time 3.574e-05/0.7086, allocations: 10.03 kB / 1.091 GB, free: 3.07 MB / 0.8575 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 2.879e-05/0.7086, allocations: 38.31 kB / 1.091 GB, free: 3.027 MB / 0.8575 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.221e-05/0.7087, allocations: 8.578 kB / 1.091 GB, free: 3.023 MB / 0.8575 GB Notification: Performance of preOpt evaluateParameters (simulation): time 6.224e-05/0.7087, allocations: 171.5 kB / 1.091 GB, free: 2.82 MB / 0.8575 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.377e-05/0.7088, allocations: 11.5 kB / 1.091 GB, free: 2.812 MB / 0.8575 GB Notification: Performance of preOpt expandDerOperator (simulation): time 2.179e-05/0.7088, allocations: 10.36 kB / 1.091 GB, free: 2.809 MB / 0.8575 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002253/0.709, allocations: 79.94 kB / 1.091 GB, free: 2.762 MB / 0.8575 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.192e-05/0.7091, allocations: 3.938 kB / 1.091 GB, free: 2.758 MB / 0.8575 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.114e-05/0.7091, allocations: 1.156 kB / 1.091 GB, free: 2.758 MB / 0.8575 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.628e-06/0.7091, allocations: 0.9375 kB / 1.091 GB, free: 2.758 MB / 0.8575 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.000242/0.7093, allocations: 48.67 kB / 1.091 GB, free: 2.75 MB / 0.8575 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0004546/0.7098, allocations: 328.4 kB / 1.091 GB, free: 2.445 MB / 0.8575 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0002818/0.7101, allocations: 80.61 kB / 1.091 GB, free: 2.406 MB / 0.8575 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001143/0.7102, allocations: 26.89 kB / 1.092 GB, free: 2.395 MB / 0.8575 GB Notification: Performance of preOpt evalFunc (simulation): time 1.869e-05/0.7102, allocations: 6.266 kB / 1.092 GB, free: 2.391 MB / 0.8575 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.705e-05/0.7103, allocations: 40 kB / 1.092 GB, free: 2.344 MB / 0.8575 GB Notification: Performance of pre-optimization done (n=7): time 1.142e-06/0.7103, allocations: 0 / 1.092 GB, free: 2.344 MB / 0.8575 GB Notification: Performance of matching and sorting (n=11): time 0.001546/0.7118, allocations: 0.6486 MB / 1.092 GB, free: 1.816 MB / 0.8575 GB Notification: Performance of inlineWhenForInitialization (initialization): time 2.201e-05/0.7118, allocations: 53.22 kB / 1.092 GB, free: 1.754 MB / 0.8575 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 4.607e-05/0.7119, allocations: 105.9 kB / 1.092 GB, free: 1.648 MB / 0.8575 GB Notification: Performance of collectPreVariables (initialization): time 1.18e-05/0.7119, allocations: 26.48 kB / 1.092 GB, free: 1.617 MB / 0.8575 GB Notification: Performance of collectInitialEqns (initialization): time 2.428e-05/0.7119, allocations: 95.75 kB / 1.092 GB, free: 1.523 MB / 0.8575 GB Notification: Performance of collectInitialBindings (initialization): time 2.816e-05/0.712, allocations: 35.36 kB / 1.092 GB, free: 1.496 MB / 0.8575 GB Notification: Performance of simplifyInitialFunctions (initialization): time 4.074e-05/0.712, allocations: 28.94 kB / 1.093 GB, free: 1.473 MB / 0.8575 GB Notification: Performance of setup shared object (initialization): time 3.895e-05/0.7121, allocations: 319 kB / 1.093 GB, free: 1.156 MB / 0.8575 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001341/0.7122, allocations: 32.08 kB / 1.093 GB, free: 1.148 MB / 0.8575 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001255/0.7123, allocations: 32.8 kB / 1.093 GB, free: 1.141 MB / 0.8575 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002483/0.7126, allocations: 75.03 kB / 1.093 GB, free: 1.113 MB / 0.8575 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.553e-06/0.7126, allocations: 0.75 kB / 1.093 GB, free: 1.113 MB / 0.8575 GB Notification: Performance of matching and sorting (n=13) (initialization): time 0.0003109/0.7129, allocations: 118.6 kB / 1.093 GB, free: 1.055 MB / 0.8575 GB Notification: Performance of prepare postOptimizeDAE: time 1.32e-05/0.7129, allocations: 9.562 kB / 1.093 GB, free: 1.051 MB / 0.8575 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.98e-06/0.713, allocations: 5.438 kB / 1.093 GB, free: 1.047 MB / 0.8575 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.396e-05/0.713, allocations: 4.797 kB / 1.093 GB, free: 1.043 MB / 0.8575 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001489/0.7131, allocations: 29.91 kB / 1.093 GB, free: 1.039 MB / 0.8575 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.48e-06/0.7131, allocations: 8.469 kB / 1.093 GB, free: 1.031 MB / 0.8575 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 6.805e-05/0.7132, allocations: 5.375 kB / 1.093 GB, free: 1.031 MB / 0.8575 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.979e-06/0.7132, allocations: 2.562 kB / 1.093 GB, free: 1.031 MB / 0.8575 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 5.301e-05/0.7133, allocations: 117.9 kB / 1.093 GB, free: 0.9102 MB / 0.8575 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.16e-05/0.7133, allocations: 8.141 kB / 1.093 GB, free: 0.9062 MB / 0.8575 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0003681/0.7137, allocations: 121.2 kB / 1.093 GB, free: 0.8398 MB / 0.8575 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.935e-06/0.7137, allocations: 1.656 kB / 1.093 GB, free: 0.8398 MB / 0.8575 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.729e-06/0.7137, allocations: 4.547 kB / 1.093 GB, free: 0.8359 MB / 0.8575 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.206e-06/0.7137, allocations: 1.375 kB / 1.093 GB, free: 0.8359 MB / 0.8575 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0004939/0.7142, allocations: 391 kB / 1.094 GB, free: 0.4922 MB / 0.8575 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.944e-06/0.7142, allocations: 0.7969 kB / 1.094 GB, free: 0.4922 MB / 0.8575 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001481/0.7144, allocations: 28.3 kB / 1.094 GB, free: 500 kB / 0.8575 GB Notification: Performance of postOpt tearingSystem (simulation): time 3.677e-06/0.7144, allocations: 5.484 kB / 1.094 GB, free: 496 kB / 0.8575 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.024e-05/0.7144, allocations: 1.969 kB / 1.094 GB, free: 496 kB / 0.8575 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.254e-06/0.7144, allocations: 0.875 kB / 1.094 GB, free: 496 kB / 0.8575 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.373e-06/0.7144, allocations: 0.75 kB / 1.094 GB, free: 496 kB / 0.8575 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004841/0.7149, allocations: 252 kB / 1.094 GB, free: 320 kB / 0.8575 GB Notification: Performance of postOpt removeConstants (simulation): time 1.841e-05/0.7149, allocations: 87.25 kB / 1.094 GB, free: 216 kB / 0.8575 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.759e-05/0.715, allocations: 6.281 kB / 1.094 GB, free: 212 kB / 0.8575 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001216/0.7151, allocations: 10.33 kB / 1.094 GB, free: 208 kB / 0.8575 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.95e-05/0.7151, allocations: 6.188 kB / 1.094 GB, free: 208 kB / 0.8575 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.104e-05/0.7151, allocations: 7.594 kB / 1.094 GB, free: 204 kB / 0.8575 GB Notification: Performance of sorting global known variables: time 2.157e-05/0.7152, allocations: 83.5 kB / 1.094 GB, free: 124 kB / 0.8575 GB Notification: Performance of sort global known variables: time 1.1e-07/0.7152, allocations: 0.5938 kB / 1.094 GB, free: 124 kB / 0.8575 GB Notification: Performance of remove unused functions: time 0.0002863/0.7155, allocations: 43.45 kB / 1.094 GB, free: 108 kB / 0.8575 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 2 (dp_comp,der_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 (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.000861/0.7163, allocations: 0.8166 MB / 1.095 GB, free: 15.39 MB / 0.8731 GB Notification: Performance of simCode: created initialization part: time 0.0003345/0.7167, allocations: 84.47 kB / 1.095 GB, free: 15.38 MB / 0.8731 GB Notification: Performance of simCode: created event and clocks part: time 3.687e-06/0.7167, allocations: 4.062 kB / 1.095 GB, free: 15.37 MB / 0.8731 GB Notification: Performance of simCode: created simulation system equations: time 0.0001521/0.7168, allocations: 42.95 kB / 1.095 GB, free: 15.36 MB / 0.8731 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002919/0.7171, allocations: 15.05 kB / 1.095 GB, free: 15.36 MB / 0.8731 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002057/0.7192, allocations: 1.602 MB / 1.097 GB, free: 13.98 MB / 0.8731 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002647/0.7195, allocations: 0.6919 MB / 1.097 GB, free: 13.29 MB / 0.8731 GB Notification: Performance of simCode: alias equations: time 5.995e-05/0.7196, allocations: 8.828 kB / 1.097 GB, free: 13.29 MB / 0.8731 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.101e-05/0.7196, allocations: 27.83 kB / 1.097 GB, free: 13.27 MB / 0.8731 GB Notification: Performance of SimCode: time 3.41e-07/0.7196, allocations: 0 / 1.097 GB, free: 13.27 MB / 0.8731 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01944/0.7391, allocations: 2.333 MB / 1.1 GB, free: 12.86 MB / 0.8731 GB Notification: Performance of buildModelFMU: Generate platform static: time 8.698/9.437, allocations: 9.719 kB / 1.1 GB, free: 12.86 MB / 0.8731 GB (rm -f Buildings_9_Buildings.Fluid.BaseClasses.FlowModels.Validation.BasicFlowFunction_m_flow_DerivativeCheck2.pipe ; mkfifo Buildings_9_Buildings.Fluid.BaseClasses.FlowModels.Validation.BasicFlowFunction_m_flow_DerivativeCheck2.pipe ; head -c 1048576 < Buildings_9_Buildings.Fluid.BaseClasses.FlowModels.Validation.BasicFlowFunction_m_flow_DerivativeCheck2.pipe >> ../files/Buildings_9_Buildings.Fluid.BaseClasses.FlowModels.Validation.BasicFlowFunction_m_flow_DerivativeCheck2.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Buildings_9_Buildings.Fluid.BaseClasses.FlowModels.Validation.BasicFlowFunction_m_flow_DerivativeCheck2_res.mat --tempDir=temp_Buildings_9_Buildings_Fluid_BaseClasses_FlowModels_Validation_BasicFlowFunction_m_flow_DerivativeCheck2_fmu --startTime=-2 --stopTime=2 --timeout=50 --tolerance=1e-08 Buildings_9_Buildings_Fluid_BaseClasses_FlowModels_Validation_BasicFlowFunction_m_flow_DerivativeCheck2.fmu > Buildings_9_Buildings.Fluid.BaseClasses.FlowModels.Validation.BasicFlowFunction_m_flow_DerivativeCheck2.pipe 2>&1) diffSimulationResults("Buildings_9_Buildings.Fluid.BaseClasses.FlowModels.Validation.BasicFlowFunction_m_flow_DerivativeCheck2_res.mat","/mnt/ReferenceFiles/Buildings/csv/maint_9.1.x/Buildings_Fluid_BaseClasses_FlowModels_Validation_BasicFlowFunction_m_flow_DerivativeCheck2.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_9_Buildings.Fluid.BaseClasses.FlowModels.Validation.BasicFlowFunction_m_flow_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,dp,dp_comp,der(dp),der(dp_comp),err_dp,err_der_dp Variables in the result:cheEqu1.threShold,cheEqu1.u1,cheEqu1.u2,cheEqu1.y,cheEqu2.threShold,cheEqu2.u1,cheEqu2.u2,cheEqu2.y,der(der(m_flow)),der(der_dp),der(der_dp_comp),der(dp),der(dp_comp),der(m_flow),der_dp,der_dp_comp,dp,dp_comp,err_der_dp,err_dp,k,m_flow,m_flow_turbulent,time