Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_latest_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 11.0.0-master/package.mo", uses=false) Using package Buildings with version 11.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.0.0-master/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_latest_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_latest_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.001418/0.001418, 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.001306/0.001306, allocations: 188.3 kB / 16.13 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.352/1.352, allocations: 222.9 MB / 239.8 MB, free: 4.5 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.0.0-master/package.mo): time 2.6/2.6, allocations: 461.8 MB / 0.7342 GB, free: 14.23 MB / 0.5919 GB Notification: Performance of FrontEnd - loaded program: time 0.001215/0.001215, allocations: 64.16 kB / 0.8985 GB, free: 36.99 MB / 0.7169 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2422/0.2434, allocations: 157.4 MB / 1.052 GB, free: 8.234 MB / 0.8106 GB Notification: Performance of NFInst.instantiate(Buildings.Fluid.BaseClasses.FlowModels.Validation.BasicFlowFunction_m_flow_DerivativeCheck): time 0.002329/0.2458, allocations: 1.341 MB / 1.054 GB, free: 6.875 MB / 0.8106 GB Notification: Performance of NFInst.instExpressions: time 0.001026/0.2468, allocations: 0.6307 MB / 1.054 GB, free: 6.242 MB / 0.8106 GB Notification: Performance of NFInst.updateImplicitVariability: time 1.669e-05/0.2469, allocations: 0 / 1.054 GB, free: 6.242 MB / 0.8106 GB Notification: Performance of NFTyping.typeComponents: time 2.334e-05/0.2469, allocations: 3.938 kB / 1.054 GB, free: 6.238 MB / 0.8106 GB Notification: Performance of NFTyping.typeBindings: time 3.563e-05/0.247, allocations: 0 / 1.054 GB, free: 6.238 MB / 0.8106 GB Notification: Performance of NFTyping.typeClassSections: time 0.0004808/0.2474, allocations: 130.5 kB / 1.054 GB, free: 6.113 MB / 0.8106 GB Notification: Performance of NFFlatten.flatten: time 5.658e-05/0.2475, allocations: 23.86 kB / 1.054 GB, free: 6.09 MB / 0.8106 GB Notification: Performance of NFFlatten.resolveConnections: time 3.938e-05/0.2476, allocations: 4 kB / 1.054 GB, free: 6.086 MB / 0.8106 GB Notification: Performance of NFEvalConstants.evaluate: time 2.934e-05/0.2476, allocations: 7.938 kB / 1.054 GB, free: 6.078 MB / 0.8106 GB Notification: Performance of NFSimplifyModel.simplify: time 4.068e-05/0.2476, allocations: 7.938 kB / 1.054 GB, free: 6.07 MB / 0.8106 GB Notification: Performance of NFPackage.collectConstants: time 1.051e-05/0.2476, allocations: 0 / 1.054 GB, free: 6.07 MB / 0.8106 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0004689/0.2481, allocations: 343.4 kB / 1.055 GB, free: 5.734 MB / 0.8106 GB Notification: Performance of NFScalarize.scalarize: time 1.314e-05/0.2481, allocations: 8 kB / 1.055 GB, free: 5.727 MB / 0.8106 GB Notification: Performance of NFVerifyModel.verify: time 2.155e-05/0.2482, allocations: 11.88 kB / 1.055 GB, free: 5.715 MB / 0.8106 GB Notification: Performance of NFConvertDAE.convert: time 0.0002563/0.2484, allocations: 147.9 kB / 1.055 GB, free: 5.57 MB / 0.8106 GB Notification: Performance of FrontEnd - DAE generated: time 3.747e-06/0.2484, allocations: 4 kB / 1.055 GB, free: 5.566 MB / 0.8106 GB Notification: Performance of FrontEnd: time 9.51e-07/0.2485, allocations: 0 / 1.055 GB, free: 5.566 MB / 0.8106 GB Notification: Performance of Transformations before backend: time 3.486e-06/0.2485, allocations: 0 / 1.055 GB, free: 5.566 MB / 0.8106 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.0003797/0.2488, allocations: 359.5 kB / 1.055 GB, free: 5.164 MB / 0.8106 GB Notification: Performance of prepare preOptimizeDAE: time 3.404e-05/0.2489, allocations: 8.031 kB / 1.055 GB, free: 5.156 MB / 0.8106 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.539e-05/0.2489, allocations: 42.69 kB / 1.055 GB, free: 5.105 MB / 0.8106 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.357e-05/0.249, allocations: 0.9375 kB / 1.055 GB, free: 5.105 MB / 0.8106 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001064/0.2491, allocations: 168.3 kB / 1.055 GB, free: 4.902 MB / 0.8106 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.121e-05/0.2491, allocations: 4.375 kB / 1.055 GB, free: 4.898 MB / 0.8106 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.546e-05/0.2491, allocations: 4.375 kB / 1.055 GB, free: 4.895 MB / 0.8106 GB Notification: Performance of preOpt clockPartitioning (simulation): time 9.567e-05/0.2492, allocations: 42.25 kB / 1.055 GB, free: 4.848 MB / 0.8106 GB Notification: Performance of preOpt findStateOrder (simulation): time 7.474e-06/0.2492, allocations: 3.938 kB / 1.055 GB, free: 4.844 MB / 0.8106 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.207e-06/0.2492, allocations: 0 / 1.055 GB, free: 4.844 MB / 0.8106 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.987e-06/0.2492, allocations: 0 / 1.055 GB, free: 4.844 MB / 0.8106 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 3.728e-05/0.2493, allocations: 12 kB / 1.055 GB, free: 4.832 MB / 0.8106 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001612/0.2494, allocations: 157.7 kB / 1.056 GB, free: 4.629 MB / 0.8106 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001716/0.2496, allocations: 46.55 kB / 1.056 GB, free: 4.574 MB / 0.8106 GB Notification: Performance of preOpt resolveLoops (simulation): time 3.525e-05/0.2497, allocations: 24.92 kB / 1.056 GB, free: 4.547 MB / 0.8106 GB Notification: Performance of preOpt evalFunc (simulation): time 1.792e-05/0.2497, allocations: 0 / 1.056 GB, free: 4.547 MB / 0.8106 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.399e-05/0.2497, allocations: 34.56 kB / 1.056 GB, free: 4.504 MB / 0.8106 GB Notification: Performance of pre-optimization done (n=4): time 8.41e-07/0.2497, allocations: 0 / 1.056 GB, free: 4.504 MB / 0.8106 GB Notification: Performance of matching and sorting (n=6): time 0.0005935/0.2503, allocations: 314.2 kB / 1.056 GB, free: 4.145 MB / 0.8106 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.322e-05/0.2504, allocations: 51.41 kB / 1.056 GB, free: 4.082 MB / 0.8106 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 6.978e-05/0.2505, allocations: 109.8 kB / 1.056 GB, free: 3.965 MB / 0.8106 GB Notification: Performance of collectPreVariables (initialization): time 1.315e-05/0.2505, allocations: 25.7 kB / 1.056 GB, free: 3.934 MB / 0.8106 GB Notification: Performance of collectInitialEqns (initialization): time 2.95e-05/0.2505, allocations: 80.14 kB / 1.056 GB, free: 3.852 MB / 0.8106 GB Notification: Performance of collectInitialBindings (initialization): time 2.761e-05/0.2505, allocations: 19.72 kB / 1.056 GB, free: 3.832 MB / 0.8106 GB Notification: Performance of simplifyInitialFunctions (initialization): time 3.831e-05/0.2506, allocations: 21.7 kB / 1.056 GB, free: 3.805 MB / 0.8106 GB Notification: Performance of setup shared object (initialization): time 0.0001079/0.2507, allocations: 318.8 kB / 1.057 GB, free: 3.484 MB / 0.8106 GB Notification: Performance of preBalanceInitialSystem (initialization): time 2.538e-05/0.2507, allocations: 8 kB / 1.057 GB, free: 3.477 MB / 0.8106 GB Notification: Performance of partitionIndependentBlocks (initialization): time 2.446e-05/0.2508, allocations: 19.97 kB / 1.057 GB, free: 3.457 MB / 0.8106 GB Notification: Performance of analyzeInitialSystem (initialization): time 5.321e-05/0.2508, allocations: 32.86 kB / 1.057 GB, free: 3.422 MB / 0.8106 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.21e-07/0.2508, allocations: 0 / 1.057 GB, free: 3.422 MB / 0.8106 GB Notification: Performance of matching and sorting (n=7) (initialization): time 9.798e-05/0.2509, allocations: 69.62 kB / 1.057 GB, free: 3.348 MB / 0.8106 GB Notification: Performance of prepare postOptimizeDAE: time 1.293e-05/0.2509, allocations: 5.094 kB / 1.057 GB, free: 3.344 MB / 0.8106 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.198e-06/0.251, allocations: 0 / 1.057 GB, free: 3.344 MB / 0.8106 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.335e-05/0.251, allocations: 0 / 1.057 GB, free: 3.344 MB / 0.8106 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 5.033e-05/0.251, allocations: 15.88 kB / 1.057 GB, free: 3.328 MB / 0.8106 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.841e-06/0.251, allocations: 7.984 kB / 1.057 GB, free: 3.32 MB / 0.8106 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 1.761e-05/0.2511, allocations: 0 / 1.057 GB, free: 3.32 MB / 0.8106 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.498e-06/0.2511, allocations: 0 / 1.057 GB, free: 3.32 MB / 0.8106 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 7.773e-05/0.2512, allocations: 117.8 kB / 1.057 GB, free: 3.195 MB / 0.8106 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.387e-05/0.2512, allocations: 7.844 kB / 1.057 GB, free: 3.188 MB / 0.8106 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001334/0.2513, allocations: 69.59 kB / 1.057 GB, free: 3.113 MB / 0.8106 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.773e-06/0.2513, allocations: 4 kB / 1.057 GB, free: 3.109 MB / 0.8106 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.36e-06/0.2513, allocations: 3.984 kB / 1.057 GB, free: 3.105 MB / 0.8106 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.785e-06/0.2513, allocations: 0 / 1.057 GB, free: 3.105 MB / 0.8106 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003016/0.2516, allocations: 311.4 kB / 1.057 GB, free: 2.742 MB / 0.8106 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.613e-06/0.2517, allocations: 4.031 kB / 1.057 GB, free: 2.738 MB / 0.8106 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 6.388e-05/0.2517, allocations: 16.12 kB / 1.057 GB, free: 2.723 MB / 0.8106 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.114e-06/0.2517, allocations: 0 / 1.057 GB, free: 2.723 MB / 0.8106 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.097e-06/0.2518, allocations: 4 kB / 1.057 GB, free: 2.719 MB / 0.8106 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.617e-06/0.2518, allocations: 3.984 kB / 1.057 GB, free: 2.715 MB / 0.8106 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.392e-06/0.2518, allocations: 4 kB / 1.057 GB, free: 2.711 MB / 0.8106 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.00018/0.252, allocations: 172.3 kB / 1.057 GB, free: 2.523 MB / 0.8106 GB Notification: Performance of postOpt removeConstants (simulation): time 4.722e-05/0.252, allocations: 93.09 kB / 1.057 GB, free: 2.414 MB / 0.8106 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.332e-05/0.252, allocations: 0 / 1.057 GB, free: 2.414 MB / 0.8106 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 6.972e-05/0.2521, allocations: 0 / 1.057 GB, free: 2.414 MB / 0.8106 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.996e-05/0.2521, allocations: 11.94 kB / 1.058 GB, free: 2.402 MB / 0.8106 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.638e-06/0.2521, allocations: 0 / 1.058 GB, free: 2.402 MB / 0.8106 GB Notification: Performance of sorting global known variables: time 3.957e-05/0.2522, allocations: 83.78 kB / 1.058 GB, free: 2.32 MB / 0.8106 GB Notification: Performance of sort global known variables: time 1.2e-07/0.2522, allocations: 0 / 1.058 GB, free: 2.32 MB / 0.8106 GB Notification: Performance of remove unused functions: time 0.0002551/0.2524, allocations: 27.94 kB / 1.058 GB, free: 2.293 MB / 0.8106 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.0004905/0.2529, allocations: 0.7367 MB / 1.058 GB, free: 1.527 MB / 0.8106 GB Notification: Performance of simCode: created initialization part: time 9.35e-05/0.253, allocations: 36.16 kB / 1.058 GB, free: 1.492 MB / 0.8106 GB Notification: Performance of simCode: created event and clocks part: time 1.794e-06/0.2531, allocations: 0 / 1.058 GB, free: 1.492 MB / 0.8106 GB Notification: Performance of simCode: created simulation system equations: time 2.723e-05/0.2531, allocations: 16 kB / 1.058 GB, free: 1.477 MB / 0.8106 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002148/0.2533, allocations: 2.25 kB / 1.058 GB, free: 1.477 MB / 0.8106 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001108/0.2544, allocations: 1.344 MB / 1.06 GB, free: 48 kB / 0.8106 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002305/0.2547, allocations: 0.6771 MB / 1.06 GB, free: 15.34 MB / 0.8262 GB Notification: Performance of simCode: alias equations: time 3.119e-05/0.2547, allocations: 7.984 kB / 1.06 GB, free: 15.34 MB / 0.8262 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.958e-05/0.2547, allocations: 15.44 kB / 1.06 GB, free: 15.32 MB / 0.8262 GB Notification: Performance of SimCode: time 2.2e-07/0.2548, allocations: 0 / 1.06 GB, free: 15.32 MB / 0.8262 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01195/0.2667, allocations: 1.477 MB / 1.062 GB, free: 14.03 MB / 0.8262 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002483/0.267, allocations: 266 kB / 1.062 GB, free: 13.77 MB / 0.8262 GB Notification: Performance of buildModelFMU: Generate platform static: time 1.702/1.969, allocations: 0 / 1.062 GB, free: 13.77 MB / 0.8262 GB (rm -f Buildings_latest_Buildings.Fluid.BaseClasses.FlowModels.Validation.BasicFlowFunction_m_flow_DerivativeCheck.pipe ; mkfifo Buildings_latest_Buildings.Fluid.BaseClasses.FlowModels.Validation.BasicFlowFunction_m_flow_DerivativeCheck.pipe ; head -c 1048576 < Buildings_latest_Buildings.Fluid.BaseClasses.FlowModels.Validation.BasicFlowFunction_m_flow_DerivativeCheck.pipe >> ../files/Buildings_latest_Buildings.Fluid.BaseClasses.FlowModels.Validation.BasicFlowFunction_m_flow_DerivativeCheck.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Buildings_latest_Buildings.Fluid.BaseClasses.FlowModels.Validation.BasicFlowFunction_m_flow_DerivativeCheck_res.mat --tempDir=temp_Buildings_latest_Buildings_Fluid_BaseClasses_FlowModels_Validation_BasicFlowFunction_m_flow_DerivativeCheck_fmu --startTime=-2 --stopTime=2 --timeout=50 --tolerance=1e-08 Buildings_latest_Buildings_Fluid_BaseClasses_FlowModels_Validation_BasicFlowFunction_m_flow_DerivativeCheck.fmu > Buildings_latest_Buildings.Fluid.BaseClasses.FlowModels.Validation.BasicFlowFunction_m_flow_DerivativeCheck.pipe 2>&1) diffSimulationResults("Buildings_latest_Buildings.Fluid.BaseClasses.FlowModels.Validation.BasicFlowFunction_m_flow_DerivativeCheck_res.mat","/mnt/ReferenceFiles/Buildings/csv/master/Buildings_Fluid_BaseClasses_FlowModels_Validation_BasicFlowFunction_m_flow_DerivativeCheck.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_latest_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