Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_9_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 9.1.2-maint.9.1.x/package.mo", uses=false) Using package Buildings with version 9.1.2 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.1.2-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_DerivativeCheck,fileNamePrefix="Buildings_9_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_9_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.001318/0.001318, allocations: 111.3 kB / 15.23 MB, free: 0.6602 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.001285/0.001285, allocations: 194.5 kB / 16.14 MB, free: 6.645 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.319/1.319, allocations: 222.9 MB / 239.8 MB, free: 4.555 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.1.2-maint.9.1.x/package.mo): time 2.302/2.302, allocations: 390.2 MB / 0.6643 GB, free: 0.5977 MB / 0.5137 GB Notification: Performance of FrontEnd - loaded program: time 0.001469/0.001469, allocations: 67.89 kB / 0.812 GB, free: 14.77 MB / 0.67 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.5277/0.5292, allocations: 140.4 MB / 0.9491 GB, free: 9.16 MB / 0.7169 GB Notification: Performance of NFInst.instantiate(Buildings.Fluid.BaseClasses.FlowModels.Validation.BasicFlowFunction_m_flow_DerivativeCheck): time 0.001871/0.5311, allocations: 1.34 MB / 0.9504 GB, free: 8.098 MB / 0.7169 GB Notification: Performance of NFInst.instExpressions: time 0.0007812/0.5319, allocations: 0.6288 MB / 0.951 GB, free: 7.605 MB / 0.7169 GB Notification: Performance of NFInst.updateImplicitVariability: time 1.353e-05/0.5319, allocations: 0 / 0.951 GB, free: 7.605 MB / 0.7169 GB Notification: Performance of NFTyping.typeComponents: time 1.748e-05/0.5319, allocations: 0 / 0.951 GB, free: 7.605 MB / 0.7169 GB Notification: Performance of NFTyping.typeBindings: time 2.951e-05/0.532, allocations: 5.297 kB / 0.951 GB, free: 7.602 MB / 0.7169 GB Notification: Performance of NFTyping.typeClassSections: time 0.0003742/0.5324, allocations: 126.5 kB / 0.9511 GB, free: 7.52 MB / 0.7169 GB Notification: Performance of NFFlatten.flatten: time 3.881e-05/0.5324, allocations: 21.52 kB / 0.9511 GB, free: 7.508 MB / 0.7169 GB Notification: Performance of NFFlatten.resolveConnections: time 3.317e-05/0.5324, allocations: 5.406 kB / 0.9511 GB, free: 7.504 MB / 0.7169 GB Notification: Performance of NFEvalConstants.evaluate: time 2.72e-05/0.5325, allocations: 12.83 kB / 0.9511 GB, free: 7.496 MB / 0.7169 GB Notification: Performance of NFSimplifyModel.simplify: time 3.736e-05/0.5325, allocations: 12.12 kB / 0.9512 GB, free: 7.488 MB / 0.7169 GB Notification: Performance of NFPackage.collectConstants: time 9.327e-06/0.5325, allocations: 0 / 0.9512 GB, free: 7.488 MB / 0.7169 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0003952/0.5329, allocations: 349.6 kB / 0.9515 GB, free: 7.285 MB / 0.7169 GB Notification: Performance of NFScalarize.scalarize: time 9.147e-06/0.5329, allocations: 0 / 0.9515 GB, free: 7.285 MB / 0.7169 GB Notification: Performance of NFVerifyModel.verify: time 1.9e-05/0.533, allocations: 8.188 kB / 0.9515 GB, free: 7.281 MB / 0.7169 GB Notification: Performance of NFConvertDAE.convert: time 0.0002105/0.5332, allocations: 147.1 kB / 0.9516 GB, free: 7.199 MB / 0.7169 GB Notification: Performance of FrontEnd - DAE generated: time 3.055e-06/0.5332, allocations: 0 / 0.9516 GB, free: 7.199 MB / 0.7169 GB Notification: Performance of FrontEnd: time 7.32e-07/0.5332, allocations: 0 / 0.9516 GB, free: 7.199 MB / 0.7169 GB Notification: Performance of Transformations before backend: time 3.496e-06/0.5332, allocations: 1.25 kB / 0.9516 GB, free: 7.199 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.0002822/0.5335, allocations: 363.4 kB / 0.952 GB, free: 6.809 MB / 0.7169 GB Notification: Performance of prepare preOptimizeDAE: time 3.337e-05/0.5335, allocations: 12.22 kB / 0.952 GB, free: 6.805 MB / 0.7169 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 2.519e-05/0.5336, allocations: 35.81 kB / 0.952 GB, free: 6.762 MB / 0.7169 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.291e-05/0.5336, allocations: 2.562 kB / 0.952 GB, free: 6.762 MB / 0.7169 GB Notification: Performance of preOpt evaluateParameters (simulation): time 6.169e-05/0.5337, allocations: 169.5 kB / 0.9522 GB, free: 6.559 MB / 0.7169 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 8.105e-06/0.5337, allocations: 1.625 kB / 0.9522 GB, free: 6.559 MB / 0.7169 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.353e-05/0.5337, allocations: 3.312 kB / 0.9522 GB, free: 6.559 MB / 0.7169 GB Notification: Performance of preOpt clockPartitioning (simulation): time 7.989e-05/0.5338, allocations: 40.06 kB / 0.9522 GB, free: 6.52 MB / 0.7169 GB Notification: Performance of preOpt findStateOrder (simulation): time 7.765e-06/0.5338, allocations: 3.938 kB / 0.9522 GB, free: 6.516 MB / 0.7169 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.494e-06/0.5338, allocations: 9.625 kB / 0.9522 GB, free: 6.508 MB / 0.7169 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.037e-06/0.5338, allocations: 4 kB / 0.9522 GB, free: 6.504 MB / 0.7169 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 3.306e-05/0.5338, allocations: 9.656 kB / 0.9523 GB, free: 6.5 MB / 0.7169 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001021/0.5339, allocations: 162.6 kB / 0.9524 GB, free: 6.297 MB / 0.7169 GB Notification: Performance of preOpt comSubExp (simulation): time 0.000153/0.5341, allocations: 44.55 kB / 0.9525 GB, free: 6.262 MB / 0.7169 GB Notification: Performance of preOpt resolveLoops (simulation): time 2.765e-05/0.5341, allocations: 20.25 kB / 0.9525 GB, free: 6.246 MB / 0.7169 GB Notification: Performance of preOpt evalFunc (simulation): time 1.278e-05/0.5342, allocations: 0 / 0.9525 GB, free: 6.246 MB / 0.7169 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.514e-05/0.5342, allocations: 39.59 kB / 0.9525 GB, free: 6.199 MB / 0.7169 GB Notification: Performance of pre-optimization done (n=4): time 8.81e-07/0.5342, allocations: 1.344 kB / 0.9525 GB, free: 6.199 MB / 0.7169 GB Notification: Performance of matching and sorting (n=6): time 0.0004633/0.5347, allocations: 306.7 kB / 0.9528 GB, free: 5.902 MB / 0.7169 GB Notification: Performance of inlineWhenForInitialization (initialization): time 1.601e-05/0.5347, allocations: 52.53 kB / 0.9529 GB, free: 5.84 MB / 0.7169 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 3.489e-05/0.5347, allocations: 101 kB / 0.953 GB, free: 5.734 MB / 0.7169 GB Notification: Performance of collectPreVariables (initialization): time 6.722e-06/0.5347, allocations: 26.8 kB / 0.953 GB, free: 5.703 MB / 0.7169 GB Notification: Performance of collectInitialEqns (initialization): time 1.288e-05/0.5348, allocations: 81.33 kB / 0.9531 GB, free: 5.621 MB / 0.7169 GB Notification: Performance of collectInitialBindings (initialization): time 2.062e-05/0.5348, allocations: 21.97 kB / 0.9531 GB, free: 5.602 MB / 0.7169 GB Notification: Performance of simplifyInitialFunctions (initialization): time 2.959e-05/0.5348, allocations: 27.08 kB / 0.9531 GB, free: 5.574 MB / 0.7169 GB Notification: Performance of setup shared object (initialization): time 3.326e-05/0.5349, allocations: 312 kB / 0.9534 GB, free: 5.262 MB / 0.7169 GB Notification: Performance of preBalanceInitialSystem (initialization): time 2.38e-05/0.5349, allocations: 9.906 kB / 0.9534 GB, free: 5.258 MB / 0.7169 GB Notification: Performance of partitionIndependentBlocks (initialization): time 1.989e-05/0.5349, allocations: 19.05 kB / 0.9534 GB, free: 5.246 MB / 0.7169 GB Notification: Performance of analyzeInitialSystem (initialization): time 4.748e-05/0.535, allocations: 32.45 kB / 0.9535 GB, free: 5.227 MB / 0.7169 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.52e-07/0.535, allocations: 0 / 0.9535 GB, free: 5.227 MB / 0.7169 GB Notification: Performance of matching and sorting (n=7) (initialization): time 8.164e-05/0.535, allocations: 72.27 kB / 0.9535 GB, free: 5.172 MB / 0.7169 GB Notification: Performance of prepare postOptimizeDAE: time 1.05e-05/0.5351, allocations: 6 kB / 0.9535 GB, free: 5.172 MB / 0.7169 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.647e-06/0.5351, allocations: 4 kB / 0.9535 GB, free: 5.168 MB / 0.7169 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.065e-05/0.5351, allocations: 0 / 0.9535 GB, free: 5.168 MB / 0.7169 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 4.648e-05/0.5351, allocations: 9.781 kB / 0.9535 GB, free: 5.168 MB / 0.7169 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.811e-06/0.5351, allocations: 5.328 kB / 0.9536 GB, free: 5.164 MB / 0.7169 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 1.728e-05/0.5352, allocations: 0 / 0.9536 GB, free: 5.164 MB / 0.7169 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.939e-06/0.5352, allocations: 1.594 kB / 0.9536 GB, free: 5.164 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 4.148e-05/0.5352, allocations: 112.1 kB / 0.9537 GB, free: 5.047 MB / 0.7169 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.19e-05/0.5352, allocations: 6.188 kB / 0.9537 GB, free: 5.043 MB / 0.7169 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001128/0.5354, allocations: 77.81 kB / 0.9537 GB, free: 4.977 MB / 0.7169 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.452e-06/0.5354, allocations: 5.375 kB / 0.9537 GB, free: 4.973 MB / 0.7169 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.827e-06/0.5354, allocations: 3.984 kB / 0.9537 GB, free: 4.969 MB / 0.7169 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.234e-06/0.5354, allocations: 1.375 kB / 0.9538 GB, free: 4.969 MB / 0.7169 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002044/0.5356, allocations: 315.4 kB / 0.9541 GB, free: 4.629 MB / 0.7169 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.794e-06/0.5356, allocations: 4.906 kB / 0.9541 GB, free: 4.625 MB / 0.7169 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 5.638e-05/0.5357, allocations: 10 kB / 0.9541 GB, free: 4.625 MB / 0.7169 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.434e-06/0.5357, allocations: 1.688 kB / 0.9541 GB, free: 4.625 MB / 0.7169 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.152e-06/0.5357, allocations: 0 / 0.9541 GB, free: 4.625 MB / 0.7169 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.705e-06/0.5357, allocations: 5.547 kB / 0.9541 GB, free: 4.621 MB / 0.7169 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.81e-07/0.5357, allocations: 4.031 kB / 0.9541 GB, free: 4.617 MB / 0.7169 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001242/0.5358, allocations: 177.7 kB / 0.9542 GB, free: 4.453 MB / 0.7169 GB Notification: Performance of postOpt removeConstants (simulation): time 2.387e-05/0.5359, allocations: 83.78 kB / 0.9543 GB, free: 4.355 MB / 0.7169 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.153e-05/0.5359, allocations: 1.344 kB / 0.9543 GB, free: 4.355 MB / 0.7169 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 6.921e-05/0.5359, allocations: 5.5 kB / 0.9543 GB, free: 4.352 MB / 0.7169 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.318e-05/0.536, allocations: 3.062 kB / 0.9543 GB, free: 4.352 MB / 0.7169 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.95e-06/0.536, allocations: 5.219 kB / 0.9543 GB, free: 4.348 MB / 0.7169 GB Notification: Performance of sorting global known variables: time 1.693e-05/0.536, allocations: 81.86 kB / 0.9544 GB, free: 4.27 MB / 0.7169 GB Notification: Performance of sort global known variables: time 1.01e-07/0.536, allocations: 0 / 0.9544 GB, free: 4.27 MB / 0.7169 GB Notification: Performance of remove unused functions: time 0.0002335/0.5362, allocations: 23.84 kB / 0.9544 GB, free: 4.262 MB / 0.7169 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.0002963/0.5365, allocations: 0.7399 MB / 0.9552 GB, free: 3.551 MB / 0.7169 GB Notification: Performance of simCode: created initialization part: time 8.383e-05/0.5366, allocations: 40.64 kB / 0.9552 GB, free: 3.531 MB / 0.7169 GB Notification: Performance of simCode: created event and clocks part: time 1.603e-06/0.5366, allocations: 3.938 kB / 0.9552 GB, free: 3.527 MB / 0.7169 GB Notification: Performance of simCode: created simulation system equations: time 2.596e-05/0.5367, allocations: 20 kB / 0.9552 GB, free: 3.52 MB / 0.7169 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002121/0.5369, allocations: 2.625 kB / 0.9552 GB, free: 3.52 MB / 0.7169 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0007883/0.5377, allocations: 1.334 MB / 0.9565 GB, free: 2.207 MB / 0.7169 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 8.107e-05/0.5378, allocations: 0.676 MB / 0.9572 GB, free: 1.512 MB / 0.7169 GB Notification: Performance of simCode: alias equations: time 3.026e-05/0.5378, allocations: 11.64 kB / 0.9572 GB, free: 1.504 MB / 0.7169 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.499e-05/0.5378, allocations: 14.97 kB / 0.9572 GB, free: 1.492 MB / 0.7169 GB Notification: Performance of SimCode: time 2.11e-07/0.5378, allocations: 0 / 0.9572 GB, free: 1.492 MB / 0.7169 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.9059/1.444, allocations: 1.464 MB / 0.9586 GB, free: 0.8086 MB / 0.7169 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001449/1.444, allocations: 257.5 kB / 0.9589 GB, free: 0.5508 MB / 0.7169 GB Notification: Performance of buildModelFMU: Generate platform static: time 2.045/3.489, allocations: 4.359 kB / 0.9589 GB, free: 0.5508 MB / 0.7169 GB (rm -f Buildings_9_Buildings.Fluid.BaseClasses.FlowModels.Validation.BasicFlowFunction_m_flow_DerivativeCheck.pipe ; mkfifo Buildings_9_Buildings.Fluid.BaseClasses.FlowModels.Validation.BasicFlowFunction_m_flow_DerivativeCheck.pipe ; head -c 1048576 < Buildings_9_Buildings.Fluid.BaseClasses.FlowModels.Validation.BasicFlowFunction_m_flow_DerivativeCheck.pipe >> ../files/Buildings_9_Buildings.Fluid.BaseClasses.FlowModels.Validation.BasicFlowFunction_m_flow_DerivativeCheck.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Buildings_9_Buildings.Fluid.BaseClasses.FlowModels.Validation.BasicFlowFunction_m_flow_DerivativeCheck_res.mat --tempDir=temp_Buildings_9_Buildings_Fluid_BaseClasses_FlowModels_Validation_BasicFlowFunction_m_flow_DerivativeCheck_fmu --startTime=-2 --stopTime=2 --timeout=50 --tolerance=1e-08 Buildings_9_Buildings_Fluid_BaseClasses_FlowModels_Validation_BasicFlowFunction_m_flow_DerivativeCheck.fmu > Buildings_9_Buildings.Fluid.BaseClasses.FlowModels.Validation.BasicFlowFunction_m_flow_DerivativeCheck.pipe 2>&1) diffSimulationResults("Buildings_9_Buildings.Fluid.BaseClasses.FlowModels.Validation.BasicFlowFunction_m_flow_DerivativeCheck_res.mat","/mnt/ReferenceFiles/Buildings/csv/maint_9.1.x/Buildings_Fluid_BaseClasses_FlowModels_Validation_BasicFlowFunction_m_flow_DerivativeCheck.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_9_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