Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_11_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 11.1.0-maint.11.x/package.mo", uses=false) Using package Buildings with version 11.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.1.0-maint.11.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_11_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_11_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.001468/0.001468, allocations: 108 kB / 15.61 MB, free: 152 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.001357/0.001357, allocations: 192.9 kB / 16.53 MB, free: 6.664 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.263/1.263, allocations: 222.9 MB / 240.2 MB, free: 4.398 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.1.0-maint.11.x/package.mo): time 2.547/2.547, allocations: 469.8 MB / 0.7424 GB, free: 7.457 MB / 0.5919 GB Notification: Performance of FrontEnd - loaded program: time 0.001679/0.001679, allocations: 71.56 kB / 0.9087 GB, free: 34.4 MB / 0.7169 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2607/0.2624, allocations: 159.2 MB / 1.064 GB, free: 14.21 MB / 0.8262 GB Notification: Performance of NFInst.instantiate(Buildings.Fluid.BaseClasses.FlowModels.Validation.BasicFlowFunction_m_flow_DerivativeCheck2): time 0.00247/0.2649, allocations: 1.472 MB / 1.066 GB, free: 12.73 MB / 0.8262 GB Notification: Performance of NFInst.instExpressions: time 0.001018/0.266, allocations: 0.6323 MB / 1.066 GB, free: 12.09 MB / 0.8262 GB Notification: Performance of NFInst.updateImplicitVariability: time 2.691e-05/0.266, allocations: 0 / 1.066 GB, free: 12.09 MB / 0.8262 GB Notification: Performance of NFTyping.typeComponents: time 2.524e-05/0.266, allocations: 3.938 kB / 1.066 GB, free: 12.09 MB / 0.8262 GB Notification: Performance of NFTyping.typeBindings: time 5.008e-05/0.2661, allocations: 11.92 kB / 1.066 GB, free: 12.08 MB / 0.8262 GB Notification: Performance of NFTyping.typeClassSections: time 0.000498/0.2666, allocations: 160.5 kB / 1.066 GB, free: 11.92 MB / 0.8262 GB Notification: Performance of NFFlatten.flatten: time 7.85e-05/0.2667, allocations: 43.86 kB / 1.066 GB, free: 11.88 MB / 0.8262 GB Notification: Performance of NFFlatten.resolveConnections: time 4.761e-05/0.2667, allocations: 11.97 kB / 1.066 GB, free: 11.87 MB / 0.8262 GB Notification: Performance of NFEvalConstants.evaluate: time 5.275e-05/0.2668, allocations: 19.94 kB / 1.066 GB, free: 11.85 MB / 0.8262 GB Notification: Performance of NFSimplifyModel.simplify: time 4.88e-05/0.2668, allocations: 31.84 kB / 1.066 GB, free: 11.82 MB / 0.8262 GB Notification: Performance of NFPackage.collectConstants: time 1.409e-05/0.2669, allocations: 4 kB / 1.066 GB, free: 11.81 MB / 0.8262 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0004785/0.2673, allocations: 347.3 kB / 1.067 GB, free: 11.47 MB / 0.8262 GB Notification: Performance of NFScalarize.scalarize: time 1.689e-05/0.2674, allocations: 11.98 kB / 1.067 GB, free: 11.46 MB / 0.8262 GB Notification: Performance of NFVerifyModel.verify: time 3.829e-05/0.2674, allocations: 31.86 kB / 1.067 GB, free: 11.43 MB / 0.8262 GB Notification: Performance of NFConvertDAE.convert: time 0.0002634/0.2677, allocations: 175.8 kB / 1.067 GB, free: 11.26 MB / 0.8262 GB Notification: Performance of FrontEnd - DAE generated: time 5.871e-06/0.2677, allocations: 4 kB / 1.067 GB, free: 11.25 MB / 0.8262 GB Notification: Performance of FrontEnd: time 3.105e-06/0.2677, allocations: 0 / 1.067 GB, free: 11.25 MB / 0.8262 GB Notification: Performance of Transformations before backend: time 3.937e-06/0.2677, allocations: 3.938 kB / 1.067 GB, free: 11.25 MB / 0.8262 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.0005728/0.2683, allocations: 395.3 kB / 1.067 GB, free: 10.81 MB / 0.8262 GB Notification: Performance of prepare preOptimizeDAE: time 3.396e-05/0.2683, allocations: 8.031 kB / 1.067 GB, free: 10.8 MB / 0.8262 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.761e-05/0.2684, allocations: 38.75 kB / 1.067 GB, free: 10.76 MB / 0.8262 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.973e-05/0.2684, allocations: 8.844 kB / 1.067 GB, free: 10.75 MB / 0.8262 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001325/0.2685, allocations: 164.4 kB / 1.068 GB, free: 10.55 MB / 0.8262 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.248e-05/0.2686, allocations: 8.375 kB / 1.068 GB, free: 10.54 MB / 0.8262 GB Notification: Performance of preOpt expandDerOperator (simulation): time 2.076e-05/0.2686, allocations: 8.312 kB / 1.068 GB, free: 10.54 MB / 0.8262 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002299/0.2688, allocations: 82.2 kB / 1.068 GB, free: 10.45 MB / 0.8262 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.387e-05/0.2689, allocations: 3.938 kB / 1.068 GB, free: 10.45 MB / 0.8262 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.132e-05/0.2689, allocations: 7.938 kB / 1.068 GB, free: 10.44 MB / 0.8262 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.871e-06/0.2689, allocations: 4 kB / 1.068 GB, free: 10.43 MB / 0.8262 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002239/0.2691, allocations: 55.95 kB / 1.068 GB, free: 10.38 MB / 0.8262 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.000514/0.2696, allocations: 320.6 kB / 1.068 GB, free: 10.02 MB / 0.8262 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0002731/0.2699, allocations: 90.45 kB / 1.068 GB, free: 9.918 MB / 0.8262 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001077/0.27, allocations: 28.84 kB / 1.068 GB, free: 9.887 MB / 0.8262 GB Notification: Performance of preOpt evalFunc (simulation): time 1.71e-05/0.27, allocations: 160 / 1.068 GB, free: 9.887 MB / 0.8262 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.726e-05/0.2701, allocations: 38.55 kB / 1.068 GB, free: 9.84 MB / 0.8262 GB Notification: Performance of pre-optimization done (n=7): time 8.62e-07/0.2701, allocations: 0 / 1.068 GB, free: 9.84 MB / 0.8262 GB Notification: Performance of matching and sorting (n=11): time 0.001527/0.2716, allocations: 0.6461 MB / 1.069 GB, free: 9.102 MB / 0.8262 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.772e-05/0.2717, allocations: 51.41 kB / 1.069 GB, free: 9.039 MB / 0.8262 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 6.848e-05/0.2717, allocations: 105.8 kB / 1.069 GB, free: 8.926 MB / 0.8262 GB Notification: Performance of collectPreVariables (initialization): time 1.877e-05/0.2718, allocations: 33.7 kB / 1.069 GB, free: 8.887 MB / 0.8262 GB Notification: Performance of collectInitialEqns (initialization): time 4.821e-05/0.2718, allocations: 88.05 kB / 1.069 GB, free: 8.797 MB / 0.8262 GB Notification: Performance of collectInitialBindings (initialization): time 3.786e-05/0.2719, allocations: 43.44 kB / 1.069 GB, free: 8.754 MB / 0.8262 GB Notification: Performance of simplifyInitialFunctions (initialization): time 4.456e-05/0.2719, allocations: 29.7 kB / 1.069 GB, free: 8.719 MB / 0.8262 GB Notification: Performance of setup shared object (initialization): time 0.0001204/0.272, allocations: 310.8 kB / 1.069 GB, free: 8.406 MB / 0.8262 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001296/0.2722, allocations: 39.91 kB / 1.069 GB, free: 8.367 MB / 0.8262 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001146/0.2723, allocations: 32.61 kB / 1.07 GB, free: 8.336 MB / 0.8262 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002294/0.2725, allocations: 70.7 kB / 1.07 GB, free: 8.266 MB / 0.8262 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 9.22e-07/0.2725, allocations: 0 / 1.07 GB, free: 8.266 MB / 0.8262 GB Notification: Performance of matching and sorting (n=13) (initialization): time 0.0003003/0.2728, allocations: 122.6 kB / 1.07 GB, free: 8.141 MB / 0.8262 GB Notification: Performance of prepare postOptimizeDAE: time 1.418e-05/0.2729, allocations: 7.984 kB / 1.07 GB, free: 8.133 MB / 0.8262 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.366e-06/0.2729, allocations: 0 / 1.07 GB, free: 8.133 MB / 0.8262 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.082e-05/0.2729, allocations: 0 / 1.07 GB, free: 8.133 MB / 0.8262 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001344/0.273, allocations: 27.92 kB / 1.07 GB, free: 8.105 MB / 0.8262 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.126e-06/0.273, allocations: 7.938 kB / 1.07 GB, free: 8.098 MB / 0.8262 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 5.806e-05/0.2731, allocations: 8 kB / 1.07 GB, free: 8.09 MB / 0.8262 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.953e-06/0.2731, allocations: 4 kB / 1.07 GB, free: 8.086 MB / 0.8262 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 8.355e-05/0.2732, allocations: 117.8 kB / 1.07 GB, free: 7.961 MB / 0.8262 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.878e-05/0.2732, allocations: 4 kB / 1.07 GB, free: 7.957 MB / 0.8262 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.000345/0.2736, allocations: 129.4 kB / 1.07 GB, free: 7.824 MB / 0.8262 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.647e-06/0.2736, allocations: 4 kB / 1.07 GB, free: 7.82 MB / 0.8262 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.729e-06/0.2736, allocations: 7.938 kB / 1.07 GB, free: 7.812 MB / 0.8262 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.081e-06/0.2736, allocations: 3.984 kB / 1.07 GB, free: 7.809 MB / 0.8262 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0005292/0.2742, allocations: 370.5 kB / 1.07 GB, free: 7.391 MB / 0.8262 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.116e-06/0.2742, allocations: 8.031 kB / 1.07 GB, free: 7.383 MB / 0.8262 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001379/0.2743, allocations: 35.86 kB / 1.07 GB, free: 7.348 MB / 0.8262 GB Notification: Performance of postOpt tearingSystem (simulation): time 3.497e-06/0.2743, allocations: 3.938 kB / 1.07 GB, free: 7.344 MB / 0.8262 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.164e-05/0.2743, allocations: 3.984 kB / 1.07 GB, free: 7.34 MB / 0.8262 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.533e-06/0.2744, allocations: 0 / 1.07 GB, free: 7.34 MB / 0.8262 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.01e-07/0.2744, allocations: 4 kB / 1.07 GB, free: 7.336 MB / 0.8262 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004746/0.2748, allocations: 243.5 kB / 1.071 GB, free: 7.082 MB / 0.8262 GB Notification: Performance of postOpt removeConstants (simulation): time 4.325e-05/0.2749, allocations: 81.02 kB / 1.071 GB, free: 6.984 MB / 0.8262 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.177e-05/0.2749, allocations: 3.938 kB / 1.071 GB, free: 6.98 MB / 0.8262 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000114/0.275, allocations: 15.98 kB / 1.071 GB, free: 6.965 MB / 0.8262 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.089e-05/0.2751, allocations: 8.25 kB / 1.071 GB, free: 6.957 MB / 0.8262 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.039e-05/0.2751, allocations: 4 kB / 1.071 GB, free: 6.953 MB / 0.8262 GB Notification: Performance of sorting global known variables: time 4.423e-05/0.2751, allocations: 95.19 kB / 1.071 GB, free: 6.859 MB / 0.8262 GB Notification: Performance of sort global known variables: time 2.004e-06/0.2751, allocations: 0 / 1.071 GB, free: 6.859 MB / 0.8262 GB Notification: Performance of remove unused functions: time 0.0002413/0.2754, allocations: 35.94 kB / 1.071 GB, free: 6.824 MB / 0.8262 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.0008352/0.2762, allocations: 0.822 MB / 1.072 GB, free: 5.977 MB / 0.8262 GB Notification: Performance of simCode: created initialization part: time 0.0003058/0.2765, allocations: 92.95 kB / 1.072 GB, free: 5.887 MB / 0.8262 GB Notification: Performance of simCode: created event and clocks part: time 2.084e-06/0.2765, allocations: 0 / 1.072 GB, free: 5.887 MB / 0.8262 GB Notification: Performance of simCode: created simulation system equations: time 0.000133/0.2767, allocations: 47.91 kB / 1.072 GB, free: 5.84 MB / 0.8262 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002435/0.2769, allocations: 8 kB / 1.072 GB, free: 5.832 MB / 0.8262 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001927/0.2789, allocations: 1.581 MB / 1.073 GB, free: 4.176 MB / 0.8262 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002861/0.2792, allocations: 0.7001 MB / 1.074 GB, free: 3.449 MB / 0.8262 GB Notification: Performance of simCode: alias equations: time 5.468e-05/0.2792, allocations: 16.59 kB / 1.074 GB, free: 3.434 MB / 0.8262 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.106e-05/0.2793, allocations: 19.44 kB / 1.074 GB, free: 3.414 MB / 0.8262 GB Notification: Performance of SimCode: time 2.4e-07/0.2793, allocations: 0 / 1.074 GB, free: 3.414 MB / 0.8262 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 4.6/4.88, allocations: 2.297 MB / 1.076 GB, free: 1.281 MB / 0.8262 GB Notification: Performance of buildModelFMU: Generate platform static: time 12.35/17.23, allocations: 8.562 kB / 1.076 GB, free: 1.277 MB / 0.8262 GB (rm -f Buildings_11_Buildings.Fluid.BaseClasses.FlowModels.Validation.BasicFlowFunction_m_flow_DerivativeCheck2.pipe ; mkfifo Buildings_11_Buildings.Fluid.BaseClasses.FlowModels.Validation.BasicFlowFunction_m_flow_DerivativeCheck2.pipe ; head -c 1048576 < Buildings_11_Buildings.Fluid.BaseClasses.FlowModels.Validation.BasicFlowFunction_m_flow_DerivativeCheck2.pipe >> ../files/Buildings_11_Buildings.Fluid.BaseClasses.FlowModels.Validation.BasicFlowFunction_m_flow_DerivativeCheck2.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Buildings_11_Buildings.Fluid.BaseClasses.FlowModels.Validation.BasicFlowFunction_m_flow_DerivativeCheck2_res.mat --tempDir=temp_Buildings_11_Buildings_Fluid_BaseClasses_FlowModels_Validation_BasicFlowFunction_m_flow_DerivativeCheck2_fmu --startTime=-2 --stopTime=2 --timeout=400 --tolerance=1e-08 Buildings_11_Buildings_Fluid_BaseClasses_FlowModels_Validation_BasicFlowFunction_m_flow_DerivativeCheck2.fmu > Buildings_11_Buildings.Fluid.BaseClasses.FlowModels.Validation.BasicFlowFunction_m_flow_DerivativeCheck2.pipe 2>&1) diffSimulationResults("Buildings_11_Buildings.Fluid.BaseClasses.FlowModels.Validation.BasicFlowFunction_m_flow_DerivativeCheck2_res.mat","/mnt/ReferenceFiles/Buildings/csv/maint_11.x/Buildings_Fluid_BaseClasses_FlowModels_Validation_BasicFlowFunction_m_flow_DerivativeCheck2.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_11_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