Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_12_Buildings.Fluid.BaseClasses.FlowModels.Validation.BasicFlowFunction_dp_DerivativeCheck.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo): time 0.001317/0.001317, allocations: 103.6 kB / 18.95 MB, free: 2.66 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo): time 0.001629/0.001629, allocations: 216.3 kB / 22.24 MB, free: 5.258 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo): time 1.393/1.393, allocations: 230.6 MB / 256 MB, free: 7.812 MB / 206.1 MB " [Timeout remaining time 178] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.1.1-maint.12.x/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.1.1-maint.12.x/package.mo): time 3.004/3.004, allocations: 0.49 GB / 0.7951 GB, free: 35.41 MB / 0.6231 GB " [Timeout remaining time 177] Using package Buildings with version 12.1.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.1.1-maint.12.x/package.mo) Using package Modelica with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo) Using package Complex with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo) Using package ModelicaServices with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo) Running command: "" <> buildModelFMU(Buildings.Fluid.BaseClasses.FlowModels.Validation.BasicFlowFunction_dp_DerivativeCheck,fileNamePrefix="Buildings_12_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_12_Buildings_Fluid_BaseClasses_FlowModels_Validation_BasicFlowFunction_dp_DerivativeCheck",fmuType="me",version="2.0",platforms={"static"}) [Timeout 300] "Notification: Buildings requested package Modelica of version 4.0.0. Modelica 4.1.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Performance of FrontEnd - loaded program: time 0.001901/0.001901, allocations: 68.86 kB / 1.154 GB, free: 25.49 MB / 0.9044 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3089/0.3108, allocations: 176.1 MB / 1.326 GB, free: 1.453 MB / 1.014 GB Notification: Performance of NFInst.instantiate(Buildings.Fluid.BaseClasses.FlowModels.Validation.BasicFlowFunction_dp_DerivativeCheck): time 0.002498/0.3133, allocations: 1.294 MB / 1.327 GB, free: 156 kB / 1.014 GB Notification: Performance of NFInst.instExpressions: time 0.001017/0.3143, allocations: 0.5372 MB / 1.328 GB, free: 15.61 MB / 1.029 GB Notification: Performance of NFInst.updateImplicitVariability: time 2.399e-05/0.3143, allocations: 0 / 1.328 GB, free: 15.61 MB / 1.029 GB Notification: Performance of NFTyping.typeComponents: time 2.26e-05/0.3143, allocations: 7.984 kB / 1.328 GB, free: 15.61 MB / 1.029 GB Notification: Performance of NFTyping.typeBindings: time 4.593e-05/0.3144, allocations: 3.938 kB / 1.328 GB, free: 15.6 MB / 1.029 GB Notification: Performance of NFTyping.typeClassSections: time 0.0005492/0.3149, allocations: 142.5 kB / 1.328 GB, free: 15.46 MB / 1.029 GB Notification: Performance of NFFlatten.flatten: time 7.09e-05/0.315, allocations: 19.94 kB / 1.328 GB, free: 15.45 MB / 1.029 GB Notification: Performance of NFFlatten.resolveConnections: time 4.768e-05/0.3151, allocations: 11.98 kB / 1.328 GB, free: 15.43 MB / 1.029 GB Notification: Performance of NFEvalConstants.evaluate: time 4.157e-05/0.3151, allocations: 7.938 kB / 1.328 GB, free: 15.43 MB / 1.029 GB Notification: Performance of NFSimplifyModel.simplify: time 4.885e-05/0.3152, allocations: 11.98 kB / 1.328 GB, free: 15.41 MB / 1.029 GB Notification: Performance of NFPackage.collectConstants: time 1.15e-05/0.3152, allocations: 0 / 1.328 GB, free: 15.41 MB / 1.029 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0004376/0.3156, allocations: 275.5 kB / 1.328 GB, free: 15.14 MB / 1.029 GB Notification: Performance of NFScalarize.scalarize: time 1.672e-05/0.3156, allocations: 8 kB / 1.328 GB, free: 15.14 MB / 1.029 GB Notification: Performance of NFVerifyModel.verify: time 2.559e-05/0.3156, allocations: 15.92 kB / 1.328 GB, free: 15.12 MB / 1.029 GB Notification: Performance of NFConvertDAE.convert: time 0.0002595/0.3159, allocations: 135.7 kB / 1.328 GB, free: 14.99 MB / 1.029 GB Notification: Performance of FrontEnd - DAE generated: time 4.118e-06/0.3159, allocations: 0 / 1.328 GB, free: 14.99 MB / 1.029 GB Notification: Performance of FrontEnd: time 1.744e-06/0.3159, allocations: 0 / 1.328 GB, free: 14.99 MB / 1.029 GB Notification: Performance of Transformations before backend: time 5.47e-06/0.3159, allocations: 0 / 1.328 GB, free: 14.99 MB / 1.029 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.000444/0.3164, allocations: 286 kB / 1.329 GB, free: 14.68 MB / 1.029 GB Notification: Performance of prepare preOptimizeDAE: time 4.428e-05/0.3164, allocations: 15.97 kB / 1.329 GB, free: 14.66 MB / 1.029 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.884e-05/0.3164, allocations: 30.75 kB / 1.329 GB, free: 14.62 MB / 1.029 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.644e-05/0.3165, allocations: 4.938 kB / 1.329 GB, free: 14.62 MB / 1.029 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001201/0.3166, allocations: 122.5 kB / 1.329 GB, free: 14.47 MB / 1.029 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.296e-05/0.3166, allocations: 384 / 1.329 GB, free: 14.47 MB / 1.029 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.973e-05/0.3166, allocations: 8.312 kB / 1.329 GB, free: 14.46 MB / 1.029 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001359/0.3168, allocations: 63.95 kB / 1.329 GB, free: 14.39 MB / 1.029 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.046e-05/0.3168, allocations: 3.938 kB / 1.329 GB, free: 14.39 MB / 1.029 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.983e-06/0.3168, allocations: 0 / 1.329 GB, free: 14.39 MB / 1.029 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.033e-06/0.3168, allocations: 4 kB / 1.329 GB, free: 14.38 MB / 1.029 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 3.261e-05/0.3168, allocations: 4 kB / 1.329 GB, free: 14.38 MB / 1.029 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.000164/0.317, allocations: 136.8 kB / 1.329 GB, free: 14.2 MB / 1.029 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001761/0.3172, allocations: 46.44 kB / 1.329 GB, free: 14.15 MB / 1.029 GB Notification: Performance of preOpt resolveLoops (simulation): time 3.138e-05/0.3172, allocations: 16.86 kB / 1.329 GB, free: 14.13 MB / 1.029 GB Notification: Performance of preOpt evalFunc (simulation): time 1.755e-05/0.3172, allocations: 4 kB / 1.329 GB, free: 14.12 MB / 1.029 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.246e-05/0.3172, allocations: 34.56 kB / 1.329 GB, free: 14.08 MB / 1.029 GB Notification: Performance of pre-optimization done (n=4): time 9.72e-07/0.3172, allocations: 0 / 1.329 GB, free: 14.08 MB / 1.029 GB Notification: Performance of matching and sorting (n=6): time 0.0005558/0.3178, allocations: 237.2 kB / 1.329 GB, free: 13.82 MB / 1.029 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.572e-05/0.3178, allocations: 51.41 kB / 1.329 GB, free: 13.75 MB / 1.029 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 7.949e-05/0.3179, allocations: 97.86 kB / 1.329 GB, free: 13.65 MB / 1.029 GB Notification: Performance of collectPreVariables (initialization): time 1.557e-05/0.3179, allocations: 25.7 kB / 1.329 GB, free: 13.62 MB / 1.029 GB Notification: Performance of collectInitialEqns (initialization): time 3.836e-05/0.318, allocations: 80.14 kB / 1.329 GB, free: 13.54 MB / 1.029 GB Notification: Performance of collectInitialBindings (initialization): time 2.936e-05/0.318, allocations: 27.78 kB / 1.329 GB, free: 13.51 MB / 1.029 GB Notification: Performance of simplifyInitialFunctions (initialization): time 3.526e-05/0.318, allocations: 21.72 kB / 1.33 GB, free: 13.48 MB / 1.029 GB Notification: Performance of setup shared object (initialization): time 0.0001409/0.3182, allocations: 318.8 kB / 1.33 GB, free: 13.16 MB / 1.029 GB Notification: Performance of preBalanceInitialSystem (initialization): time 2.441e-05/0.3182, allocations: 8 kB / 1.33 GB, free: 13.15 MB / 1.029 GB Notification: Performance of partitionIndependentBlocks (initialization): time 2.355e-05/0.3182, allocations: 12 kB / 1.33 GB, free: 13.14 MB / 1.029 GB Notification: Performance of analyzeInitialSystem (initialization): time 5.563e-05/0.3183, allocations: 36.78 kB / 1.33 GB, free: 13.1 MB / 1.029 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.21e-07/0.3183, allocations: 0 / 1.33 GB, free: 13.1 MB / 1.029 GB Notification: Performance of matching and sorting (n=7) (initialization): time 9.833e-05/0.3184, allocations: 65.8 kB / 1.33 GB, free: 13.03 MB / 1.029 GB Notification: Performance of prepare postOptimizeDAE: time 1.895e-05/0.3184, allocations: 9.547 kB / 1.33 GB, free: 13.02 MB / 1.029 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.178e-06/0.3184, allocations: 0 / 1.33 GB, free: 13.02 MB / 1.029 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.257e-05/0.3184, allocations: 0 / 1.33 GB, free: 13.02 MB / 1.029 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 4.958e-05/0.3185, allocations: 12 kB / 1.33 GB, free: 13.01 MB / 1.029 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.093e-06/0.3185, allocations: 8.062 kB / 1.33 GB, free: 13 MB / 1.029 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 1.517e-05/0.3185, allocations: 0 / 1.33 GB, free: 13 MB / 1.029 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.254e-06/0.3185, allocations: 4 kB / 1.33 GB, free: 13 MB / 1.029 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 8.209e-05/0.3186, allocations: 114.3 kB / 1.33 GB, free: 12.88 MB / 1.029 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.646e-05/0.3186, allocations: 11.89 kB / 1.33 GB, free: 12.87 MB / 1.029 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001384/0.3187, allocations: 73.8 kB / 1.33 GB, free: 12.78 MB / 1.029 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.413e-06/0.3187, allocations: 3.938 kB / 1.33 GB, free: 12.78 MB / 1.029 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.246e-06/0.3187, allocations: 0 / 1.33 GB, free: 12.78 MB / 1.029 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.544e-06/0.3187, allocations: 0 / 1.33 GB, free: 12.78 MB / 1.029 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003334/0.3191, allocations: 294.4 kB / 1.33 GB, free: 12.44 MB / 1.029 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.293e-06/0.3191, allocations: 4.031 kB / 1.33 GB, free: 12.43 MB / 1.029 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 5.5e-05/0.3191, allocations: 8 kB / 1.33 GB, free: 12.43 MB / 1.029 GB Notification: Performance of postOpt tearingSystem (simulation): time 4.338e-06/0.3191, allocations: 4 kB / 1.33 GB, free: 12.42 MB / 1.029 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.072e-06/0.3191, allocations: 0 / 1.33 GB, free: 12.42 MB / 1.029 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.233e-06/0.3191, allocations: 3.938 kB / 1.33 GB, free: 12.42 MB / 1.029 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.871e-06/0.3191, allocations: 7.922 kB / 1.33 GB, free: 12.41 MB / 1.029 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001978/0.3193, allocations: 176.3 kB / 1.331 GB, free: 12.22 MB / 1.029 GB Notification: Performance of postOpt removeConstants (simulation): time 2.61e-05/0.3194, allocations: 11.97 kB / 1.331 GB, free: 12.21 MB / 1.029 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.122e-05/0.3194, allocations: 0 / 1.331 GB, free: 12.21 MB / 1.029 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 6.787e-05/0.3194, allocations: 4 kB / 1.331 GB, free: 12.2 MB / 1.029 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.252e-05/0.3195, allocations: 8.062 kB / 1.331 GB, free: 12.2 MB / 1.029 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.187e-06/0.3195, allocations: 0 / 1.331 GB, free: 12.2 MB / 1.029 GB Notification: Performance of sorting global known variables: time 4.035e-05/0.3195, allocations: 83.27 kB / 1.331 GB, free: 12.11 MB / 1.029 GB Notification: Performance of sort global known variables: time 8e-08/0.3195, allocations: 0 / 1.331 GB, free: 12.11 MB / 1.029 GB Notification: Performance of remove unused functions: time 0.0002365/0.3197, allocations: 23.94 kB / 1.331 GB, free: 12.09 MB / 1.029 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.0005637/0.3203, allocations: 0.7327 MB / 1.331 GB, free: 11.33 MB / 1.029 GB Notification: Performance of simCode: created initialization part: time 0.0001645/0.3205, allocations: 31.92 kB / 1.332 GB, free: 11.3 MB / 1.029 GB Notification: Performance of simCode: created event and clocks part: time 5.922e-06/0.3205, allocations: 4 kB / 1.332 GB, free: 11.29 MB / 1.029 GB Notification: Performance of simCode: created simulation system equations: time 3.605e-05/0.3205, allocations: 12.38 kB / 1.332 GB, free: 11.28 MB / 1.029 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002364/0.3207, allocations: 9.312 kB / 1.332 GB, free: 11.27 MB / 1.029 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001453/0.3222, allocations: 1.331 MB / 1.333 GB, free: 9.859 MB / 1.029 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 6.488e-05/0.3223, allocations: 67.41 kB / 1.333 GB, free: 9.773 MB / 1.029 GB Notification: Performance of simCode: alias equations: time 2.976e-05/0.3223, allocations: 4 kB / 1.333 GB, free: 9.77 MB / 1.029 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.561e-05/0.3223, allocations: 11.53 kB / 1.333 GB, free: 9.758 MB / 1.029 GB Notification: Performance of SimCode: time 4.61e-07/0.3223, allocations: 3.938 kB / 1.333 GB, free: 9.754 MB / 1.029 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03017/0.3525, allocations: 2.121 MB / 1.335 GB, free: 7.793 MB / 1.029 GB Notification: Performance of buildModelFMU: Generate platform static: time 10.51/10.86, allocations: 6.938 kB / 1.335 GB, free: 7.789 MB / 1.029 GB " [Timeout remaining time 289] (rm -f Buildings_12_Buildings.Fluid.BaseClasses.FlowModels.Validation.BasicFlowFunction_dp_DerivativeCheck.pipe ; mkfifo Buildings_12_Buildings.Fluid.BaseClasses.FlowModels.Validation.BasicFlowFunction_dp_DerivativeCheck.pipe ; head -c 1048576 < Buildings_12_Buildings.Fluid.BaseClasses.FlowModels.Validation.BasicFlowFunction_dp_DerivativeCheck.pipe >> ../files/Buildings_12_Buildings.Fluid.BaseClasses.FlowModels.Validation.BasicFlowFunction_dp_DerivativeCheck.sim & python3 -m fmpy simulate --output-file Buildings_12_Buildings.Fluid.BaseClasses.FlowModels.Validation.BasicFlowFunction_dp_DerivativeCheck_res.csv --start-time -2 --stop-time 2 --timeout 400 --relative-tolerance 1e-08 --interface-type ModelExchange --solver CVode --output-interval 0.0016 Buildings_12_Buildings_Fluid_BaseClasses_FlowModels_Validation_BasicFlowFunction_dp_DerivativeCheck.fmu > Buildings_12_Buildings.Fluid.BaseClasses.FlowModels.Validation.BasicFlowFunction_dp_DerivativeCheck.pipe 2>&1) [Timeout 420.0] diffSimulationResults("Buildings_12_Buildings.Fluid.BaseClasses.FlowModels.Validation.BasicFlowFunction_dp_DerivativeCheck_res.csv","/mnt/ReferenceFiles/Buildings/csv/maint_12.x/Buildings_Fluid_BaseClasses_FlowModels_Validation_BasicFlowFunction_dp_DerivativeCheck.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_12_Buildings.Fluid.BaseClasses.FlowModels.Validation.BasicFlowFunction_dp_DerivativeCheck.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) [Timeout 300] "Error: Could not read variable m_flow in file Buildings_12_Buildings.Fluid.BaseClasses.FlowModels.Validation.BasicFlowFunction_dp_DerivativeCheck_res.csv. Warning: Get data of variable m_flow from file Buildings_12_Buildings.Fluid.BaseClasses.FlowModels.Validation.BasicFlowFunction_dp_DerivativeCheck_res.csv failed! " [Timeout remaining time 300] Reference file matches [Calling sys.exit(0), Time elapsed: 17.11933375900844]