Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_latest_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.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_DerivativeCheck2,fileNamePrefix="Buildings_latest_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_latest_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.001631/0.001631, 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.001699/0.001698, allocations: 191.7 kB / 16.13 MB, free: 6.691 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.34/1.34, allocations: 222.9 MB / 239.8 MB, free: 4.645 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.0.0-master/package.mo): time 2.687/2.687, allocations: 461.9 MB / 0.7342 GB, free: 14.19 MB / 0.5919 GB Notification: Performance of FrontEnd - loaded program: time 0.001297/0.001297, allocations: 70.91 kB / 0.8985 GB, free: 36.97 MB / 0.7169 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2411/0.2424, allocations: 157.4 MB / 1.052 GB, free: 8.23 MB / 0.8106 GB Notification: Performance of NFInst.instantiate(Buildings.Fluid.BaseClasses.FlowModels.Validation.BasicFlowFunction_m_flow_DerivativeCheck2): time 0.002583/0.245, allocations: 1.533 MB / 1.054 GB, free: 6.68 MB / 0.8106 GB Notification: Performance of NFInst.instExpressions: time 0.001061/0.2461, allocations: 0.654 MB / 1.054 GB, free: 6.023 MB / 0.8106 GB Notification: Performance of NFInst.updateImplicitVariability: time 3.408e-05/0.2462, allocations: 0 / 1.054 GB, free: 6.023 MB / 0.8106 GB Notification: Performance of NFTyping.typeComponents: time 3.737e-05/0.2462, allocations: 11.92 kB / 1.054 GB, free: 6.012 MB / 0.8106 GB Notification: Performance of NFTyping.typeBindings: time 5.024e-05/0.2463, allocations: 11.92 kB / 1.054 GB, free: 6 MB / 0.8106 GB Notification: Performance of NFTyping.typeClassSections: time 0.0005585/0.2468, allocations: 131.5 kB / 1.054 GB, free: 5.871 MB / 0.8106 GB Notification: Performance of NFFlatten.flatten: time 8.393e-05/0.2469, allocations: 47.91 kB / 1.055 GB, free: 5.824 MB / 0.8106 GB Notification: Performance of NFFlatten.resolveConnections: time 4.131e-05/0.247, allocations: 7.984 kB / 1.055 GB, free: 5.816 MB / 0.8106 GB Notification: Performance of NFEvalConstants.evaluate: time 5.193e-05/0.247, allocations: 19.92 kB / 1.055 GB, free: 5.797 MB / 0.8106 GB Notification: Performance of NFSimplifyModel.simplify: time 4.687e-05/0.2471, allocations: 35.84 kB / 1.055 GB, free: 5.762 MB / 0.8106 GB Notification: Performance of NFPackage.collectConstants: time 2.422e-05/0.2471, allocations: 4 kB / 1.055 GB, free: 5.758 MB / 0.8106 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0004862/0.2476, allocations: 343.3 kB / 1.055 GB, free: 5.422 MB / 0.8106 GB Notification: Performance of NFScalarize.scalarize: time 2.226e-05/0.2476, allocations: 11.97 kB / 1.055 GB, free: 5.41 MB / 0.8106 GB Notification: Performance of NFVerifyModel.verify: time 3.347e-05/0.2477, allocations: 19.88 kB / 1.055 GB, free: 5.391 MB / 0.8106 GB Notification: Performance of NFConvertDAE.convert: time 0.000302/0.248, allocations: 183.7 kB / 1.055 GB, free: 5.211 MB / 0.8106 GB Notification: Performance of FrontEnd - DAE generated: time 3.857e-06/0.248, allocations: 0 / 1.055 GB, free: 5.211 MB / 0.8106 GB Notification: Performance of FrontEnd: time 1.082e-06/0.248, allocations: 0 / 1.055 GB, free: 5.211 MB / 0.8106 GB Notification: Performance of Transformations before backend: time 3.586e-06/0.248, allocations: 0 / 1.055 GB, free: 5.211 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: 13 * Number of variables: 13 Notification: Performance of Generate backend data structure: time 0.0005576/0.2486, allocations: 399.3 kB / 1.056 GB, free: 4.77 MB / 0.8106 GB Notification: Performance of prepare preOptimizeDAE: time 3.868e-05/0.2486, allocations: 12.03 kB / 1.056 GB, free: 4.758 MB / 0.8106 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.066e-05/0.2487, allocations: 34.75 kB / 1.056 GB, free: 4.715 MB / 0.8106 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.343e-05/0.2487, allocations: 4.938 kB / 1.056 GB, free: 4.711 MB / 0.8106 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000116/0.2488, allocations: 168.2 kB / 1.056 GB, free: 4.508 MB / 0.8106 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.484e-05/0.2489, allocations: 8.375 kB / 1.056 GB, free: 4.5 MB / 0.8106 GB Notification: Performance of preOpt expandDerOperator (simulation): time 2.05e-05/0.2489, allocations: 8.359 kB / 1.056 GB, free: 4.492 MB / 0.8106 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002385/0.2491, allocations: 82.22 kB / 1.056 GB, free: 4.406 MB / 0.8106 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.093e-05/0.2492, allocations: 3.938 kB / 1.056 GB, free: 4.402 MB / 0.8106 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.051e-05/0.2492, allocations: 4 kB / 1.056 GB, free: 4.398 MB / 0.8106 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.908e-06/0.2492, allocations: 0 / 1.056 GB, free: 4.398 MB / 0.8106 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002494/0.2494, allocations: 51.95 kB / 1.056 GB, free: 4.348 MB / 0.8106 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005221/0.25, allocations: 332.5 kB / 1.056 GB, free: 3.973 MB / 0.8106 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0002961/0.2503, allocations: 82.53 kB / 1.056 GB, free: 3.883 MB / 0.8106 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001197/0.2504, allocations: 28.78 kB / 1.056 GB, free: 3.852 MB / 0.8106 GB Notification: Performance of preOpt evalFunc (simulation): time 1.797e-05/0.2504, allocations: 4 kB / 1.056 GB, free: 3.848 MB / 0.8106 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.961e-05/0.2505, allocations: 34.56 kB / 1.056 GB, free: 3.805 MB / 0.8106 GB Notification: Performance of pre-optimization done (n=7): time 1.162e-06/0.2505, allocations: 0 / 1.056 GB, free: 3.805 MB / 0.8106 GB Notification: Performance of matching and sorting (n=11): time 0.001646/0.2521, allocations: 0.6421 MB / 1.057 GB, free: 3.07 MB / 0.8106 GB Notification: Performance of inlineWhenForInitialization (initialization): time 2.926e-05/0.2522, allocations: 59.34 kB / 1.057 GB, free: 3 MB / 0.8106 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 7.354e-05/0.2522, allocations: 105.8 kB / 1.057 GB, free: 2.887 MB / 0.8106 GB Notification: Performance of collectPreVariables (initialization): time 1.758e-05/0.2523, allocations: 29.7 kB / 1.057 GB, free: 2.852 MB / 0.8106 GB Notification: Performance of collectInitialEqns (initialization): time 3.729e-05/0.2523, allocations: 88.05 kB / 1.057 GB, free: 2.762 MB / 0.8106 GB Notification: Performance of collectInitialBindings (initialization): time 3.287e-05/0.2523, allocations: 35.45 kB / 1.057 GB, free: 2.727 MB / 0.8106 GB Notification: Performance of simplifyInitialFunctions (initialization): time 5.309e-05/0.2524, allocations: 29.7 kB / 1.057 GB, free: 2.691 MB / 0.8106 GB Notification: Performance of setup shared object (initialization): time 0.0001006/0.2525, allocations: 318.8 kB / 1.058 GB, free: 2.371 MB / 0.8106 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001449/0.2527, allocations: 35.97 kB / 1.058 GB, free: 2.336 MB / 0.8106 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001279/0.2528, allocations: 32.08 kB / 1.058 GB, free: 2.305 MB / 0.8106 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002676/0.2531, allocations: 83.58 kB / 1.058 GB, free: 2.223 MB / 0.8106 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 8.22e-07/0.2531, allocations: 0 / 1.058 GB, free: 2.223 MB / 0.8106 GB Notification: Performance of matching and sorting (n=13) (initialization): time 0.0003296/0.2534, allocations: 121.7 kB / 1.058 GB, free: 2.098 MB / 0.8106 GB Notification: Performance of prepare postOptimizeDAE: time 1.388e-05/0.2534, allocations: 4 kB / 1.058 GB, free: 2.094 MB / 0.8106 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.137e-06/0.2534, allocations: 4 kB / 1.058 GB, free: 2.09 MB / 0.8106 GB Notification: Performance of postOpt tearingSystem (initialization): time 9.148e-06/0.2535, allocations: 4 kB / 1.058 GB, free: 2.086 MB / 0.8106 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001514/0.2536, allocations: 28.17 kB / 1.058 GB, free: 2.059 MB / 0.8106 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.983e-06/0.2536, allocations: 4.25 kB / 1.058 GB, free: 2.055 MB / 0.8106 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 6.507e-05/0.2537, allocations: 4 kB / 1.058 GB, free: 2.051 MB / 0.8106 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.154e-05/0.2537, allocations: 11.92 kB / 1.058 GB, free: 2.039 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 (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.025e-05/0.2538, allocations: 113.8 kB / 1.058 GB, free: 1.918 MB / 0.8106 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.185e-05/0.2538, allocations: 3.984 kB / 1.058 GB, free: 1.914 MB / 0.8106 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0003905/0.2542, allocations: 137.5 kB / 1.058 GB, free: 1.773 MB / 0.8106 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.215e-06/0.2542, allocations: 0 / 1.058 GB, free: 1.773 MB / 0.8106 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.18e-06/0.2543, allocations: 3.938 kB / 1.058 GB, free: 1.77 MB / 0.8106 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.138e-06/0.2543, allocations: 3.984 kB / 1.058 GB, free: 1.766 MB / 0.8106 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0005502/0.2548, allocations: 382.5 kB / 1.059 GB, free: 1.336 MB / 0.8106 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.553e-06/0.2548, allocations: 0 / 1.059 GB, free: 1.336 MB / 0.8106 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001663/0.255, allocations: 23.98 kB / 1.059 GB, free: 1.312 MB / 0.8106 GB Notification: Performance of postOpt tearingSystem (simulation): time 3.296e-06/0.255, allocations: 11.88 kB / 1.059 GB, free: 1.301 MB / 0.8106 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.237e-05/0.255, allocations: 7.984 kB / 1.059 GB, free: 1.293 MB / 0.8106 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.393e-06/0.255, allocations: 0 / 1.059 GB, free: 1.293 MB / 0.8106 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.425e-06/0.255, allocations: 3.938 kB / 1.059 GB, free: 1.289 MB / 0.8106 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004881/0.2555, allocations: 243.4 kB / 1.059 GB, free: 1.035 MB / 0.8106 GB Notification: Performance of postOpt removeConstants (simulation): time 3.599e-05/0.2556, allocations: 85.05 kB / 1.059 GB, free: 0.9336 MB / 0.8106 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.773e-05/0.2556, allocations: 8 kB / 1.059 GB, free: 0.9258 MB / 0.8106 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001239/0.2557, allocations: 11.98 kB / 1.059 GB, free: 0.9141 MB / 0.8106 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.098e-05/0.2558, allocations: 4 kB / 1.059 GB, free: 0.9102 MB / 0.8106 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.024e-05/0.2558, allocations: 4 kB / 1.059 GB, free: 0.9062 MB / 0.8106 GB Notification: Performance of sorting global known variables: time 4.173e-05/0.2558, allocations: 83.27 kB / 1.059 GB, free: 0.8242 MB / 0.8106 GB Notification: Performance of sort global known variables: time 1.443e-06/0.2558, allocations: 0 / 1.059 GB, free: 0.8242 MB / 0.8106 GB Notification: Performance of remove unused functions: time 0.0002765/0.2561, allocations: 39.94 kB / 1.059 GB, free: 0.7852 MB / 0.8106 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.0008363/0.257, allocations: 0.8219 MB / 1.06 GB, free: 15.94 MB / 0.8262 GB Notification: Performance of simCode: created initialization part: time 0.0003231/0.2573, allocations: 91.88 kB / 1.06 GB, free: 15.85 MB / 0.8262 GB Notification: Performance of simCode: created event and clocks part: time 2.274e-06/0.2573, allocations: 0 / 1.06 GB, free: 15.85 MB / 0.8262 GB Notification: Performance of simCode: created simulation system equations: time 0.000145/0.2575, allocations: 48.03 kB / 1.06 GB, free: 15.8 MB / 0.8262 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002789/0.2577, allocations: 8 kB / 1.06 GB, free: 15.79 MB / 0.8262 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001978/0.2597, allocations: 1.61 MB / 1.062 GB, free: 14.11 MB / 0.8262 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002486/0.26, allocations: 0.6964 MB / 1.062 GB, free: 13.38 MB / 0.8262 GB Notification: Performance of simCode: alias equations: time 6.037e-05/0.2601, allocations: 16.66 kB / 1.062 GB, free: 13.36 MB / 0.8262 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.521e-05/0.2601, allocations: 23.44 kB / 1.062 GB, free: 13.34 MB / 0.8262 GB Notification: Performance of SimCode: time 2.3e-07/0.2601, allocations: 0 / 1.062 GB, free: 13.34 MB / 0.8262 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01203/0.2722, allocations: 2.159 MB / 1.064 GB, free: 11.38 MB / 0.8262 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001889/0.2724, allocations: 252.5 kB / 1.065 GB, free: 11.12 MB / 0.8262 GB Notification: Performance of buildModelFMU: Generate platform static: time 1.722/1.994, allocations: 0 / 1.065 GB, free: 11.12 MB / 0.8262 GB (rm -f Buildings_latest_Buildings.Fluid.BaseClasses.FlowModels.Validation.BasicFlowFunction_m_flow_DerivativeCheck2.pipe ; mkfifo Buildings_latest_Buildings.Fluid.BaseClasses.FlowModels.Validation.BasicFlowFunction_m_flow_DerivativeCheck2.pipe ; head -c 1048576 < Buildings_latest_Buildings.Fluid.BaseClasses.FlowModels.Validation.BasicFlowFunction_m_flow_DerivativeCheck2.pipe >> ../files/Buildings_latest_Buildings.Fluid.BaseClasses.FlowModels.Validation.BasicFlowFunction_m_flow_DerivativeCheck2.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Buildings_latest_Buildings.Fluid.BaseClasses.FlowModels.Validation.BasicFlowFunction_m_flow_DerivativeCheck2_res.mat --tempDir=temp_Buildings_latest_Buildings_Fluid_BaseClasses_FlowModels_Validation_BasicFlowFunction_m_flow_DerivativeCheck2_fmu --startTime=-2 --stopTime=2 --timeout=50 --tolerance=1e-08 Buildings_latest_Buildings_Fluid_BaseClasses_FlowModels_Validation_BasicFlowFunction_m_flow_DerivativeCheck2.fmu > Buildings_latest_Buildings.Fluid.BaseClasses.FlowModels.Validation.BasicFlowFunction_m_flow_DerivativeCheck2.pipe 2>&1) diffSimulationResults("Buildings_latest_Buildings.Fluid.BaseClasses.FlowModels.Validation.BasicFlowFunction_m_flow_DerivativeCheck2_res.mat","/mnt/ReferenceFiles/Buildings/csv/master/Buildings_Fluid_BaseClasses_FlowModels_Validation_BasicFlowFunction_m_flow_DerivativeCheck2.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_latest_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