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.001256/0.001257, allocations: 108 kB / 15.6 MB, free: 132 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.001169/0.00117, allocations: 194.5 kB / 16.53 MB, free: 6.391 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.307/1.307, allocations: 222.9 MB / 240.2 MB, free: 4.414 MB / 190.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.226/2.226, allocations: 390.2 MB / 0.6647 GB, free: 404 kB / 0.5137 GB Notification: Performance of FrontEnd - loaded program: time 0.001244/0.001244, allocations: 67.89 kB / 0.8126 GB, free: 14.36 MB / 0.67 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.496/0.4973, allocations: 140.4 MB / 0.9497 GB, free: 9.188 MB / 0.7169 GB Notification: Performance of NFInst.instantiate(Buildings.Fluid.BaseClasses.FlowModels.Validation.BasicFlowFunction_m_flow_DerivativeCheck2): time 0.00202/0.4993, allocations: 1.468 MB / 0.9512 GB, free: 8.027 MB / 0.7169 GB Notification: Performance of NFInst.instExpressions: time 0.0007756/0.5001, allocations: 0.6221 MB / 0.9518 GB, free: 7.535 MB / 0.7169 GB Notification: Performance of NFInst.updateImplicitVariability: time 2.907e-05/0.5002, allocations: 0 / 0.9518 GB, free: 7.535 MB / 0.7169 GB Notification: Performance of NFTyping.typeComponents: time 2.53e-05/0.5002, allocations: 3.938 kB / 0.9518 GB, free: 7.531 MB / 0.7169 GB Notification: Performance of NFTyping.typeBindings: time 3.861e-05/0.5003, allocations: 13.47 kB / 0.9518 GB, free: 7.52 MB / 0.7169 GB Notification: Performance of NFTyping.typeClassSections: time 0.0004268/0.5007, allocations: 158.5 kB / 0.9519 GB, free: 7.41 MB / 0.7169 GB Notification: Performance of NFFlatten.flatten: time 6.171e-05/0.5008, allocations: 54.5 kB / 0.952 GB, free: 7.379 MB / 0.7169 GB Notification: Performance of NFFlatten.resolveConnections: time 4.068e-05/0.5008, allocations: 8.422 kB / 0.952 GB, free: 7.375 MB / 0.7169 GB Notification: Performance of NFEvalConstants.evaluate: time 4.497e-05/0.5009, allocations: 17.28 kB / 0.952 GB, free: 7.367 MB / 0.7169 GB Notification: Performance of NFSimplifyModel.simplify: time 3.791e-05/0.5009, allocations: 27.81 kB / 0.952 GB, free: 7.348 MB / 0.7169 GB Notification: Performance of NFPackage.collectConstants: time 1.425e-05/0.5009, allocations: 11.33 kB / 0.952 GB, free: 7.34 MB / 0.7169 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0003951/0.5013, allocations: 344.5 kB / 0.9524 GB, free: 7.145 MB / 0.7169 GB Notification: Performance of NFScalarize.scalarize: time 1.417e-05/0.5013, allocations: 18.69 kB / 0.9524 GB, free: 7.129 MB / 0.7169 GB Notification: Performance of NFVerifyModel.verify: time 2.639e-05/0.5014, allocations: 24.06 kB / 0.9524 GB, free: 7.113 MB / 0.7169 GB Notification: Performance of NFConvertDAE.convert: time 0.0002243/0.5016, allocations: 172.6 kB / 0.9526 GB, free: 7.012 MB / 0.7169 GB Notification: Performance of FrontEnd - DAE generated: time 3.206e-06/0.5016, allocations: 1.406 kB / 0.9526 GB, free: 7.012 MB / 0.7169 GB Notification: Performance of FrontEnd: time 1.272e-06/0.5016, allocations: 4 kB / 0.9526 GB, free: 7.008 MB / 0.7169 GB Notification: Performance of Transformations before backend: time 4.098e-06/0.5016, allocations: 0 / 0.9526 GB, free: 7.008 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.0004324/0.5021, allocations: 399.6 kB / 0.953 GB, free: 6.598 MB / 0.7169 GB Notification: Performance of prepare preOptimizeDAE: time 3.081e-05/0.5021, allocations: 13.52 kB / 0.953 GB, free: 6.594 MB / 0.7169 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 2.595e-05/0.5021, allocations: 36.22 kB / 0.953 GB, free: 6.551 MB / 0.7169 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.962e-05/0.5022, allocations: 9.25 kB / 0.953 GB, free: 6.547 MB / 0.7169 GB Notification: Performance of preOpt evaluateParameters (simulation): time 5.705e-05/0.5022, allocations: 165.7 kB / 0.9532 GB, free: 6.348 MB / 0.7169 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.117e-05/0.5022, allocations: 3.812 kB / 0.9532 GB, free: 6.348 MB / 0.7169 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.78e-05/0.5023, allocations: 20.41 kB / 0.9532 GB, free: 6.332 MB / 0.7169 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001946/0.5025, allocations: 82.8 kB / 0.9533 GB, free: 6.27 MB / 0.7169 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.112e-05/0.5025, allocations: 9.172 kB / 0.9533 GB, free: 6.262 MB / 0.7169 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.091e-05/0.5025, allocations: 4 kB / 0.9533 GB, free: 6.258 MB / 0.7169 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.499e-06/0.5025, allocations: 2 kB / 0.9533 GB, free: 6.258 MB / 0.7169 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002094/0.5027, allocations: 47.92 kB / 0.9533 GB, free: 6.238 MB / 0.7169 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0003887/0.5031, allocations: 321.7 kB / 0.9536 GB, free: 5.914 MB / 0.7169 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0002433/0.5034, allocations: 80.25 kB / 0.9537 GB, free: 5.863 MB / 0.7169 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.00011/0.5035, allocations: 34.91 kB / 0.9538 GB, free: 5.84 MB / 0.7169 GB Notification: Performance of preOpt evalFunc (simulation): time 1.848e-05/0.5035, allocations: 9.578 kB / 0.9538 GB, free: 5.832 MB / 0.7169 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.312e-05/0.5035, allocations: 30.56 kB / 0.9538 GB, free: 5.793 MB / 0.7169 GB Notification: Performance of pre-optimization done (n=7): time 1.082e-06/0.5035, allocations: 1.344 kB / 0.9538 GB, free: 5.793 MB / 0.7169 GB Notification: Performance of matching and sorting (n=11): time 0.001321/0.5049, allocations: 0.6477 MB / 0.9544 GB, free: 5.219 MB / 0.7169 GB Notification: Performance of inlineWhenForInitialization (initialization): time 1.936e-05/0.5049, allocations: 52.75 kB / 0.9545 GB, free: 5.156 MB / 0.7169 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 3.905e-05/0.5049, allocations: 106.9 kB / 0.9546 GB, free: 5.047 MB / 0.7169 GB Notification: Performance of collectPreVariables (initialization): time 1.04e-05/0.505, allocations: 30.8 kB / 0.9546 GB, free: 5.012 MB / 0.7169 GB Notification: Performance of collectInitialEqns (initialization): time 1.946e-05/0.505, allocations: 86.27 kB / 0.9547 GB, free: 4.926 MB / 0.7169 GB Notification: Performance of collectInitialBindings (initialization): time 2.441e-05/0.505, allocations: 44.23 kB / 0.9547 GB, free: 4.887 MB / 0.7169 GB Notification: Performance of simplifyInitialFunctions (initialization): time 3.665e-05/0.5051, allocations: 30.39 kB / 0.9548 GB, free: 4.859 MB / 0.7169 GB Notification: Performance of setup shared object (initialization): time 3.274e-05/0.5051, allocations: 315.8 kB / 0.9551 GB, free: 4.543 MB / 0.7169 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001223/0.5052, allocations: 34.78 kB / 0.9551 GB, free: 4.527 MB / 0.7169 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001118/0.5053, allocations: 26.61 kB / 0.9551 GB, free: 4.52 MB / 0.7169 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002276/0.5056, allocations: 73.3 kB / 0.9552 GB, free: 4.484 MB / 0.7169 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.262e-06/0.5056, allocations: 4 kB / 0.9552 GB, free: 4.48 MB / 0.7169 GB Notification: Performance of matching and sorting (n=13) (initialization): time 0.0002777/0.5059, allocations: 126.6 kB / 0.9553 GB, free: 4.406 MB / 0.7169 GB Notification: Performance of prepare postOptimizeDAE: time 1.206e-05/0.5059, allocations: 4.5 kB / 0.9553 GB, free: 4.406 MB / 0.7169 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.847e-06/0.5059, allocations: 1.188 kB / 0.9553 GB, free: 4.406 MB / 0.7169 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.133e-05/0.5059, allocations: 3.984 kB / 0.9553 GB, free: 4.402 MB / 0.7169 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001324/0.506, allocations: 25.27 kB / 0.9554 GB, free: 4.398 MB / 0.7169 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.24e-06/0.5061, allocations: 3.938 kB / 0.9554 GB, free: 4.395 MB / 0.7169 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 6.007e-05/0.5061, allocations: 4.375 kB / 0.9554 GB, free: 4.395 MB / 0.7169 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.206e-06/0.5061, allocations: 10.31 kB / 0.9554 GB, free: 4.387 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.897e-05/0.5062, allocations: 117.3 kB / 0.9555 GB, free: 4.266 MB / 0.7169 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.027e-05/0.5062, allocations: 11.22 kB / 0.9555 GB, free: 4.258 MB / 0.7169 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0003268/0.5066, allocations: 123.3 kB / 0.9556 GB, free: 4.176 MB / 0.7169 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.905e-06/0.5066, allocations: 1.156 kB / 0.9556 GB, free: 4.176 MB / 0.7169 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.498e-06/0.5066, allocations: 5.062 kB / 0.9556 GB, free: 4.172 MB / 0.7169 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.916e-06/0.5066, allocations: 0 / 0.9556 GB, free: 4.172 MB / 0.7169 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0004289/0.507, allocations: 389.6 kB / 0.956 GB, free: 3.801 MB / 0.7169 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.312e-06/0.507, allocations: 0 / 0.956 GB, free: 3.801 MB / 0.7169 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001328/0.5072, allocations: 24.33 kB / 0.956 GB, free: 3.797 MB / 0.7169 GB Notification: Performance of postOpt tearingSystem (simulation): time 3.256e-06/0.5072, allocations: 5.625 kB / 0.956 GB, free: 3.793 MB / 0.7169 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.227e-06/0.5072, allocations: 4 kB / 0.956 GB, free: 3.789 MB / 0.7169 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.794e-06/0.5072, allocations: 5.359 kB / 0.956 GB, free: 3.785 MB / 0.7169 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.82e-07/0.5072, allocations: 0 / 0.956 GB, free: 3.785 MB / 0.7169 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004262/0.5076, allocations: 264.5 kB / 0.9563 GB, free: 3.582 MB / 0.7169 GB Notification: Performance of postOpt removeConstants (simulation): time 1.59e-05/0.5077, allocations: 83.39 kB / 0.9564 GB, free: 3.484 MB / 0.7169 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.624e-05/0.5077, allocations: 3.938 kB / 0.9564 GB, free: 3.48 MB / 0.7169 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001117/0.5078, allocations: 5.562 kB / 0.9564 GB, free: 3.48 MB / 0.7169 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.586e-05/0.5078, allocations: 11.73 kB / 0.9564 GB, free: 3.473 MB / 0.7169 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.874e-06/0.5078, allocations: 5.844 kB / 0.9564 GB, free: 3.469 MB / 0.7169 GB Notification: Performance of sorting global known variables: time 1.772e-05/0.5078, allocations: 87.23 kB / 0.9565 GB, free: 3.387 MB / 0.7169 GB Notification: Performance of sort global known variables: time 1e-07/0.5079, allocations: 0 / 0.9565 GB, free: 3.387 MB / 0.7169 GB Notification: Performance of remove unused functions: time 0.0002473/0.5081, allocations: 40.78 kB / 0.9565 GB, free: 3.375 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.0006061/0.5087, allocations: 0.8154 MB / 0.9573 GB, free: 2.637 MB / 0.7169 GB Notification: Performance of simCode: created initialization part: time 0.0002881/0.509, allocations: 79.45 kB / 0.9574 GB, free: 2.609 MB / 0.7169 GB Notification: Performance of simCode: created event and clocks part: time 2.054e-06/0.509, allocations: 0 / 0.9574 GB, free: 2.609 MB / 0.7169 GB Notification: Performance of simCode: created simulation system equations: time 0.0001223/0.5092, allocations: 48.56 kB / 0.9574 GB, free: 2.59 MB / 0.7169 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002633/0.5094, allocations: 8.906 kB / 0.9574 GB, free: 2.586 MB / 0.7169 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001515/0.5109, allocations: 1.589 MB / 0.959 GB, free: 1.152 MB / 0.7169 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 9.059e-05/0.511, allocations: 0.699 MB / 0.9597 GB, free: 452 kB / 0.7169 GB Notification: Performance of simCode: alias equations: time 5.37e-05/0.5111, allocations: 19.83 kB / 0.9597 GB, free: 436 kB / 0.7169 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.811e-05/0.5111, allocations: 20.72 kB / 0.9597 GB, free: 424 kB / 0.7169 GB Notification: Performance of SimCode: time 2.21e-07/0.5112, allocations: 0 / 0.9597 GB, free: 424 kB / 0.7169 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 1.885/2.396, allocations: 2.296 MB / 0.9619 GB, free: 15.25 MB / 0.7325 GB Notification: Performance of buildModelFMU: Generate platform static: time 9.164/11.56, allocations: 17.5 kB / 0.962 GB, free: 15.24 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