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 12.0.0-master/package.mo", uses=false) Using package Buildings with version 12.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.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.005226/0.005226, allocations: 97.17 kB / 15.73 MB, free: 6.484 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.001329/0.001329, allocations: 189.7 kB / 16.67 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.175/1.175, allocations: 222.9 MB / 240.4 MB, free: 4.324 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.0.0-master/package.mo): time 2.384/2.384, allocations: 482.6 MB / 0.755 GB, free: 10.63 MB / 0.6075 GB Notification: Performance of FrontEnd - loaded program: time 0.001597/0.001597, allocations: 67.84 kB / 1.083 GB, free: 12.18 MB / 0.8419 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.249/0.2506, allocations: 162.3 MB / 1.242 GB, free: 9.781 MB / 0.9981 GB Notification: Performance of NFInst.instantiate(Buildings.Fluid.BaseClasses.FlowModels.Validation.BasicFlowFunction_m_flow_DerivativeCheck): time 0.001887/0.2526, allocations: 1.277 MB / 1.243 GB, free: 8.496 MB / 0.9981 GB Notification: Performance of NFInst.instExpressions: time 0.0008527/0.2534, allocations: 0.6111 MB / 1.244 GB, free: 7.883 MB / 0.9981 GB Notification: Performance of NFInst.updateImplicitVariability: time 1.854e-05/0.2535, allocations: 0 / 1.244 GB, free: 7.883 MB / 0.9981 GB Notification: Performance of NFTyping.typeComponents: time 1.219e-05/0.2535, allocations: 0 / 1.244 GB, free: 7.883 MB / 0.9981 GB Notification: Performance of NFTyping.typeBindings: time 3.387e-05/0.2535, allocations: 3.938 kB / 1.244 GB, free: 7.879 MB / 0.9981 GB Notification: Performance of NFTyping.typeClassSections: time 0.0004834/0.254, allocations: 151 kB / 1.244 GB, free: 7.734 MB / 0.9981 GB Notification: Performance of NFFlatten.flatten: time 4.916e-05/0.2541, allocations: 19.92 kB / 1.244 GB, free: 7.715 MB / 0.9981 GB Notification: Performance of NFFlatten.resolveConnections: time 3.184e-05/0.2541, allocations: 3.984 kB / 1.244 GB, free: 7.711 MB / 0.9981 GB Notification: Performance of NFEvalConstants.evaluate: time 2.933e-05/0.2541, allocations: 15.92 kB / 1.244 GB, free: 7.695 MB / 0.9981 GB Notification: Performance of NFSimplifyModel.simplify: time 4.075e-05/0.2542, allocations: 7.938 kB / 1.244 GB, free: 7.688 MB / 0.9981 GB Notification: Performance of NFPackage.collectConstants: time 8.947e-06/0.2542, allocations: 0 / 1.244 GB, free: 7.688 MB / 0.9981 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0004507/0.2547, allocations: 347.3 kB / 1.244 GB, free: 7.348 MB / 0.9981 GB Notification: Performance of NFScalarize.scalarize: time 8.907e-06/0.2547, allocations: 0 / 1.244 GB, free: 7.348 MB / 0.9981 GB Notification: Performance of NFVerifyModel.verify: time 2.694e-05/0.2547, allocations: 11.94 kB / 1.244 GB, free: 7.336 MB / 0.9981 GB Notification: Performance of NFConvertDAE.convert: time 0.0002202/0.2549, allocations: 151.5 kB / 1.244 GB, free: 7.188 MB / 0.9981 GB Notification: Performance of FrontEnd - DAE generated: time 2.585e-06/0.2549, allocations: 4 kB / 1.244 GB, free: 7.184 MB / 0.9981 GB Notification: Performance of FrontEnd: time 9.92e-07/0.2549, allocations: 0 / 1.244 GB, free: 7.184 MB / 0.9981 GB Notification: Performance of Transformations before backend: time 3.357e-06/0.2549, allocations: 3.938 kB / 1.244 GB, free: 7.18 MB / 0.9981 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.0003581/0.2553, allocations: 363 kB / 1.245 GB, free: 6.773 MB / 0.9981 GB Notification: Performance of prepare preOptimizeDAE: time 2.946e-05/0.2553, allocations: 8.031 kB / 1.245 GB, free: 6.766 MB / 0.9981 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 2.926e-05/0.2554, allocations: 34.73 kB / 1.245 GB, free: 6.723 MB / 0.9981 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.095e-05/0.2554, allocations: 4.938 kB / 1.245 GB, free: 6.719 MB / 0.9981 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001092/0.2555, allocations: 164.4 kB / 1.245 GB, free: 6.52 MB / 0.9981 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 7.585e-06/0.2555, allocations: 4.375 kB / 1.245 GB, free: 6.516 MB / 0.9981 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.775e-05/0.2556, allocations: 12.33 kB / 1.245 GB, free: 6.504 MB / 0.9981 GB Notification: Performance of preOpt clockPartitioning (simulation): time 8.375e-05/0.2556, allocations: 42.19 kB / 1.245 GB, free: 6.457 MB / 0.9981 GB Notification: Performance of preOpt findStateOrder (simulation): time 8.977e-06/0.2557, allocations: 7.938 kB / 1.245 GB, free: 6.449 MB / 0.9981 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.472e-06/0.2557, allocations: 0 / 1.245 GB, free: 6.449 MB / 0.9981 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.476e-06/0.2557, allocations: 0 / 1.245 GB, free: 6.449 MB / 0.9981 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 3.083e-05/0.2557, allocations: 7.984 kB / 1.245 GB, free: 6.441 MB / 0.9981 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001508/0.2559, allocations: 169.7 kB / 1.245 GB, free: 6.227 MB / 0.9981 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001401/0.256, allocations: 42.56 kB / 1.245 GB, free: 6.176 MB / 0.9981 GB Notification: Performance of preOpt resolveLoops (simulation): time 3.153e-05/0.256, allocations: 20.8 kB / 1.245 GB, free: 6.152 MB / 0.9981 GB Notification: Performance of preOpt evalFunc (simulation): time 1.22e-05/0.2561, allocations: 0 / 1.245 GB, free: 6.152 MB / 0.9981 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.03e-05/0.2561, allocations: 30.56 kB / 1.245 GB, free: 6.113 MB / 0.9981 GB Notification: Performance of pre-optimization done (n=4): time 7.22e-07/0.2561, allocations: 0 / 1.245 GB, free: 6.113 MB / 0.9981 GB Notification: Performance of matching and sorting (n=6): time 0.0004936/0.2566, allocations: 310.4 kB / 1.246 GB, free: 5.758 MB / 0.9981 GB Notification: Performance of inlineWhenForInitialization (initialization): time 2.851e-05/0.2566, allocations: 51.41 kB / 1.246 GB, free: 5.695 MB / 0.9981 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 5.978e-05/0.2567, allocations: 97.86 kB / 1.246 GB, free: 5.59 MB / 0.9981 GB Notification: Performance of collectPreVariables (initialization): time 1.532e-05/0.2567, allocations: 29.7 kB / 1.246 GB, free: 5.555 MB / 0.9981 GB Notification: Performance of collectInitialEqns (initialization): time 2.987e-05/0.2567, allocations: 80.14 kB / 1.246 GB, free: 5.473 MB / 0.9981 GB Notification: Performance of collectInitialBindings (initialization): time 3.025e-05/0.2568, allocations: 27.78 kB / 1.246 GB, free: 5.445 MB / 0.9981 GB Notification: Performance of simplifyInitialFunctions (initialization): time 2.938e-05/0.2568, allocations: 17.72 kB / 1.246 GB, free: 5.422 MB / 0.9981 GB Notification: Performance of setup shared object (initialization): time 0.000107/0.2569, allocations: 310.8 kB / 1.246 GB, free: 5.109 MB / 0.9981 GB Notification: Performance of preBalanceInitialSystem (initialization): time 2.443e-05/0.257, allocations: 15.98 kB / 1.246 GB, free: 5.094 MB / 0.9981 GB Notification: Performance of partitionIndependentBlocks (initialization): time 1.836e-05/0.257, allocations: 12 kB / 1.246 GB, free: 5.082 MB / 0.9981 GB Notification: Performance of analyzeInitialSystem (initialization): time 5.125e-05/0.257, allocations: 36.8 kB / 1.246 GB, free: 5.043 MB / 0.9981 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.51e-07/0.257, allocations: 0 / 1.246 GB, free: 5.043 MB / 0.9981 GB Notification: Performance of matching and sorting (n=7) (initialization): time 9.274e-05/0.2571, allocations: 77.7 kB / 1.246 GB, free: 4.961 MB / 0.9981 GB Notification: Performance of prepare postOptimizeDAE: time 1.317e-05/0.2572, allocations: 13.19 kB / 1.246 GB, free: 4.949 MB / 0.9981 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.926e-06/0.2572, allocations: 0 / 1.246 GB, free: 4.949 MB / 0.9981 GB Notification: Performance of postOpt tearingSystem (initialization): time 9.487e-06/0.2572, allocations: 0.5156 kB / 1.246 GB, free: 4.949 MB / 0.9981 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 4.323e-05/0.2572, allocations: 11.98 kB / 1.246 GB, free: 4.938 MB / 0.9981 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.43e-06/0.2572, allocations: 4 kB / 1.246 GB, free: 4.934 MB / 0.9981 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 1.315e-05/0.2572, allocations: 0 / 1.246 GB, free: 4.934 MB / 0.9981 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.038e-06/0.2573, allocations: 3.938 kB / 1.246 GB, free: 4.93 MB / 0.9981 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 6.528e-05/0.2573, allocations: 121.8 kB / 1.246 GB, free: 4.801 MB / 0.9981 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.013e-05/0.2573, allocations: 3.938 kB / 1.246 GB, free: 4.797 MB / 0.9981 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001173/0.2575, allocations: 69.64 kB / 1.247 GB, free: 4.719 MB / 0.9981 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.829e-06/0.2575, allocations: 7.984 kB / 1.247 GB, free: 4.711 MB / 0.9981 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.525e-06/0.2575, allocations: 0 / 1.247 GB, free: 4.711 MB / 0.9981 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.094e-06/0.2575, allocations: 0 / 1.247 GB, free: 4.711 MB / 0.9981 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002745/0.2578, allocations: 311.4 kB / 1.247 GB, free: 4.348 MB / 0.9981 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.263e-06/0.2578, allocations: 4.031 kB / 1.247 GB, free: 4.344 MB / 0.9981 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 5.387e-05/0.2578, allocations: 15.98 kB / 1.247 GB, free: 4.328 MB / 0.9981 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.763e-06/0.2578, allocations: 0 / 1.247 GB, free: 4.328 MB / 0.9981 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.484e-06/0.2579, allocations: 4.188 kB / 1.247 GB, free: 4.324 MB / 0.9981 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.986e-06/0.2579, allocations: 4 kB / 1.247 GB, free: 4.32 MB / 0.9981 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.354e-06/0.2579, allocations: 4 kB / 1.247 GB, free: 4.316 MB / 0.9981 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001584/0.258, allocations: 176.2 kB / 1.247 GB, free: 4.125 MB / 0.9981 GB Notification: Performance of postOpt removeConstants (simulation): time 4.996e-05/0.2581, allocations: 93.19 kB / 1.247 GB, free: 4.016 MB / 0.9981 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.188e-05/0.2581, allocations: 0 / 1.247 GB, free: 4.016 MB / 0.9981 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 5.695e-05/0.2582, allocations: 0 / 1.247 GB, free: 4.016 MB / 0.9981 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.722e-05/0.2582, allocations: 7.984 kB / 1.247 GB, free: 4.008 MB / 0.9981 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.198e-06/0.2582, allocations: 0 / 1.247 GB, free: 4.008 MB / 0.9981 GB Notification: Performance of sorting global known variables: time 3.629e-05/0.2582, allocations: 83.28 kB / 1.247 GB, free: 3.926 MB / 0.9981 GB Notification: Performance of sort global known variables: time 8.1e-08/0.2582, allocations: 0 / 1.247 GB, free: 3.926 MB / 0.9981 GB Notification: Performance of remove unused functions: time 0.0002126/0.2585, allocations: 19.94 kB / 1.247 GB, free: 3.906 MB / 0.9981 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.0004576/0.2589, allocations: 0.7487 MB / 1.248 GB, free: 3.129 MB / 0.9981 GB Notification: Performance of simCode: created initialization part: time 8.771e-05/0.259, allocations: 31.98 kB / 1.248 GB, free: 3.098 MB / 0.9981 GB Notification: Performance of simCode: created event and clocks part: time 1.513e-06/0.259, allocations: 3.938 kB / 1.248 GB, free: 3.094 MB / 0.9981 GB Notification: Performance of simCode: created simulation system equations: time 2.248e-05/0.259, allocations: 12 kB / 1.248 GB, free: 3.082 MB / 0.9981 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001846/0.2592, allocations: 8.109 kB / 1.248 GB, free: 3.074 MB / 0.9981 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001002/0.2602, allocations: 1.326 MB / 1.249 GB, free: 1.66 MB / 0.9981 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002458/0.2605, allocations: 0.6846 MB / 1.25 GB, free: 0.9492 MB / 0.9981 GB Notification: Performance of simCode: alias equations: time 2.539e-05/0.2605, allocations: 7.984 kB / 1.25 GB, free: 0.9414 MB / 0.9981 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.442e-05/0.2606, allocations: 15.44 kB / 1.25 GB, free: 0.9297 MB / 0.9981 GB Notification: Performance of SimCode: time 1.9e-07/0.2606, allocations: 0 / 1.25 GB, free: 0.9297 MB / 0.9981 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 7.843/8.104, allocations: 1.616 MB / 1.252 GB, free: 14.27 MB / 0.9981 GB Notification: Performance of buildModelFMU: Generate platform static: time 14.33/22.43, allocations: 7.984 kB / 1.252 GB, free: 14.27 MB / 0.9981 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=400 --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