Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_11_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.001817/0.001817, allocations: 104 kB / 16.45 MB, free: 6.449 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.002154/0.002154, allocations: 212.9 kB / 19.43 MB, free: 3.637 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.507/1.507, allocations: 230.6 MB / 252.8 MB, free: 9.125 MB / 206.1 MB " [Timeout remaining time 178] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.1.1-maint.11.x/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.1.1-maint.11.x/package.mo): time 2.881/2.881, allocations: 476.7 MB / 0.7672 GB, free: 5.238 MB / 0.6231 GB " [Timeout remaining time 177] Using package Buildings with version 11.1.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.1.1-maint.11.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_11_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_11_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.002027/0.002027, allocations: 75.39 kB / 1.112 GB, free: 9.082 MB / 0.8419 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3654/0.3674, allocations: 169.9 MB / 1.278 GB, free: 5.281 MB / 0.9825 GB Notification: Performance of NFInst.instantiate(Buildings.Fluid.BaseClasses.FlowModels.Validation.BasicFlowFunction_dp_DerivativeCheck): time 0.002575/0.37, allocations: 1.298 MB / 1.28 GB, free: 3.973 MB / 0.9825 GB Notification: Performance of NFInst.instExpressions: time 0.001059/0.3711, allocations: 0.6153 MB / 1.28 GB, free: 3.355 MB / 0.9825 GB Notification: Performance of NFInst.updateImplicitVariability: time 2.466e-05/0.3711, allocations: 0 / 1.28 GB, free: 3.355 MB / 0.9825 GB Notification: Performance of NFTyping.typeComponents: time 2.267e-05/0.3711, allocations: 3.938 kB / 1.28 GB, free: 3.352 MB / 0.9825 GB Notification: Performance of NFTyping.typeBindings: time 3.948e-05/0.3712, allocations: 0 / 1.28 GB, free: 3.352 MB / 0.9825 GB Notification: Performance of NFTyping.typeClassSections: time 0.0005675/0.3717, allocations: 143.4 kB / 1.28 GB, free: 3.211 MB / 0.9825 GB Notification: Performance of NFFlatten.flatten: time 7.189e-05/0.3718, allocations: 23.92 kB / 1.28 GB, free: 3.188 MB / 0.9825 GB Notification: Performance of NFFlatten.resolveConnections: time 4.463e-05/0.3718, allocations: 3.984 kB / 1.28 GB, free: 3.184 MB / 0.9825 GB Notification: Performance of NFEvalConstants.evaluate: time 4.865e-05/0.3719, allocations: 7.938 kB / 1.28 GB, free: 3.176 MB / 0.9825 GB Notification: Performance of NFSimplifyModel.simplify: time 5.573e-05/0.3719, allocations: 19.91 kB / 1.28 GB, free: 3.156 MB / 0.9825 GB Notification: Performance of NFPackage.collectConstants: time 1.104e-05/0.372, allocations: 7.938 kB / 1.28 GB, free: 3.148 MB / 0.9825 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0005362/0.3725, allocations: 339.4 kB / 1.281 GB, free: 2.816 MB / 0.9825 GB Notification: Performance of NFScalarize.scalarize: time 1.2e-05/0.3725, allocations: 0 / 1.281 GB, free: 2.816 MB / 0.9825 GB Notification: Performance of NFVerifyModel.verify: time 2.876e-05/0.3725, allocations: 11.92 kB / 1.281 GB, free: 2.805 MB / 0.9825 GB Notification: Performance of NFConvertDAE.convert: time 0.0002654/0.3728, allocations: 143.8 kB / 1.281 GB, free: 2.664 MB / 0.9825 GB Notification: Performance of FrontEnd - DAE generated: time 3.767e-06/0.3728, allocations: 0 / 1.281 GB, free: 2.664 MB / 0.9825 GB Notification: Performance of FrontEnd: time 1.563e-06/0.3728, allocations: 0 / 1.281 GB, free: 2.664 MB / 0.9825 GB Notification: Performance of Transformations before backend: time 9.327e-06/0.3728, allocations: 0 / 1.281 GB, free: 2.664 MB / 0.9825 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.0004854/0.3733, allocations: 367 kB / 1.281 GB, free: 2.254 MB / 0.9825 GB Notification: Performance of prepare preOptimizeDAE: time 4.215e-05/0.3733, allocations: 16.03 kB / 1.281 GB, free: 2.238 MB / 0.9825 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.826e-05/0.3734, allocations: 34.75 kB / 1.281 GB, free: 2.195 MB / 0.9825 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.941e-05/0.3734, allocations: 0.9375 kB / 1.281 GB, free: 2.195 MB / 0.9825 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001407/0.3735, allocations: 172.3 kB / 1.281 GB, free: 1.988 MB / 0.9825 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 9.978e-06/0.3736, allocations: 384 / 1.281 GB, free: 1.988 MB / 0.9825 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.992e-05/0.3736, allocations: 384 / 1.281 GB, free: 1.988 MB / 0.9825 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001145/0.3737, allocations: 42.25 kB / 1.281 GB, free: 1.941 MB / 0.9825 GB Notification: Performance of preOpt findStateOrder (simulation): time 9.498e-06/0.3737, allocations: 3.938 kB / 1.281 GB, free: 1.938 MB / 0.9825 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.516e-06/0.3737, allocations: 0 / 1.281 GB, free: 1.938 MB / 0.9825 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.939e-06/0.3737, allocations: 3.938 kB / 1.281 GB, free: 1.934 MB / 0.9825 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 4.599e-05/0.3738, allocations: 16 kB / 1.281 GB, free: 1.918 MB / 0.9825 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001866/0.3739, allocations: 153.7 kB / 1.282 GB, free: 1.719 MB / 0.9825 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001973/0.3741, allocations: 46.55 kB / 1.282 GB, free: 1.664 MB / 0.9825 GB Notification: Performance of preOpt resolveLoops (simulation): time 3.971e-05/0.3742, allocations: 20.94 kB / 1.282 GB, free: 1.641 MB / 0.9825 GB Notification: Performance of preOpt evalFunc (simulation): time 1.622e-05/0.3742, allocations: 0 / 1.282 GB, free: 1.641 MB / 0.9825 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.743e-05/0.3742, allocations: 34.56 kB / 1.282 GB, free: 1.598 MB / 0.9825 GB Notification: Performance of pre-optimization done (n=4): time 8.82e-07/0.3742, allocations: 4 kB / 1.282 GB, free: 1.594 MB / 0.9825 GB Notification: Performance of matching and sorting (n=6): time 0.0006617/0.3749, allocations: 306.2 kB / 1.282 GB, free: 1.242 MB / 0.9825 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.156e-05/0.3749, allocations: 55.41 kB / 1.282 GB, free: 1.176 MB / 0.9825 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 7.187e-05/0.375, allocations: 98.17 kB / 1.282 GB, free: 1.07 MB / 0.9825 GB Notification: Performance of collectPreVariables (initialization): time 2.023e-05/0.375, allocations: 25.7 kB / 1.282 GB, free: 1.039 MB / 0.9825 GB Notification: Performance of collectInitialEqns (initialization): time 4.179e-05/0.3751, allocations: 81.42 kB / 1.282 GB, free: 0.957 MB / 0.9825 GB Notification: Performance of collectInitialBindings (initialization): time 3.326e-05/0.3751, allocations: 27.78 kB / 1.282 GB, free: 0.9297 MB / 0.9825 GB Notification: Performance of simplifyInitialFunctions (initialization): time 3.812e-05/0.3751, allocations: 25.66 kB / 1.282 GB, free: 0.8984 MB / 0.9825 GB Notification: Performance of setup shared object (initialization): time 0.0001394/0.3753, allocations: 318.8 kB / 1.283 GB, free: 0.5781 MB / 0.9825 GB Notification: Performance of preBalanceInitialSystem (initialization): time 2.637e-05/0.3753, allocations: 7.984 kB / 1.283 GB, free: 0.5703 MB / 0.9825 GB Notification: Performance of partitionIndependentBlocks (initialization): time 2.637e-05/0.3753, allocations: 15.98 kB / 1.283 GB, free: 0.5547 MB / 0.9825 GB Notification: Performance of analyzeInitialSystem (initialization): time 6.173e-05/0.3754, allocations: 32.86 kB / 1.283 GB, free: 0.5195 MB / 0.9825 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 9.32e-07/0.3754, allocations: 64 / 1.283 GB, free: 0.5195 MB / 0.9825 GB Notification: Performance of matching and sorting (n=7) (initialization): time 0.0001188/0.3755, allocations: 69.62 kB / 1.283 GB, free: 456 kB / 0.9825 GB Notification: Performance of prepare postOptimizeDAE: time 1.551e-05/0.3755, allocations: 4 kB / 1.283 GB, free: 452 kB / 0.9825 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.649e-06/0.3755, allocations: 3.938 kB / 1.283 GB, free: 448 kB / 0.9825 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.362e-05/0.3755, allocations: 4.188 kB / 1.283 GB, free: 444 kB / 0.9825 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 6.006e-05/0.3756, allocations: 19.92 kB / 1.283 GB, free: 424 kB / 0.9825 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.769e-06/0.3756, allocations: 0 / 1.283 GB, free: 424 kB / 0.9825 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 1.757e-05/0.3756, allocations: 0 / 1.283 GB, free: 424 kB / 0.9825 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.825e-06/0.3756, allocations: 4 kB / 1.283 GB, free: 420 kB / 0.9825 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.301e-05/0.3757, allocations: 109.8 kB / 1.283 GB, free: 300 kB / 0.9825 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.724e-05/0.3757, allocations: 11.88 kB / 1.283 GB, free: 288 kB / 0.9825 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001562/0.3759, allocations: 77.64 kB / 1.283 GB, free: 196 kB / 0.9825 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.733e-06/0.3759, allocations: 0 / 1.283 GB, free: 196 kB / 0.9825 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.228e-06/0.3759, allocations: 4 kB / 1.283 GB, free: 192 kB / 0.9825 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.206e-06/0.3759, allocations: 0 / 1.283 GB, free: 192 kB / 0.9825 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003729/0.3763, allocations: 315.3 kB / 1.283 GB, free: 15.82 MB / 0.9981 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.293e-06/0.3763, allocations: 0 / 1.283 GB, free: 15.82 MB / 0.9981 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 6.495e-05/0.3763, allocations: 15.94 kB / 1.283 GB, free: 15.8 MB / 0.9981 GB Notification: Performance of postOpt tearingSystem (simulation): time 4.669e-06/0.3763, allocations: 3.984 kB / 1.283 GB, free: 15.8 MB / 0.9981 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.372e-06/0.3763, allocations: 0 / 1.283 GB, free: 15.8 MB / 0.9981 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.402e-06/0.3763, allocations: 4 kB / 1.283 GB, free: 15.8 MB / 0.9981 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.122e-06/0.3764, allocations: 3.938 kB / 1.283 GB, free: 15.79 MB / 0.9981 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001975/0.3765, allocations: 176.4 kB / 1.283 GB, free: 15.6 MB / 0.9981 GB Notification: Performance of postOpt removeConstants (simulation): time 5.793e-05/0.3766, allocations: 89.08 kB / 1.284 GB, free: 15.5 MB / 0.9981 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.747e-05/0.3766, allocations: 4 kB / 1.284 GB, free: 15.49 MB / 0.9981 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 7.019e-05/0.3767, allocations: 192 / 1.284 GB, free: 15.49 MB / 0.9981 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.06e-05/0.3767, allocations: 8 kB / 1.284 GB, free: 15.48 MB / 0.9981 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.148e-06/0.3767, allocations: 7.984 kB / 1.284 GB, free: 15.48 MB / 0.9981 GB Notification: Performance of sorting global known variables: time 4.206e-05/0.3768, allocations: 79.34 kB / 1.284 GB, free: 15.4 MB / 0.9981 GB Notification: Performance of sort global known variables: time 1e-07/0.3768, allocations: 3.938 kB / 1.284 GB, free: 15.39 MB / 0.9981 GB Notification: Performance of remove unused functions: time 0.0002595/0.377, allocations: 27.88 kB / 1.284 GB, free: 15.37 MB / 0.9981 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.0005797/0.3776, allocations: 0.7294 MB / 1.284 GB, free: 14.61 MB / 0.9981 GB Notification: Performance of simCode: created initialization part: time 0.0001135/0.3777, allocations: 43.98 kB / 1.284 GB, free: 14.57 MB / 0.9981 GB Notification: Performance of simCode: created event and clocks part: time 2.595e-06/0.3777, allocations: 0 / 1.284 GB, free: 14.57 MB / 0.9981 GB Notification: Performance of simCode: created simulation system equations: time 3.001e-05/0.3778, allocations: 12 kB / 1.284 GB, free: 14.55 MB / 0.9981 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000219/0.378, allocations: 5.5 kB / 1.284 GB, free: 14.55 MB / 0.9981 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001334/0.3793, allocations: 1.323 MB / 1.286 GB, free: 13.14 MB / 0.9981 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002924/0.3796, allocations: 0.6845 MB / 1.286 GB, free: 12.43 MB / 0.9981 GB Notification: Performance of simCode: alias equations: time 3.262e-05/0.3796, allocations: 8.062 kB / 1.286 GB, free: 12.42 MB / 0.9981 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.816e-05/0.3797, allocations: 15.42 kB / 1.286 GB, free: 12.41 MB / 0.9981 GB Notification: Performance of SimCode: time 5.11e-07/0.3797, allocations: 0 / 1.286 GB, free: 12.41 MB / 0.9981 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02696/0.4066, allocations: 1.643 MB / 1.288 GB, free: 10.95 MB / 0.9981 GB Notification: Performance of buildModelFMU: Generate platform static: time 8.552/8.959, allocations: 10.42 kB / 1.288 GB, free: 10.94 MB / 0.9981 GB " [Timeout remaining time 291] (rm -f Buildings_11_Buildings.Fluid.BaseClasses.FlowModels.Validation.BasicFlowFunction_dp_DerivativeCheck.pipe ; mkfifo Buildings_11_Buildings.Fluid.BaseClasses.FlowModels.Validation.BasicFlowFunction_dp_DerivativeCheck.pipe ; head -c 1048576 < Buildings_11_Buildings.Fluid.BaseClasses.FlowModels.Validation.BasicFlowFunction_dp_DerivativeCheck.pipe >> ../files/Buildings_11_Buildings.Fluid.BaseClasses.FlowModels.Validation.BasicFlowFunction_dp_DerivativeCheck.sim & python3 -m fmpy simulate --output-file Buildings_11_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_11_Buildings_Fluid_BaseClasses_FlowModels_Validation_BasicFlowFunction_dp_DerivativeCheck.fmu > Buildings_11_Buildings.Fluid.BaseClasses.FlowModels.Validation.BasicFlowFunction_dp_DerivativeCheck.pipe 2>&1) [Timeout 420.0] diffSimulationResults("Buildings_11_Buildings.Fluid.BaseClasses.FlowModels.Validation.BasicFlowFunction_dp_DerivativeCheck_res.csv","/mnt/ReferenceFiles/Buildings/csv/maint_11.x/Buildings_Fluid_BaseClasses_FlowModels_Validation_BasicFlowFunction_dp_DerivativeCheck.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_11_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_11_Buildings.Fluid.BaseClasses.FlowModels.Validation.BasicFlowFunction_dp_DerivativeCheck_res.csv. Warning: Get data of variable m_flow from file Buildings_11_Buildings.Fluid.BaseClasses.FlowModels.Validation.BasicFlowFunction_dp_DerivativeCheck_res.csv failed! " [Timeout remaining time 300] Reference file matches [Calling sys.exit(0), Time elapsed: 15.765823249006644]