Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_latest_Buildings.Fluid.BaseClasses.FlowModels.Validation.BasicFlowFunction_dp_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.1-master/package.mo", uses=false) Using package Buildings with version 11.0.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.0.1-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_dp_DerivativeCheck,fileNamePrefix="Buildings_latest_Buildings_Fluid_BaseClasses_FlowModels_Validation_BasicFlowFunction_dp_DerivativeCheck",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Fluid.BaseClasses.FlowModels.Validation.BasicFlowFunction_dp_DerivativeCheck,fileNamePrefix="Buildings_latest_Buildings_Fluid_BaseClasses_FlowModels_Validation_BasicFlowFunction_dp_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.006913/0.006913, allocations: 100.6 kB / 15.73 MB, free: 6.469 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.001285/0.001285, allocations: 193.2 kB / 16.67 MB, free: 6.379 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.33/1.33, allocations: 222.9 MB / 240.4 MB, free: 4.355 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.0.1-master/package.mo): time 2.668/2.668, allocations: 461.9 MB / 0.7348 GB, free: 14.64 MB / 0.5919 GB Notification: Performance of FrontEnd - loaded program: time 0.00133/0.00133, allocations: 68.11 kB / 1.054 GB, free: 7.66 MB / 0.8106 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.321/0.3224, allocations: 157.4 MB / 1.207 GB, free: 10.17 MB / 0.9669 GB Notification: Performance of NFInst.instantiate(Buildings.Fluid.BaseClasses.FlowModels.Validation.BasicFlowFunction_dp_DerivativeCheck): time 0.002477/0.3249, allocations: 1.282 MB / 1.209 GB, free: 8.871 MB / 0.9669 GB Notification: Performance of NFInst.instExpressions: time 0.001026/0.3259, allocations: 0.6149 MB / 1.209 GB, free: 8.254 MB / 0.9669 GB Notification: Performance of NFInst.updateImplicitVariability: time 2.702e-05/0.326, allocations: 0 / 1.209 GB, free: 8.254 MB / 0.9669 GB Notification: Performance of NFTyping.typeComponents: time 2.124e-05/0.326, allocations: 3.984 kB / 1.209 GB, free: 8.25 MB / 0.9669 GB Notification: Performance of NFTyping.typeBindings: time 4.903e-05/0.3261, allocations: 3.938 kB / 1.209 GB, free: 8.246 MB / 0.9669 GB Notification: Performance of NFTyping.typeClassSections: time 0.0006117/0.3267, allocations: 141.2 kB / 1.209 GB, free: 8.109 MB / 0.9669 GB Notification: Performance of NFFlatten.flatten: time 6.289e-05/0.3268, allocations: 23.92 kB / 1.209 GB, free: 8.086 MB / 0.9669 GB Notification: Performance of NFFlatten.resolveConnections: time 4.086e-05/0.3268, allocations: 4 kB / 1.209 GB, free: 8.082 MB / 0.9669 GB Notification: Performance of NFEvalConstants.evaluate: time 4.095e-05/0.3268, allocations: 7.938 kB / 1.209 GB, free: 8.074 MB / 0.9669 GB Notification: Performance of NFSimplifyModel.simplify: time 5.253e-05/0.3269, allocations: 15.97 kB / 1.209 GB, free: 8.059 MB / 0.9669 GB Notification: Performance of NFPackage.collectConstants: time 1.22e-05/0.3269, allocations: 0 / 1.209 GB, free: 8.059 MB / 0.9669 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0004961/0.3274, allocations: 339.3 kB / 1.21 GB, free: 7.727 MB / 0.9669 GB Notification: Performance of NFScalarize.scalarize: time 1.26e-05/0.3274, allocations: 7.922 kB / 1.21 GB, free: 7.719 MB / 0.9669 GB Notification: Performance of NFVerifyModel.verify: time 2.487e-05/0.3275, allocations: 11.92 kB / 1.21 GB, free: 7.707 MB / 0.9669 GB Notification: Performance of NFConvertDAE.convert: time 0.0002624/0.3277, allocations: 140 kB / 1.21 GB, free: 7.57 MB / 0.9669 GB Notification: Performance of FrontEnd - DAE generated: time 4.338e-06/0.3278, allocations: 0 / 1.21 GB, free: 7.57 MB / 0.9669 GB Notification: Performance of FrontEnd: time 1.793e-06/0.3278, allocations: 4 kB / 1.21 GB, free: 7.566 MB / 0.9669 GB Notification: Performance of Transformations before backend: time 5.6e-06/0.3278, allocations: 0 / 1.21 GB, free: 7.566 MB / 0.9669 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.00045/0.3282, allocations: 367.3 kB / 1.21 GB, free: 7.156 MB / 0.9669 GB Notification: Performance of prepare preOptimizeDAE: time 4.109e-05/0.3283, allocations: 12.03 kB / 1.21 GB, free: 7.145 MB / 0.9669 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.611e-05/0.3283, allocations: 34.75 kB / 1.21 GB, free: 7.102 MB / 0.9669 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.781e-05/0.3284, allocations: 0.9375 kB / 1.21 GB, free: 7.102 MB / 0.9669 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001161/0.3285, allocations: 164.4 kB / 1.21 GB, free: 6.902 MB / 0.9669 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.052e-05/0.3285, allocations: 384 / 1.21 GB, free: 6.902 MB / 0.9669 GB Notification: Performance of preOpt expandDerOperator (simulation): time 2.071e-05/0.3285, allocations: 4.359 kB / 1.21 GB, free: 6.898 MB / 0.9669 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001022/0.3286, allocations: 42.27 kB / 1.21 GB, free: 6.852 MB / 0.9669 GB Notification: Performance of preOpt findStateOrder (simulation): time 9.427e-06/0.3286, allocations: 3.938 kB / 1.21 GB, free: 6.848 MB / 0.9669 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.107e-06/0.3287, allocations: 0 / 1.21 GB, free: 6.848 MB / 0.9669 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.953e-06/0.3287, allocations: 3.984 kB / 1.21 GB, free: 6.844 MB / 0.9669 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 4.525e-05/0.3287, allocations: 15.94 kB / 1.21 GB, free: 6.828 MB / 0.9669 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001713/0.3289, allocations: 157.7 kB / 1.211 GB, free: 6.625 MB / 0.9669 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001851/0.3291, allocations: 42.61 kB / 1.211 GB, free: 6.574 MB / 0.9669 GB Notification: Performance of preOpt resolveLoops (simulation): time 3.504e-05/0.3291, allocations: 20.95 kB / 1.211 GB, free: 6.551 MB / 0.9669 GB Notification: Performance of preOpt evalFunc (simulation): time 2.009e-05/0.3292, allocations: 7.922 kB / 1.211 GB, free: 6.543 MB / 0.9669 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.062e-05/0.3292, allocations: 34.56 kB / 1.211 GB, free: 6.5 MB / 0.9669 GB Notification: Performance of pre-optimization done (n=4): time 1.172e-06/0.3292, allocations: 0 / 1.211 GB, free: 6.5 MB / 0.9669 GB Notification: Performance of matching and sorting (n=6): time 0.0006426/0.3298, allocations: 318 kB / 1.211 GB, free: 6.137 MB / 0.9669 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.22e-05/0.3299, allocations: 55.41 kB / 1.211 GB, free: 6.07 MB / 0.9669 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 6.629e-05/0.33, allocations: 97.84 kB / 1.211 GB, free: 5.965 MB / 0.9669 GB Notification: Performance of collectPreVariables (initialization): time 1.694e-05/0.33, allocations: 33.7 kB / 1.211 GB, free: 5.926 MB / 0.9669 GB Notification: Performance of collectInitialEqns (initialization): time 3.229e-05/0.33, allocations: 84.14 kB / 1.211 GB, free: 5.84 MB / 0.9669 GB Notification: Performance of collectInitialBindings (initialization): time 2.573e-05/0.3301, allocations: 7.812 kB / 1.211 GB, free: 5.832 MB / 0.9669 GB Notification: Performance of simplifyInitialFunctions (initialization): time 4.869e-05/0.3301, allocations: 29.61 kB / 1.211 GB, free: 5.797 MB / 0.9669 GB Notification: Performance of setup shared object (initialization): time 0.0001071/0.3302, allocations: 314.8 kB / 1.212 GB, free: 5.48 MB / 0.9669 GB Notification: Performance of preBalanceInitialSystem (initialization): time 2.547e-05/0.3303, allocations: 8 kB / 1.212 GB, free: 5.473 MB / 0.9669 GB Notification: Performance of partitionIndependentBlocks (initialization): time 3.084e-05/0.3303, allocations: 11.98 kB / 1.212 GB, free: 5.461 MB / 0.9669 GB Notification: Performance of analyzeInitialSystem (initialization): time 5.817e-05/0.3304, allocations: 32.86 kB / 1.212 GB, free: 5.426 MB / 0.9669 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 8.01e-07/0.3304, allocations: 4 kB / 1.212 GB, free: 5.422 MB / 0.9669 GB Notification: Performance of matching and sorting (n=7) (initialization): time 9.965e-05/0.3305, allocations: 69.56 kB / 1.212 GB, free: 5.348 MB / 0.9669 GB Notification: Performance of prepare postOptimizeDAE: time 2.286e-05/0.3305, allocations: 4 kB / 1.212 GB, free: 5.344 MB / 0.9669 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.909e-06/0.3305, allocations: 240 / 1.212 GB, free: 5.344 MB / 0.9669 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.415e-05/0.3305, allocations: 0 / 1.212 GB, free: 5.344 MB / 0.9669 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 5.003e-05/0.3306, allocations: 15.94 kB / 1.212 GB, free: 5.328 MB / 0.9669 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.394e-06/0.3306, allocations: 3.984 kB / 1.212 GB, free: 5.324 MB / 0.9669 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 1.915e-05/0.3306, allocations: 4 kB / 1.212 GB, free: 5.32 MB / 0.9669 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.893e-06/0.3306, allocations: 4 kB / 1.212 GB, free: 5.316 MB / 0.9669 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.27e-05/0.3307, allocations: 113.8 kB / 1.212 GB, free: 5.195 MB / 0.9669 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.426e-05/0.3307, allocations: 7.938 kB / 1.212 GB, free: 5.188 MB / 0.9669 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001482/0.3309, allocations: 73.59 kB / 1.212 GB, free: 5.105 MB / 0.9669 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.194e-06/0.3309, allocations: 0 / 1.212 GB, free: 5.105 MB / 0.9669 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.047e-06/0.3309, allocations: 0 / 1.212 GB, free: 5.105 MB / 0.9669 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.936e-06/0.3309, allocations: 0 / 1.212 GB, free: 5.105 MB / 0.9669 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003176/0.3312, allocations: 323.3 kB / 1.212 GB, free: 4.73 MB / 0.9669 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.964e-06/0.3312, allocations: 0 / 1.212 GB, free: 4.73 MB / 0.9669 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 6.046e-05/0.3313, allocations: 8 kB / 1.212 GB, free: 4.723 MB / 0.9669 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.665e-06/0.3313, allocations: 4.031 kB / 1.212 GB, free: 4.719 MB / 0.9669 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.105e-05/0.3313, allocations: 4.188 kB / 1.212 GB, free: 4.715 MB / 0.9669 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.886e-06/0.3313, allocations: 4 kB / 1.212 GB, free: 4.711 MB / 0.9669 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.112e-06/0.3314, allocations: 0 / 1.212 GB, free: 4.711 MB / 0.9669 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001877/0.3315, allocations: 184.2 kB / 1.212 GB, free: 4.512 MB / 0.9669 GB Notification: Performance of postOpt removeConstants (simulation): time 5.068e-05/0.3316, allocations: 85.64 kB / 1.212 GB, free: 4.41 MB / 0.9669 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.459e-05/0.3316, allocations: 4 kB / 1.212 GB, free: 4.406 MB / 0.9669 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.062e-05/0.3317, allocations: 8.062 kB / 1.213 GB, free: 4.398 MB / 0.9669 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.333e-05/0.3317, allocations: 3.938 kB / 1.213 GB, free: 4.395 MB / 0.9669 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.663e-06/0.3317, allocations: 4 kB / 1.213 GB, free: 4.391 MB / 0.9669 GB Notification: Performance of sorting global known variables: time 3.689e-05/0.3318, allocations: 87.25 kB / 1.213 GB, free: 4.305 MB / 0.9669 GB Notification: Performance of sort global known variables: time 2.81e-07/0.3318, allocations: 0 / 1.213 GB, free: 4.305 MB / 0.9669 GB Notification: Performance of remove unused functions: time 0.0002587/0.3321, allocations: 23.94 kB / 1.213 GB, free: 4.281 MB / 0.9669 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 2 * Number of states: 1 (m_flow_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.0005099/0.3326, allocations: 0.7366 MB / 1.213 GB, free: 3.516 MB / 0.9669 GB Notification: Performance of simCode: created initialization part: time 0.0001041/0.3327, allocations: 28 kB / 1.213 GB, free: 3.488 MB / 0.9669 GB Notification: Performance of simCode: created event and clocks part: time 2.564e-06/0.3327, allocations: 0 / 1.213 GB, free: 3.488 MB / 0.9669 GB Notification: Performance of simCode: created simulation system equations: time 3.22e-05/0.3327, allocations: 23.92 kB / 1.213 GB, free: 3.465 MB / 0.9669 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000224/0.333, allocations: 8 kB / 1.213 GB, free: 3.457 MB / 0.9669 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001221/0.3342, allocations: 1.331 MB / 1.215 GB, free: 2.039 MB / 0.9669 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002459/0.3344, allocations: 0.6807 MB / 1.215 GB, free: 1.332 MB / 0.9669 GB Notification: Performance of simCode: alias equations: time 2.974e-05/0.3345, allocations: 12 kB / 1.215 GB, free: 1.32 MB / 0.9669 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.355e-05/0.3345, allocations: 15.44 kB / 1.215 GB, free: 1.305 MB / 0.9669 GB Notification: Performance of SimCode: time 2.41e-07/0.3345, allocations: 0 / 1.215 GB, free: 1.305 MB / 0.9669 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01768/0.3522, allocations: 1.618 MB / 1.217 GB, free: 15.86 MB / 0.9825 GB Notification: Performance of buildModelFMU: Generate platform static: time 8.014/8.366, allocations: 11.06 kB / 1.217 GB, free: 15.86 MB / 0.9825 GB (rm -f Buildings_latest_Buildings.Fluid.BaseClasses.FlowModels.Validation.BasicFlowFunction_dp_DerivativeCheck.pipe ; mkfifo Buildings_latest_Buildings.Fluid.BaseClasses.FlowModels.Validation.BasicFlowFunction_dp_DerivativeCheck.pipe ; head -c 1048576 < Buildings_latest_Buildings.Fluid.BaseClasses.FlowModels.Validation.BasicFlowFunction_dp_DerivativeCheck.pipe >> ../files/Buildings_latest_Buildings.Fluid.BaseClasses.FlowModels.Validation.BasicFlowFunction_dp_DerivativeCheck.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Buildings_latest_Buildings.Fluid.BaseClasses.FlowModels.Validation.BasicFlowFunction_dp_DerivativeCheck_res.mat --tempDir=temp_Buildings_latest_Buildings_Fluid_BaseClasses_FlowModels_Validation_BasicFlowFunction_dp_DerivativeCheck_fmu --startTime=-2 --stopTime=2 --timeout=50 --tolerance=1e-08 Buildings_latest_Buildings_Fluid_BaseClasses_FlowModels_Validation_BasicFlowFunction_dp_DerivativeCheck.fmu > Buildings_latest_Buildings.Fluid.BaseClasses.FlowModels.Validation.BasicFlowFunction_dp_DerivativeCheck.pipe 2>&1) diffSimulationResults("Buildings_latest_Buildings.Fluid.BaseClasses.FlowModels.Validation.BasicFlowFunction_dp_DerivativeCheck_res.mat","/mnt/ReferenceFiles/Buildings/csv/master/Buildings_Fluid_BaseClasses_FlowModels_Validation_BasicFlowFunction_dp_DerivativeCheck.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_latest_Buildings.Fluid.BaseClasses.FlowModels.Validation.BasicFlowFunction_dp_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,m_flow,m_flow_comp Variables in the result:der(dp),der(m_flow),der(m_flow_comp),dp,err,k,m_flow,m_flow_comp,m_flow_turbulent,time