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.001388/0.001388, allocations: 115.6 kB / 17.16 MB, free: 5.895 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.001476/0.001476, allocations: 215 kB / 20.13 MB, free: 2.949 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.467/1.467, 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 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 2.86/2.86, allocations: 0.49 GB / 0.7923 GB, free: 1.324 MB / 0.6231 GB " [Timeout remaining time 176] 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="cs",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="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.002079/0.002079, allocations: 71.91 kB / 1.15 GB, free: 15.38 MB / 0.9356 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.9181/0.9202, allocations: 176.1 MB / 1.321 GB, free: 24.77 MB / 1.061 GB Notification: Performance of NFInst.instantiate(Buildings.Fluid.BaseClasses.FlowModels.Validation.BasicFlowFunction_dp_DerivativeCheck): time 0.002192/0.9224, allocations: 1.287 MB / 1.323 GB, free: 23.86 MB / 1.061 GB Notification: Performance of NFInst.instExpressions: time 0.0009167/0.9233, allocations: 0.6135 MB / 1.323 GB, free: 23.44 MB / 1.061 GB Notification: Performance of NFInst.updateImplicitVariability: time 3.023e-05/0.9234, allocations: 0 / 1.323 GB, free: 23.44 MB / 1.061 GB Notification: Performance of NFTyping.typeComponents: time 2.329e-05/0.9234, allocations: 0 / 1.323 GB, free: 23.44 MB / 1.061 GB Notification: Performance of NFTyping.typeBindings: time 4.847e-05/0.9234, allocations: 7.922 kB / 1.323 GB, free: 23.43 MB / 1.061 GB Notification: Performance of NFTyping.typeClassSections: time 0.000535/0.924, allocations: 143.6 kB / 1.323 GB, free: 23.37 MB / 1.061 GB Notification: Performance of NFFlatten.flatten: time 7.252e-05/0.924, allocations: 23.78 kB / 1.324 GB, free: 23.35 MB / 1.061 GB Notification: Performance of NFFlatten.resolveConnections: time 4.769e-05/0.9241, allocations: 5.797 kB / 1.324 GB, free: 23.35 MB / 1.061 GB Notification: Performance of NFEvalConstants.evaluate: time 4.114e-05/0.9241, allocations: 5.188 kB / 1.324 GB, free: 23.35 MB / 1.061 GB Notification: Performance of NFSimplifyModel.simplify: time 5.421e-05/0.9242, allocations: 17.58 kB / 1.324 GB, free: 23.34 MB / 1.061 GB Notification: Performance of NFPackage.collectConstants: time 1.29e-05/0.9242, allocations: 0 / 1.324 GB, free: 23.34 MB / 1.061 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0004171/0.9246, allocations: 340.7 kB / 1.324 GB, free: 23.24 MB / 1.061 GB Notification: Performance of NFScalarize.scalarize: time 1.293e-05/0.9246, allocations: 3.984 kB / 1.324 GB, free: 23.24 MB / 1.061 GB Notification: Performance of NFVerifyModel.verify: time 2.424e-05/0.9247, allocations: 13.78 kB / 1.324 GB, free: 23.23 MB / 1.061 GB Notification: Performance of NFConvertDAE.convert: time 0.0002403/0.9249, allocations: 147.2 kB / 1.324 GB, free: 23.18 MB / 1.061 GB Notification: Performance of FrontEnd - DAE generated: time 4.789e-06/0.9249, allocations: 2.844 kB / 1.324 GB, free: 23.18 MB / 1.061 GB Notification: Performance of FrontEnd: time 2.264e-06/0.9249, allocations: 0 / 1.324 GB, free: 23.18 MB / 1.061 GB Notification: Performance of Transformations before backend: time 6.442e-06/0.9249, allocations: 0 / 1.324 GB, free: 23.18 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.0003784/0.9253, allocations: 361.4 kB / 1.324 GB, free: 22.8 MB / 1.061 GB Notification: Performance of prepare preOptimizeDAE: time 3.89e-05/0.9253, allocations: 16.45 kB / 1.324 GB, free: 22.79 MB / 1.061 GB Notification: Performance of preOpt introduceOutputRealDerivatives (simulation): time 2.139e-05/0.9253, allocations: 3.094 kB / 1.324 GB, free: 22.79 MB / 1.061 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 1.864e-05/0.9254, allocations: 30.75 kB / 1.324 GB, free: 22.75 MB / 1.061 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.625e-05/0.9254, allocations: 7.969 kB / 1.324 GB, free: 22.75 MB / 1.061 GB Notification: Performance of preOpt evaluateParameters (simulation): time 8.043e-05/0.9255, allocations: 160.4 kB / 1.325 GB, free: 22.55 MB / 1.061 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.118e-05/0.9255, allocations: 384 / 1.325 GB, free: 22.55 MB / 1.061 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.869e-05/0.9255, allocations: 2.969 kB / 1.325 GB, free: 22.55 MB / 1.061 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000102/0.9256, allocations: 46.61 kB / 1.325 GB, free: 22.51 MB / 1.061 GB Notification: Performance of preOpt findStateOrder (simulation): time 9.508e-06/0.9256, allocations: 2.406 kB / 1.325 GB, free: 22.51 MB / 1.061 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.125e-06/0.9256, allocations: 0 / 1.325 GB, free: 22.51 MB / 1.061 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.018e-06/0.9256, allocations: 0 / 1.325 GB, free: 22.51 MB / 1.061 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 3.784e-05/0.9257, allocations: 14.64 kB / 1.325 GB, free: 22.51 MB / 1.061 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001389/0.9258, allocations: 166.4 kB / 1.325 GB, free: 22.3 MB / 1.061 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001751/0.926, allocations: 42.69 kB / 1.325 GB, free: 22.27 MB / 1.061 GB Notification: Performance of preOpt resolveLoops (simulation): time 3.014e-05/0.926, allocations: 17.17 kB / 1.325 GB, free: 22.26 MB / 1.061 GB Notification: Performance of preOpt evalFunc (simulation): time 1.919e-05/0.926, allocations: 0 / 1.325 GB, free: 22.26 MB / 1.061 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.187e-05/0.926, allocations: 41.16 kB / 1.325 GB, free: 22.21 MB / 1.061 GB Notification: Performance of pre-optimization done (n=4): time 9.52e-07/0.926, allocations: 0 / 1.325 GB, free: 22.21 MB / 1.061 GB Notification: Performance of matching and sorting (n=6): time 0.000544/0.9266, allocations: 318.5 kB / 1.325 GB, free: 21.92 MB / 1.061 GB Notification: Performance of inlineWhenForInitialization (initialization): time 2.687e-05/0.9266, allocations: 53.94 kB / 1.325 GB, free: 21.86 MB / 1.061 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 5.293e-05/0.9267, allocations: 92.98 kB / 1.325 GB, free: 21.76 MB / 1.061 GB Notification: Performance of collectPreVariables (initialization): time 8.937e-06/0.9267, allocations: 25.7 kB / 1.325 GB, free: 21.73 MB / 1.061 GB Notification: Performance of collectInitialEqns (initialization): time 1.83e-05/0.9267, allocations: 88.14 kB / 1.325 GB, free: 21.64 MB / 1.061 GB Notification: Performance of collectInitialBindings (initialization): time 2.47e-05/0.9267, allocations: 17.41 kB / 1.325 GB, free: 21.63 MB / 1.061 GB Notification: Performance of simplifyInitialFunctions (initialization): time 3.072e-05/0.9268, allocations: 22.58 kB / 1.325 GB, free: 21.61 MB / 1.061 GB Notification: Performance of setup shared object (initialization): time 4.483e-05/0.9268, allocations: 325.6 kB / 1.326 GB, free: 21.29 MB / 1.061 GB Notification: Performance of preBalanceInitialSystem (initialization): time 2.526e-05/0.9268, allocations: 13.78 kB / 1.326 GB, free: 21.28 MB / 1.061 GB Notification: Performance of partitionIndependentBlocks (initialization): time 1.912e-05/0.9268, allocations: 12.81 kB / 1.326 GB, free: 21.27 MB / 1.061 GB Notification: Performance of analyzeInitialSystem (initialization): time 4.974e-05/0.9269, allocations: 33.95 kB / 1.326 GB, free: 21.25 MB / 1.061 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.21e-07/0.9269, allocations: 3.938 kB / 1.326 GB, free: 21.25 MB / 1.061 GB Notification: Performance of matching and sorting (n=7) (initialization): time 8.222e-05/0.927, allocations: 68.19 kB / 1.326 GB, free: 21.2 MB / 1.061 GB Notification: Performance of prepare postOptimizeDAE: time 1.204e-05/0.927, allocations: 3.031 kB / 1.326 GB, free: 21.2 MB / 1.061 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.248e-06/0.927, allocations: 0 / 1.326 GB, free: 21.2 MB / 1.061 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.398e-05/0.927, allocations: 6.141 kB / 1.326 GB, free: 21.2 MB / 1.061 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 4.879e-05/0.9271, allocations: 8.969 kB / 1.326 GB, free: 21.2 MB / 1.061 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.6e-06/0.9271, allocations: 4 kB / 1.326 GB, free: 21.2 MB / 1.061 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 1.798e-05/0.9271, allocations: 4 kB / 1.326 GB, free: 21.2 MB / 1.061 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.382e-06/0.9271, allocations: 2.875 kB / 1.326 GB, free: 21.2 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 4.896e-05/0.9271, allocations: 110.5 kB / 1.326 GB, free: 21.08 MB / 1.061 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.323e-05/0.9271, allocations: 11.31 kB / 1.326 GB, free: 21.07 MB / 1.061 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001205/0.9273, allocations: 79.34 kB / 1.326 GB, free: 21.01 MB / 1.061 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.493e-06/0.9273, allocations: 0 / 1.326 GB, free: 21.01 MB / 1.061 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.37e-06/0.9273, allocations: 0 / 1.326 GB, free: 21.01 MB / 1.061 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.739e-06/0.9273, allocations: 10.16 kB / 1.326 GB, free: 21 MB / 1.061 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002319/0.9275, allocations: 308.8 kB / 1.326 GB, free: 20.68 MB / 1.061 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.423e-06/0.9275, allocations: 0 / 1.326 GB, free: 20.68 MB / 1.061 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 5.978e-05/0.9276, allocations: 14.08 kB / 1.326 GB, free: 20.68 MB / 1.061 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.004e-06/0.9276, allocations: 0 / 1.326 GB, free: 20.68 MB / 1.061 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.934e-06/0.9276, allocations: 2.812 kB / 1.326 GB, free: 20.68 MB / 1.061 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.392e-06/0.9276, allocations: 0 / 1.326 GB, free: 20.68 MB / 1.061 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.72e-07/0.9276, allocations: 0 / 1.326 GB, free: 20.68 MB / 1.061 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001421/0.9277, allocations: 190.1 kB / 1.327 GB, free: 20.51 MB / 1.061 GB Notification: Performance of postOpt removeConstants (simulation): time 2.716e-05/0.9278, allocations: 87.89 kB / 1.327 GB, free: 20.41 MB / 1.061 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.342e-05/0.9278, allocations: 4 kB / 1.327 GB, free: 20.41 MB / 1.061 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 6.855e-05/0.9278, allocations: 2.875 kB / 1.327 GB, free: 20.41 MB / 1.061 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.375e-05/0.9278, allocations: 3.375 kB / 1.327 GB, free: 20.41 MB / 1.061 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.318e-06/0.9279, allocations: 2.906 kB / 1.327 GB, free: 20.41 MB / 1.061 GB Notification: Performance of sorting global known variables: time 2.021e-05/0.9279, allocations: 82.27 kB / 1.327 GB, free: 20.33 MB / 1.061 GB Notification: Performance of sort global known variables: time 8.1e-08/0.9279, allocations: 4.062 kB / 1.327 GB, free: 20.33 MB / 1.061 GB Notification: Performance of remove unused functions: time 0.0002381/0.9281, allocations: 22.59 kB / 1.327 GB, free: 20.32 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.0003515/0.9285, allocations: 0.731 MB / 1.328 GB, free: 19.63 MB / 1.061 GB Notification: Performance of simCode: created initialization part: time 0.0001065/0.9286, allocations: 36.23 kB / 1.328 GB, free: 19.62 MB / 1.061 GB Notification: Performance of simCode: created event and clocks part: time 2.114e-06/0.9286, allocations: 4.062 kB / 1.328 GB, free: 19.61 MB / 1.061 GB Notification: Performance of simCode: created simulation system equations: time 2.727e-05/0.9286, allocations: 21.86 kB / 1.328 GB, free: 19.61 MB / 1.061 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000219/0.9288, allocations: 2.969 kB / 1.328 GB, free: 19.61 MB / 1.061 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0008945/0.9297, allocations: 1.324 MB / 1.329 GB, free: 18.34 MB / 1.061 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001005/0.9298, allocations: 0.6832 MB / 1.33 GB, free: 17.64 MB / 1.061 GB Notification: Performance of simCode: alias equations: time 2.878e-05/0.9298, allocations: 9.938 kB / 1.33 GB, free: 17.64 MB / 1.061 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.161e-05/0.9299, allocations: 13.91 kB / 1.33 GB, free: 17.62 MB / 1.061 GB Notification: Performance of SimCode: time 3.01e-07/0.9299, allocations: 3.031 kB / 1.33 GB, free: 17.62 MB / 1.061 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.0218/0.9517, allocations: 1.66 MB / 1.331 GB, free: 17.26 MB / 1.061 GB Notification: Performance of buildModelFMU: Generate platform static: time 7.995/8.946, allocations: 9.406 kB / 1.331 GB, free: 17.25 MB / 1.061 GB " [Timeout remaining time 291] (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 & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Buildings_12_Buildings.Fluid.BaseClasses.FlowModels.Validation.BasicFlowFunction_dp_DerivativeCheck_res.mat --tempDir=temp_Buildings_12_Buildings_Fluid_BaseClasses_FlowModels_Validation_BasicFlowFunction_dp_DerivativeCheck_fmu --startTime=-2 --stopTime=2 --stepSize=0.0016 --timeout=400 --tolerance=1e-08 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.mat","/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] "" [Timeout remaining time 300] Reference file matches [Calling sys.exit(0), Time elapsed: 15.12371922103921]