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.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_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.001443/0.001443, 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.00163/0.00163, allocations: 192.8 kB / 16.13 MB, free: 6.648 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.52 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.218/2.218, allocations: 390.2 MB / 0.6643 GB, free: 0.6133 MB / 0.5137 GB Notification: Performance of FrontEnd - loaded program: time 0.001224/0.001224, allocations: 63.91 kB / 0.812 GB, free: 14.77 MB / 0.67 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.5071/0.5083, allocations: 140.4 MB / 0.949 GB, free: 9.152 MB / 0.7169 GB Notification: Performance of NFInst.instantiate(Buildings.Fluid.BaseClasses.FlowModels.Validation.BasicFlowFunction_m_flow_DerivativeCheck2): time 0.001989/0.5103, allocations: 1.526 MB / 0.9505 GB, free: 7.953 MB / 0.7169 GB Notification: Performance of NFInst.instExpressions: time 0.0007859/0.5111, allocations: 0.6546 MB / 0.9512 GB, free: 7.438 MB / 0.7169 GB Notification: Performance of NFInst.updateImplicitVariability: time 2.506e-05/0.5112, allocations: 1.125 kB / 0.9512 GB, free: 7.438 MB / 0.7169 GB Notification: Performance of NFTyping.typeComponents: time 2.62e-05/0.5112, allocations: 4 kB / 0.9512 GB, free: 7.434 MB / 0.7169 GB Notification: Performance of NFTyping.typeBindings: time 4.512e-05/0.5113, allocations: 9.109 kB / 0.9512 GB, free: 7.426 MB / 0.7169 GB Notification: Performance of NFTyping.typeClassSections: time 0.0003753/0.5116, allocations: 134.6 kB / 0.9513 GB, free: 7.336 MB / 0.7169 GB Notification: Performance of NFFlatten.flatten: time 6.137e-05/0.5117, allocations: 49.73 kB / 0.9514 GB, free: 7.309 MB / 0.7169 GB Notification: Performance of NFFlatten.resolveConnections: time 3.749e-05/0.5118, allocations: 7.859 kB / 0.9514 GB, free: 7.305 MB / 0.7169 GB Notification: Performance of NFEvalConstants.evaluate: time 4.468e-05/0.5118, allocations: 16.78 kB / 0.9514 GB, free: 7.297 MB / 0.7169 GB Notification: Performance of NFSimplifyModel.simplify: time 3.64e-05/0.5119, allocations: 32.55 kB / 0.9514 GB, free: 7.273 MB / 0.7169 GB Notification: Performance of NFPackage.collectConstants: time 1.316e-05/0.5119, allocations: 3.156 kB / 0.9514 GB, free: 7.273 MB / 0.7169 GB Notification: Performance of NFFlatten.collectFunctions: time 0.000389/0.5123, allocations: 345.7 kB / 0.9518 GB, free: 7.074 MB / 0.7169 GB Notification: Performance of NFScalarize.scalarize: time 1.379e-05/0.5123, allocations: 14.58 kB / 0.9518 GB, free: 7.062 MB / 0.7169 GB Notification: Performance of NFVerifyModel.verify: time 3.049e-05/0.5123, allocations: 24.19 kB / 0.9518 GB, free: 7.047 MB / 0.7169 GB Notification: Performance of NFConvertDAE.convert: time 0.0002215/0.5125, allocations: 169.5 kB / 0.952 GB, free: 6.949 MB / 0.7169 GB Notification: Performance of FrontEnd - DAE generated: time 3.727e-06/0.5126, allocations: 0 / 0.952 GB, free: 6.949 MB / 0.7169 GB Notification: Performance of FrontEnd: time 8.01e-07/0.5126, allocations: 0 / 0.952 GB, free: 6.949 MB / 0.7169 GB Notification: Performance of Transformations before backend: time 6.432e-06/0.5126, allocations: 3.938 kB / 0.952 GB, free: 6.945 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: 13 * Number of variables: 13 Notification: Performance of Generate backend data structure: time 0.0004054/0.513, allocations: 411.7 kB / 0.9523 GB, free: 6.523 MB / 0.7169 GB Notification: Performance of prepare preOptimizeDAE: time 3.273e-05/0.513, allocations: 8.625 kB / 0.9524 GB, free: 6.523 MB / 0.7169 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 2.363e-05/0.513, allocations: 38.03 kB / 0.9524 GB, free: 6.48 MB / 0.7169 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.787e-05/0.5131, allocations: 7.531 kB / 0.9524 GB, free: 6.477 MB / 0.7169 GB Notification: Performance of preOpt evaluateParameters (simulation): time 5.523e-05/0.5131, allocations: 166.1 kB / 0.9526 GB, free: 6.277 MB / 0.7169 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.779e-05/0.5132, allocations: 4.312 kB / 0.9526 GB, free: 6.277 MB / 0.7169 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.898e-05/0.5132, allocations: 12.78 kB / 0.9526 GB, free: 6.27 MB / 0.7169 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000191/0.5134, allocations: 82.11 kB / 0.9527 GB, free: 6.207 MB / 0.7169 GB Notification: Performance of preOpt findStateOrder (simulation): time 8.937e-06/0.5134, allocations: 4.781 kB / 0.9527 GB, free: 6.203 MB / 0.7169 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.013e-05/0.5134, allocations: 4.969 kB / 0.9527 GB, free: 6.199 MB / 0.7169 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.538e-06/0.5134, allocations: 5.844 kB / 0.9527 GB, free: 6.195 MB / 0.7169 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001987/0.5136, allocations: 51.83 kB / 0.9527 GB, free: 6.172 MB / 0.7169 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0003927/0.514, allocations: 317.4 kB / 0.953 GB, free: 5.852 MB / 0.7169 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0002398/0.5143, allocations: 83.44 kB / 0.9531 GB, free: 5.797 MB / 0.7169 GB Notification: Performance of preOpt resolveLoops (simulation): time 9.78e-05/0.5144, allocations: 32.06 kB / 0.9531 GB, free: 5.777 MB / 0.7169 GB Notification: Performance of preOpt evalFunc (simulation): time 1.65e-05/0.5144, allocations: 1.406 kB / 0.9531 GB, free: 5.777 MB / 0.7169 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.271e-05/0.5144, allocations: 34.56 kB / 0.9532 GB, free: 5.734 MB / 0.7169 GB Notification: Performance of pre-optimization done (n=7): time 1.162e-06/0.5144, allocations: 1.75 kB / 0.9532 GB, free: 5.734 MB / 0.7169 GB Notification: Performance of matching and sorting (n=11): time 0.001338/0.5158, allocations: 0.651 MB / 0.9538 GB, free: 5.156 MB / 0.7169 GB Notification: Performance of inlineWhenForInitialization (initialization): time 1.56e-05/0.5158, allocations: 56.69 kB / 0.9539 GB, free: 5.09 MB / 0.7169 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 4.063e-05/0.5158, allocations: 107.3 kB / 0.954 GB, free: 4.98 MB / 0.7169 GB Notification: Performance of collectPreVariables (initialization): time 9.538e-06/0.5159, allocations: 26.98 kB / 0.954 GB, free: 4.949 MB / 0.7169 GB Notification: Performance of collectInitialEqns (initialization): time 1.939e-05/0.5159, allocations: 89.36 kB / 0.9541 GB, free: 4.859 MB / 0.7169 GB Notification: Performance of collectInitialBindings (initialization): time 2.384e-05/0.5159, allocations: 40.58 kB / 0.9541 GB, free: 4.824 MB / 0.7169 GB Notification: Performance of simplifyInitialFunctions (initialization): time 3.78e-05/0.516, allocations: 30.83 kB / 0.9541 GB, free: 4.797 MB / 0.7169 GB Notification: Performance of setup shared object (initialization): time 3.043e-05/0.516, allocations: 316.4 kB / 0.9544 GB, free: 4.48 MB / 0.7169 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001209/0.5161, allocations: 37.34 kB / 0.9545 GB, free: 4.461 MB / 0.7169 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001127/0.5162, allocations: 31.36 kB / 0.9545 GB, free: 4.449 MB / 0.7169 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.000219/0.5165, allocations: 74.7 kB / 0.9546 GB, free: 4.414 MB / 0.7169 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 8.22e-07/0.5165, allocations: 3.938 kB / 0.9546 GB, free: 4.41 MB / 0.7169 GB Notification: Performance of matching and sorting (n=13) (initialization): time 0.0002663/0.5167, allocations: 115.9 kB / 0.9547 GB, free: 4.344 MB / 0.7169 GB Notification: Performance of prepare postOptimizeDAE: time 1.176e-05/0.5168, allocations: 11.11 kB / 0.9547 GB, free: 4.34 MB / 0.7169 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.165e-06/0.5168, allocations: 0 / 0.9547 GB, free: 4.34 MB / 0.7169 GB Notification: Performance of postOpt tearingSystem (initialization): time 9.327e-06/0.5168, allocations: 5.25 kB / 0.9547 GB, free: 4.336 MB / 0.7169 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001324/0.5169, allocations: 28.11 kB / 0.9547 GB, free: 4.328 MB / 0.7169 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.47e-06/0.5169, allocations: 5.25 kB / 0.9547 GB, free: 4.324 MB / 0.7169 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 5.79e-05/0.517, allocations: 2.594 kB / 0.9547 GB, free: 4.324 MB / 0.7169 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.027e-06/0.517, allocations: 6.875 kB / 0.9547 GB, free: 4.32 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 (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 4.7e-05/0.5171, allocations: 118.1 kB / 0.9549 GB, free: 4.199 MB / 0.7169 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.981e-05/0.5171, allocations: 6.625 kB / 0.9549 GB, free: 4.195 MB / 0.7169 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0003094/0.5174, allocations: 131.6 kB / 0.955 GB, free: 4.105 MB / 0.7169 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.354e-06/0.5174, allocations: 1.062 kB / 0.955 GB, free: 4.105 MB / 0.7169 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.747e-06/0.5174, allocations: 3.938 kB / 0.955 GB, free: 4.102 MB / 0.7169 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.747e-06/0.5174, allocations: 5.203 kB / 0.955 GB, free: 4.098 MB / 0.7169 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0004147/0.5178, allocations: 376.5 kB / 0.9554 GB, free: 3.738 MB / 0.7169 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.383e-06/0.5179, allocations: 0 / 0.9554 GB, free: 3.738 MB / 0.7169 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001333/0.518, allocations: 28.11 kB / 0.9554 GB, free: 3.73 MB / 0.7169 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.104e-06/0.518, allocations: 9.031 kB / 0.9554 GB, free: 3.723 MB / 0.7169 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.025e-05/0.518, allocations: 9.109 kB / 0.9554 GB, free: 3.715 MB / 0.7169 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.262e-06/0.518, allocations: 1.312 kB / 0.9554 GB, free: 3.715 MB / 0.7169 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.71e-07/0.518, allocations: 0 / 0.9554 GB, free: 3.715 MB / 0.7169 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003988/0.5184, allocations: 244.4 kB / 0.9556 GB, free: 3.531 MB / 0.7169 GB Notification: Performance of postOpt removeConstants (simulation): time 1.483e-05/0.5185, allocations: 82.42 kB / 0.9557 GB, free: 3.434 MB / 0.7169 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.636e-05/0.5185, allocations: 13.41 kB / 0.9557 GB, free: 3.422 MB / 0.7169 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001137/0.5186, allocations: 8.234 kB / 0.9557 GB, free: 3.418 MB / 0.7169 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.818e-05/0.5186, allocations: 4.312 kB / 0.9557 GB, free: 3.418 MB / 0.7169 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.037e-06/0.5186, allocations: 6.938 kB / 0.9557 GB, free: 3.414 MB / 0.7169 GB Notification: Performance of sorting global known variables: time 1.775e-05/0.5187, allocations: 81.95 kB / 0.9558 GB, free: 3.336 MB / 0.7169 GB Notification: Performance of sort global known variables: time 1.11e-07/0.5187, allocations: 0 / 0.9558 GB, free: 3.336 MB / 0.7169 GB Notification: Performance of remove unused functions: time 0.0002464/0.5189, allocations: 38.56 kB / 0.9559 GB, free: 3.324 MB / 0.7169 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.000616/0.5195, allocations: 0.8178 MB / 0.9567 GB, free: 2.586 MB / 0.7169 GB Notification: Performance of simCode: created initialization part: time 0.0002684/0.5198, allocations: 83.3 kB / 0.9567 GB, free: 2.555 MB / 0.7169 GB Notification: Performance of simCode: created event and clocks part: time 1.923e-06/0.5198, allocations: 0 / 0.9567 GB, free: 2.555 MB / 0.7169 GB Notification: Performance of simCode: created simulation system equations: time 0.0001265/0.52, allocations: 53.02 kB / 0.9568 GB, free: 2.531 MB / 0.7169 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002465/0.5202, allocations: 8.906 kB / 0.9568 GB, free: 2.527 MB / 0.7169 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001475/0.5217, allocations: 1.612 MB / 0.9584 GB, free: 1.066 MB / 0.7169 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 8.303e-05/0.5218, allocations: 0.6926 MB / 0.959 GB, free: 372 kB / 0.7169 GB Notification: Performance of simCode: alias equations: time 5.468e-05/0.5218, allocations: 18.31 kB / 0.9591 GB, free: 356 kB / 0.7169 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.733e-05/0.5219, allocations: 25.12 kB / 0.9591 GB, free: 340 kB / 0.7169 GB Notification: Performance of SimCode: time 2e-07/0.5219, allocations: 0 / 0.9591 GB, free: 340 kB / 0.7169 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 1.295/1.817, allocations: 2.154 MB / 0.9612 GB, free: 15.31 MB / 0.7325 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0003389/1.817, allocations: 254 kB / 0.9614 GB, free: 15.05 MB / 0.7325 GB Notification: Performance of buildModelFMU: Generate platform static: time 2.207/4.024, allocations: 1.875 kB / 0.9614 GB, free: 15.05 MB / 0.7325 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