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.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.001554/0.001554, allocations: 118.8 kB / 17.16 MB, free: 5.914 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.001869/0.001869, allocations: 206.2 kB / 20.13 MB, free: 2.969 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.48/1.48, allocations: 230.6 MB / 253.5 MB, free: 15.09 MB / 206.1 MB " [Timeout remaining time 178] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings master/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings master/package.mo): time 2.936/2.936, allocations: 0.5003 GB / 0.8026 GB, free: 6.699 MB / 0.6387 GB " [Timeout remaining time 176] Using package Buildings with version 13.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings master/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_latest_Buildings_Fluid_BaseClasses_FlowModels_Validation_BasicFlowFunction_dp_DerivativeCheck",fmuType="cs",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="cs",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.001974/0.001974, allocations: 67.89 kB / 1.165 GB, free: 0.5 MB / 0.9356 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.8132/0.8152, allocations: 178.9 MB / 1.34 GB, free: 16.27 MB / 1.061 GB Notification: Performance of NFInst.instantiate(Buildings.Fluid.BaseClasses.FlowModels.Validation.BasicFlowFunction_dp_DerivativeCheck): time 0.002086/0.8173, allocations: 1.297 MB / 1.341 GB, free: 15.35 MB / 1.061 GB Notification: Performance of NFInst.instExpressions: time 0.0008603/0.8181, allocations: 0.6142 MB / 1.342 GB, free: 14.93 MB / 1.061 GB Notification: Performance of NFInst.updateImplicitVariability: time 2.68e-05/0.8182, allocations: 0 / 1.342 GB, free: 14.93 MB / 1.061 GB Notification: Performance of NFTyping.typeComponents: time 1.624e-05/0.8182, allocations: 0.7969 kB / 1.342 GB, free: 14.93 MB / 1.061 GB Notification: Performance of NFTyping.typeBindings: time 4.305e-05/0.8182, allocations: 5.969 kB / 1.342 GB, free: 14.92 MB / 1.061 GB Notification: Performance of NFTyping.typeClassSections: time 0.0004828/0.8187, allocations: 143 kB / 1.342 GB, free: 14.86 MB / 1.061 GB Notification: Performance of NFFlatten.flatten: time 6.223e-05/0.8188, allocations: 24.69 kB / 1.342 GB, free: 14.85 MB / 1.061 GB Notification: Performance of NFFlatten.resolveConnections: time 3.667e-05/0.8188, allocations: 1.781 kB / 1.342 GB, free: 14.85 MB / 1.061 GB Notification: Performance of NFEvalConstants.evaluate: time 3.294e-05/0.8188, allocations: 8.906 kB / 1.342 GB, free: 14.84 MB / 1.061 GB Notification: Performance of NFSimplifyModel.simplify: time 4.513e-05/0.8189, allocations: 13.33 kB / 1.342 GB, free: 14.84 MB / 1.061 GB Notification: Performance of NFPackage.collectConstants: time 1.04e-05/0.8189, allocations: 0.9375 kB / 1.342 GB, free: 14.84 MB / 1.061 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0004827/0.8194, allocations: 345.3 kB / 1.343 GB, free: 14.73 MB / 1.061 GB Notification: Performance of NFScalarize.scalarize: time 1.083e-05/0.8194, allocations: 1.828 kB / 1.343 GB, free: 14.73 MB / 1.061 GB Notification: Performance of NFVerifyModel.verify: time 1.991e-05/0.8194, allocations: 8.328 kB / 1.343 GB, free: 14.73 MB / 1.061 GB Notification: Performance of NFConvertDAE.convert: time 0.0002394/0.8196, allocations: 151.1 kB / 1.343 GB, free: 14.68 MB / 1.061 GB Notification: Performance of FrontEnd - DAE generated: time 4.669e-06/0.8196, allocations: 1.75 kB / 1.343 GB, free: 14.68 MB / 1.061 GB Notification: Performance of FrontEnd: time 1.553e-06/0.8196, allocations: 3.938 kB / 1.343 GB, free: 14.68 MB / 1.061 GB Notification: Performance of Transformations before backend: time 4.86e-06/0.8197, allocations: 0 / 1.343 GB, free: 14.68 MB / 1.061 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.0003443/0.82, allocations: 366 kB / 1.343 GB, free: 14.29 MB / 1.061 GB Notification: Performance of prepare preOptimizeDAE: time 3.995e-05/0.82, allocations: 10.62 kB / 1.343 GB, free: 14.29 MB / 1.061 GB Notification: Performance of preOpt introduceOutputRealDerivatives (simulation): time 1.917e-05/0.8201, allocations: 4.188 kB / 1.343 GB, free: 14.29 MB / 1.061 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 1.871e-05/0.8201, allocations: 31.41 kB / 1.343 GB, free: 14.25 MB / 1.061 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.366e-05/0.8201, allocations: 2.844 kB / 1.343 GB, free: 14.25 MB / 1.061 GB Notification: Performance of preOpt evaluateParameters (simulation): time 7.424e-05/0.8202, allocations: 167.2 kB / 1.343 GB, free: 14.05 MB / 1.061 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 7.254e-06/0.8202, allocations: 2.578 kB / 1.343 GB, free: 14.05 MB / 1.061 GB Notification: Performance of preOpt expandDerOperator (simulation): time 2.065e-05/0.8202, allocations: 1.656 kB / 1.343 GB, free: 14.05 MB / 1.061 GB Notification: Performance of preOpt clockPartitioning (simulation): time 9.137e-05/0.8203, allocations: 52.05 kB / 1.343 GB, free: 14 MB / 1.061 GB Notification: Performance of preOpt findStateOrder (simulation): time 8.496e-06/0.8203, allocations: 0 / 1.343 GB, free: 14 MB / 1.061 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.335e-06/0.8203, allocations: 1.281 kB / 1.343 GB, free: 14 MB / 1.061 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.24e-06/0.8203, allocations: 3.984 kB / 1.343 GB, free: 14 MB / 1.061 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 3.727e-05/0.8204, allocations: 12.94 kB / 1.343 GB, free: 13.99 MB / 1.061 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001168/0.8205, allocations: 158.7 kB / 1.343 GB, free: 13.8 MB / 1.061 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001621/0.8206, allocations: 43.09 kB / 1.343 GB, free: 13.77 MB / 1.061 GB Notification: Performance of preOpt resolveLoops (simulation): time 2.818e-05/0.8207, allocations: 21.34 kB / 1.344 GB, free: 13.75 MB / 1.061 GB Notification: Performance of preOpt evalFunc (simulation): time 1.486e-05/0.8207, allocations: 0.6562 kB / 1.344 GB, free: 13.75 MB / 1.061 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.845e-05/0.8207, allocations: 39.75 kB / 1.344 GB, free: 13.7 MB / 1.061 GB Notification: Performance of pre-optimization done (n=4): time 1.082e-06/0.8207, allocations: 0 / 1.344 GB, free: 13.7 MB / 1.061 GB Notification: Performance of matching and sorting (n=6): time 0.0005082/0.8212, allocations: 313.2 kB / 1.344 GB, free: 13.41 MB / 1.061 GB Notification: Performance of inlineWhenForInitialization (initialization): time 1.85e-05/0.8212, allocations: 53.39 kB / 1.344 GB, free: 13.35 MB / 1.061 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 4.266e-05/0.8213, allocations: 96.41 kB / 1.344 GB, free: 13.25 MB / 1.061 GB Notification: Performance of collectPreVariables (initialization): time 7.534e-06/0.8213, allocations: 29.7 kB / 1.344 GB, free: 13.22 MB / 1.061 GB Notification: Performance of collectInitialEqns (initialization): time 1.554e-05/0.8213, allocations: 85.58 kB / 1.344 GB, free: 13.13 MB / 1.061 GB Notification: Performance of collectInitialBindings (initialization): time 2.304e-05/0.8213, allocations: 15.41 kB / 1.344 GB, free: 13.12 MB / 1.061 GB Notification: Performance of simplifyInitialFunctions (initialization): time 3.057e-05/0.8213, allocations: 20.95 kB / 1.344 GB, free: 13.1 MB / 1.061 GB Notification: Performance of setup shared object (initialization): time 4.018e-05/0.8214, allocations: 317.7 kB / 1.344 GB, free: 12.79 MB / 1.061 GB Notification: Performance of preBalanceInitialSystem (initialization): time 2.453e-05/0.8214, allocations: 11.84 kB / 1.344 GB, free: 12.78 MB / 1.061 GB Notification: Performance of partitionIndependentBlocks (initialization): time 2.207e-05/0.8214, allocations: 15.34 kB / 1.344 GB, free: 12.77 MB / 1.061 GB Notification: Performance of analyzeInitialSystem (initialization): time 5.12e-05/0.8215, allocations: 34.42 kB / 1.345 GB, free: 12.75 MB / 1.061 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.31e-07/0.8215, allocations: 7.938 kB / 1.345 GB, free: 12.75 MB / 1.061 GB Notification: Performance of matching and sorting (n=7) (initialization): time 8.789e-05/0.8216, allocations: 67.91 kB / 1.345 GB, free: 12.7 MB / 1.061 GB Notification: Performance of prepare postOptimizeDAE: time 1.257e-05/0.8216, allocations: 5.125 kB / 1.345 GB, free: 12.7 MB / 1.061 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.827e-06/0.8216, allocations: 0.75 kB / 1.345 GB, free: 12.7 MB / 1.061 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.53e-05/0.8216, allocations: 1.344 kB / 1.345 GB, free: 12.7 MB / 1.061 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 5.028e-05/0.8216, allocations: 11.03 kB / 1.345 GB, free: 12.7 MB / 1.061 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 3.697e-06/0.8217, allocations: 0 / 1.345 GB, free: 12.7 MB / 1.061 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 1.781e-05/0.8217, allocations: 5.031 kB / 1.345 GB, free: 12.7 MB / 1.061 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.181e-06/0.8217, allocations: 1.922 kB / 1.345 GB, free: 12.7 MB / 1.061 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 3.905e-05/0.8217, allocations: 112.9 kB / 1.345 GB, free: 12.58 MB / 1.061 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.154e-05/0.8217, allocations: 6.125 kB / 1.345 GB, free: 12.57 MB / 1.061 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001199/0.8218, allocations: 81.06 kB / 1.345 GB, free: 12.51 MB / 1.061 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.794e-06/0.8218, allocations: 1.125 kB / 1.345 GB, free: 12.51 MB / 1.061 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.667e-06/0.8219, allocations: 0.6562 kB / 1.345 GB, free: 12.51 MB / 1.061 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.845e-06/0.8219, allocations: 1.281 kB / 1.345 GB, free: 12.51 MB / 1.061 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002166/0.8221, allocations: 316.8 kB / 1.345 GB, free: 12.18 MB / 1.061 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.593e-06/0.8221, allocations: 0.5625 kB / 1.345 GB, free: 12.18 MB / 1.061 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 6.032e-05/0.8221, allocations: 15.53 kB / 1.345 GB, free: 12.18 MB / 1.061 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.284e-06/0.8221, allocations: 1.188 kB / 1.345 GB, free: 12.18 MB / 1.061 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.522e-06/0.8221, allocations: 1.156 kB / 1.345 GB, free: 12.18 MB / 1.061 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.364e-06/0.8221, allocations: 2.031 kB / 1.345 GB, free: 12.18 MB / 1.061 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.513e-06/0.8221, allocations: 5.016 kB / 1.345 GB, free: 12.17 MB / 1.061 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001323/0.8223, allocations: 188.3 kB / 1.345 GB, free: 12 MB / 1.061 GB Notification: Performance of postOpt removeConstants (simulation): time 2.688e-05/0.8223, allocations: 82.06 kB / 1.345 GB, free: 11.91 MB / 1.061 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.231e-05/0.8223, allocations: 9.219 kB / 1.345 GB, free: 11.9 MB / 1.061 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 6.766e-05/0.8224, allocations: 1.734 kB / 1.345 GB, free: 11.9 MB / 1.061 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.531e-05/0.8224, allocations: 4.516 kB / 1.345 GB, free: 11.9 MB / 1.061 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.47e-06/0.8224, allocations: 5.672 kB / 1.345 GB, free: 11.9 MB / 1.061 GB Notification: Performance of sorting global known variables: time 1.721e-05/0.8224, allocations: 79.53 kB / 1.345 GB, free: 11.82 MB / 1.061 GB Notification: Performance of sort global known variables: time 8e-08/0.8224, allocations: 0 / 1.345 GB, free: 11.82 MB / 1.061 GB Notification: Performance of remove unused functions: time 0.0002387/0.8227, allocations: 23.22 kB / 1.345 GB, free: 11.82 MB / 1.061 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.0003215/0.823, allocations: 0.7375 MB / 1.346 GB, free: 11.12 MB / 1.061 GB Notification: Performance of simCode: created initialization part: time 0.0001033/0.8231, allocations: 35.23 kB / 1.346 GB, free: 11.11 MB / 1.061 GB Notification: Performance of simCode: created event and clocks part: time 1.723e-06/0.8231, allocations: 0 / 1.346 GB, free: 11.11 MB / 1.061 GB Notification: Performance of simCode: created simulation system equations: time 2.691e-05/0.8231, allocations: 20.3 kB / 1.346 GB, free: 11.1 MB / 1.061 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002099/0.8233, allocations: 2.938 kB / 1.346 GB, free: 11.1 MB / 1.061 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0008965/0.8242, allocations: 1.325 MB / 1.348 GB, free: 9.828 MB / 1.061 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001054/0.8243, allocations: 0.6793 MB / 1.348 GB, free: 9.133 MB / 1.061 GB Notification: Performance of simCode: alias equations: time 2.991e-05/0.8244, allocations: 9.359 kB / 1.348 GB, free: 9.129 MB / 1.061 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.85e-05/0.8244, allocations: 11.36 kB / 1.348 GB, free: 9.125 MB / 1.061 GB Notification: Performance of SimCode: time 3.21e-07/0.8244, allocations: 0 / 1.348 GB, free: 9.125 MB / 1.061 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01911/0.8435, allocations: 1.667 MB / 1.35 GB, free: 8.754 MB / 1.061 GB Notification: Performance of buildModelFMU: Generate platform static: time 8.128/8.972, allocations: 5.219 kB / 1.35 GB, free: 8.754 MB / 1.061 GB " [Timeout remaining time 291] (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 --stepSize=0.0016 --timeout=800 --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) [Timeout 840.0] 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) [Timeout 300] "" [Timeout remaining time 300] Reference file matches [Calling sys.exit(0), Time elapsed: 15.221987847995479]