Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_10_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 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_DerivativeCheck2,fileNamePrefix="Buildings_10_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_10_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.00435/0.00435, allocations: 96.7 kB / 15.73 MB, free: 6.047 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.0013/0.0013, allocations: 194.8 kB / 16.67 MB, free: 5.973 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.255/1.255, allocations: 222.9 MB / 240.4 MB, free: 4.336 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.337/2.337, allocations: 437.1 MB / 0.7106 GB, free: 4.988 MB / 0.5606 GB Notification: Performance of FrontEnd - loaded program: time 0.001689/0.001689, allocations: 71.88 kB / 1.018 GB, free: 15.06 MB / 0.7794 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2495/0.2512, allocations: 151.6 MB / 1.166 GB, free: 7.316 MB / 0.92 GB Notification: Performance of NFInst.instantiate(Buildings.Fluid.BaseClasses.FlowModels.Validation.BasicFlowFunction_m_flow_DerivativeCheck2): time 0.002274/0.2535, allocations: 1.463 MB / 1.168 GB, free: 5.832 MB / 0.92 GB Notification: Performance of NFInst.instExpressions: time 0.0009719/0.2545, allocations: 0.6422 MB / 1.168 GB, free: 5.188 MB / 0.92 GB Notification: Performance of NFInst.updateImplicitVariability: time 2.768e-05/0.2545, allocations: 0 / 1.168 GB, free: 5.188 MB / 0.92 GB Notification: Performance of NFTyping.typeComponents: time 2.742e-05/0.2545, allocations: 3.938 kB / 1.168 GB, free: 5.184 MB / 0.92 GB Notification: Performance of NFTyping.typeBindings: time 3.603e-05/0.2546, allocations: 7.938 kB / 1.168 GB, free: 5.176 MB / 0.92 GB Notification: Performance of NFTyping.typeClassSections: time 0.0004732/0.2551, allocations: 159.4 kB / 1.168 GB, free: 5.02 MB / 0.92 GB Notification: Performance of NFFlatten.flatten: time 8.439e-05/0.2552, allocations: 55.78 kB / 1.168 GB, free: 4.965 MB / 0.92 GB Notification: Performance of NFFlatten.resolveConnections: time 3.438e-05/0.2552, allocations: 3.984 kB / 1.168 GB, free: 4.961 MB / 0.92 GB Notification: Performance of NFEvalConstants.evaluate: time 6.357e-05/0.2553, allocations: 23.92 kB / 1.169 GB, free: 4.938 MB / 0.92 GB Notification: Performance of NFSimplifyModel.simplify: time 4.511e-05/0.2553, allocations: 27.91 kB / 1.169 GB, free: 4.91 MB / 0.92 GB Notification: Performance of NFPackage.collectConstants: time 1.298e-05/0.2553, allocations: 4 kB / 1.169 GB, free: 4.906 MB / 0.92 GB Notification: Performance of NFFlatten.collectFunctions: time 0.000484/0.2558, allocations: 351.3 kB / 1.169 GB, free: 4.562 MB / 0.92 GB Notification: Performance of NFScalarize.scalarize: time 1.704e-05/0.2559, allocations: 11.94 kB / 1.169 GB, free: 4.551 MB / 0.92 GB Notification: Performance of NFVerifyModel.verify: time 3.408e-05/0.2559, allocations: 27.86 kB / 1.169 GB, free: 4.523 MB / 0.92 GB Notification: Performance of NFConvertDAE.convert: time 0.0002649/0.2562, allocations: 171.7 kB / 1.169 GB, free: 4.355 MB / 0.92 GB Notification: Performance of FrontEnd - DAE generated: time 4.588e-06/0.2562, allocations: 7.922 kB / 1.169 GB, free: 4.348 MB / 0.92 GB Notification: Performance of FrontEnd: time 1.142e-06/0.2562, allocations: 0 / 1.169 GB, free: 4.348 MB / 0.92 GB Notification: Performance of Transformations before backend: time 7.224e-06/0.2562, allocations: 0 / 1.169 GB, free: 4.348 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: 13 * Number of variables: 13 Notification: Performance of Generate backend data structure: time 0.0005834/0.2568, allocations: 402.9 kB / 1.169 GB, free: 3.902 MB / 0.92 GB Notification: Performance of prepare preOptimizeDAE: time 3.134e-05/0.2568, allocations: 12.03 kB / 1.169 GB, free: 3.891 MB / 0.92 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.684e-05/0.2569, allocations: 42.73 kB / 1.17 GB, free: 3.84 MB / 0.92 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.648e-05/0.2569, allocations: 8.875 kB / 1.17 GB, free: 3.832 MB / 0.92 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001213/0.257, allocations: 168.3 kB / 1.17 GB, free: 3.629 MB / 0.92 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.067e-05/0.257, allocations: 4.375 kB / 1.17 GB, free: 3.625 MB / 0.92 GB Notification: Performance of preOpt expandDerOperator (simulation): time 2.203e-05/0.2571, allocations: 8.375 kB / 1.17 GB, free: 3.617 MB / 0.92 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002236/0.2573, allocations: 82.16 kB / 1.17 GB, free: 3.531 MB / 0.92 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.407e-05/0.2573, allocations: 3.938 kB / 1.17 GB, free: 3.527 MB / 0.92 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.399e-05/0.2573, allocations: 8 kB / 1.17 GB, free: 3.52 MB / 0.92 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.017e-05/0.2574, allocations: 7.984 kB / 1.17 GB, free: 3.512 MB / 0.92 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002222/0.2576, allocations: 43.97 kB / 1.17 GB, free: 3.469 MB / 0.92 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0004916/0.2581, allocations: 320.6 kB / 1.17 GB, free: 3.105 MB / 0.92 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0002956/0.2584, allocations: 82.53 kB / 1.17 GB, free: 3.016 MB / 0.92 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001207/0.2585, allocations: 36.83 kB / 1.17 GB, free: 2.977 MB / 0.92 GB Notification: Performance of preOpt evalFunc (simulation): time 1.634e-05/0.2585, allocations: 0 / 1.17 GB, free: 2.977 MB / 0.92 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.55e-05/0.2586, allocations: 34.56 kB / 1.17 GB, free: 2.934 MB / 0.92 GB Notification: Performance of pre-optimization done (n=7): time 8.11e-07/0.2586, allocations: 0 / 1.17 GB, free: 2.934 MB / 0.92 GB Notification: Performance of matching and sorting (n=11): time 0.001512/0.2601, allocations: 0.646 MB / 1.171 GB, free: 2.195 MB / 0.92 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.138e-05/0.2601, allocations: 59.34 kB / 1.171 GB, free: 2.125 MB / 0.92 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 6.705e-05/0.2602, allocations: 105.8 kB / 1.171 GB, free: 2.012 MB / 0.92 GB Notification: Performance of collectPreVariables (initialization): time 1.934e-05/0.2602, allocations: 33.7 kB / 1.171 GB, free: 1.973 MB / 0.92 GB Notification: Performance of collectInitialEqns (initialization): time 5.079e-05/0.2603, allocations: 88.09 kB / 1.171 GB, free: 1.883 MB / 0.92 GB Notification: Performance of collectInitialBindings (initialization): time 3.95e-05/0.2603, allocations: 43.58 kB / 1.171 GB, free: 1.84 MB / 0.92 GB Notification: Performance of simplifyInitialFunctions (initialization): time 4.488e-05/0.2604, allocations: 29.7 kB / 1.171 GB, free: 1.805 MB / 0.92 GB Notification: Performance of setup shared object (initialization): time 0.0001238/0.2605, allocations: 314.8 kB / 1.172 GB, free: 1.488 MB / 0.92 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001278/0.2607, allocations: 35.97 kB / 1.172 GB, free: 1.453 MB / 0.92 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000122/0.2608, allocations: 27.98 kB / 1.172 GB, free: 1.426 MB / 0.92 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002402/0.261, allocations: 79.39 kB / 1.172 GB, free: 1.348 MB / 0.92 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.51e-07/0.261, allocations: 4 kB / 1.172 GB, free: 1.344 MB / 0.92 GB Notification: Performance of matching and sorting (n=13) (initialization): time 0.0003009/0.2613, allocations: 117.7 kB / 1.172 GB, free: 1.223 MB / 0.92 GB Notification: Performance of prepare postOptimizeDAE: time 1.041e-05/0.2614, allocations: 4 kB / 1.172 GB, free: 1.219 MB / 0.92 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.116e-06/0.2614, allocations: 0 / 1.172 GB, free: 1.219 MB / 0.92 GB Notification: Performance of postOpt tearingSystem (initialization): time 9.578e-06/0.2614, allocations: 0 / 1.172 GB, free: 1.219 MB / 0.92 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001342/0.2615, allocations: 31.97 kB / 1.172 GB, free: 1.188 MB / 0.92 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.384e-06/0.2615, allocations: 4.25 kB / 1.172 GB, free: 1.184 MB / 0.92 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 6.091e-05/0.2616, allocations: 12 kB / 1.172 GB, free: 1.172 MB / 0.92 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.823e-06/0.2616, allocations: 0 / 1.172 GB, free: 1.172 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 (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 7.846e-05/0.2617, allocations: 113.8 kB / 1.172 GB, free: 1.051 MB / 0.92 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.917e-05/0.2617, allocations: 7.953 kB / 1.172 GB, free: 1.043 MB / 0.92 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0003551/0.2621, allocations: 129.5 kB / 1.172 GB, free: 0.9062 MB / 0.92 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.874e-06/0.2621, allocations: 4 kB / 1.172 GB, free: 0.9023 MB / 0.92 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.839e-06/0.2621, allocations: 4.031 kB / 1.172 GB, free: 0.8984 MB / 0.92 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.089e-06/0.2621, allocations: 7.938 kB / 1.172 GB, free: 0.8906 MB / 0.92 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0005507/0.2627, allocations: 386.4 kB / 1.172 GB, free: 468 kB / 0.92 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.363e-06/0.2627, allocations: 0 / 1.172 GB, free: 468 kB / 0.92 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001326/0.2628, allocations: 23.98 kB / 1.173 GB, free: 444 kB / 0.92 GB Notification: Performance of postOpt tearingSystem (simulation): time 3.697e-06/0.2628, allocations: 3.938 kB / 1.173 GB, free: 440 kB / 0.92 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.016e-05/0.2629, allocations: 4 kB / 1.173 GB, free: 436 kB / 0.92 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.368e-06/0.2629, allocations: 4 kB / 1.173 GB, free: 432 kB / 0.92 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.01e-07/0.2629, allocations: 0 / 1.173 GB, free: 432 kB / 0.92 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004791/0.2634, allocations: 255.6 kB / 1.173 GB, free: 160 kB / 0.92 GB Notification: Performance of postOpt removeConstants (simulation): time 4.279e-05/0.2634, allocations: 88.98 kB / 1.173 GB, free: 52 kB / 0.92 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.301e-05/0.2634, allocations: 7.969 kB / 1.173 GB, free: 44 kB / 0.92 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001068/0.2636, allocations: 4 kB / 1.173 GB, free: 40 kB / 0.92 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.851e-05/0.2636, allocations: 11.98 kB / 1.173 GB, free: 28 kB / 0.92 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.698e-06/0.2636, allocations: 8.062 kB / 1.173 GB, free: 20 kB / 0.92 GB Notification: Performance of sorting global known variables: time 4.889e-05/0.2636, allocations: 79.28 kB / 1.173 GB, free: 15.94 MB / 0.9356 GB Notification: Performance of sort global known variables: time 1.1e-07/0.2636, allocations: 0 / 1.173 GB, free: 15.94 MB / 0.9356 GB Notification: Performance of remove unused functions: time 0.0002396/0.2639, allocations: 43.86 kB / 1.173 GB, free: 15.9 MB / 0.9356 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.0008416/0.2647, allocations: 0.8215 MB / 1.174 GB, free: 15.05 MB / 0.9356 GB Notification: Performance of simCode: created initialization part: time 0.0002933/0.265, allocations: 83.31 kB / 1.174 GB, free: 14.97 MB / 0.9356 GB Notification: Performance of simCode: created event and clocks part: time 1.793e-06/0.2651, allocations: 0 / 1.174 GB, free: 14.97 MB / 0.9356 GB Notification: Performance of simCode: created simulation system equations: time 0.0001339/0.2652, allocations: 47.92 kB / 1.174 GB, free: 14.93 MB / 0.9356 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002256/0.2654, allocations: 7.984 kB / 1.174 GB, free: 14.92 MB / 0.9356 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001957/0.2674, allocations: 1.604 MB / 1.176 GB, free: 13.24 MB / 0.9356 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002978/0.2677, allocations: 0.6924 MB / 1.176 GB, free: 12.52 MB / 0.9356 GB Notification: Performance of simCode: alias equations: time 4.962e-05/0.2678, allocations: 16.61 kB / 1.176 GB, free: 12.5 MB / 0.9356 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.995e-05/0.2678, allocations: 27.42 kB / 1.176 GB, free: 12.48 MB / 0.9356 GB Notification: Performance of SimCode: time 2.11e-07/0.2678, allocations: 0 / 1.176 GB, free: 12.48 MB / 0.9356 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 1.522/1.789, allocations: 2.322 MB / 1.178 GB, free: 10.34 MB / 0.9356 GB Notification: Performance of buildModelFMU: Generate platform static: time 9.93/11.72, allocations: 23.36 kB / 1.179 GB, free: 10.32 MB / 0.9356 GB (rm -f Buildings_10_Buildings.Fluid.BaseClasses.FlowModels.Validation.BasicFlowFunction_m_flow_DerivativeCheck2.pipe ; mkfifo Buildings_10_Buildings.Fluid.BaseClasses.FlowModels.Validation.BasicFlowFunction_m_flow_DerivativeCheck2.pipe ; head -c 1048576 < Buildings_10_Buildings.Fluid.BaseClasses.FlowModels.Validation.BasicFlowFunction_m_flow_DerivativeCheck2.pipe >> ../files/Buildings_10_Buildings.Fluid.BaseClasses.FlowModels.Validation.BasicFlowFunction_m_flow_DerivativeCheck2.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Buildings_10_Buildings.Fluid.BaseClasses.FlowModels.Validation.BasicFlowFunction_m_flow_DerivativeCheck2_res.mat --tempDir=temp_Buildings_10_Buildings_Fluid_BaseClasses_FlowModels_Validation_BasicFlowFunction_m_flow_DerivativeCheck2_fmu --startTime=-2 --stopTime=2 --timeout=400 --tolerance=1e-08 Buildings_10_Buildings_Fluid_BaseClasses_FlowModels_Validation_BasicFlowFunction_m_flow_DerivativeCheck2.fmu > Buildings_10_Buildings.Fluid.BaseClasses.FlowModels.Validation.BasicFlowFunction_m_flow_DerivativeCheck2.pipe 2>&1) diffSimulationResults("Buildings_10_Buildings.Fluid.BaseClasses.FlowModels.Validation.BasicFlowFunction_m_flow_DerivativeCheck2_res.mat","/mnt/ReferenceFiles/Buildings/csv/maint_10.0.x/Buildings_Fluid_BaseClasses_FlowModels_Validation_BasicFlowFunction_m_flow_DerivativeCheck2.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_10_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