Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_12_Buildings.Fluid.BaseClasses.FlowModels.Validation.BasicFlowFunction_dp_DerivativeCheck2.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.001742/0.001742, allocations: 110.4 kB / 19.73 MB, free: 2.242 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.002131/0.002131, allocations: 218.7 kB / 23.05 MB, free: 5.074 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.481/1.481, allocations: 230.6 MB / 256.8 MB, free: 7.992 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.199/3.199, allocations: 0.49 GB / 0.7959 GB, free: 33.38 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_DerivativeCheck2,fileNamePrefix="Buildings_12_Buildings_Fluid_BaseClasses_FlowModels_Validation_BasicFlowFunction_dp_DerivativeCheck2",fmuType="cs",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Fluid.BaseClasses.FlowModels.Validation.BasicFlowFunction_dp_DerivativeCheck2,fileNamePrefix="Buildings_12_Buildings_Fluid_BaseClasses_FlowModels_Validation_BasicFlowFunction_dp_DerivativeCheck2",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.00226/0.00226, allocations: 65.34 kB / 1.155 GB, free: 25.72 MB / 0.9044 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3674/0.3696, allocations: 176.1 MB / 1.327 GB, free: 1.965 MB / 1.014 GB Notification: Performance of NFInst.instantiate(Buildings.Fluid.BaseClasses.FlowModels.Validation.BasicFlowFunction_dp_DerivativeCheck2): time 0.002512/0.3721, allocations: 1.319 MB / 1.328 GB, free: 0.6406 MB / 1.014 GB Notification: Performance of NFInst.instExpressions: time 0.001139/0.3733, allocations: 0.6188 MB / 1.329 GB, free: 20 kB / 1.014 GB Notification: Performance of NFInst.updateImplicitVariability: time 2.324e-05/0.3733, allocations: 0 / 1.329 GB, free: 20 kB / 1.014 GB Notification: Performance of NFTyping.typeComponents: time 2.475e-05/0.3733, allocations: 3.938 kB / 1.329 GB, free: 16 kB / 1.014 GB Notification: Performance of NFTyping.typeBindings: time 3.888e-05/0.3734, allocations: 0 / 1.329 GB, free: 16 kB / 1.014 GB Notification: Performance of NFTyping.typeClassSections: time 0.0005853/0.3739, allocations: 151.4 kB / 1.329 GB, free: 15.87 MB / 1.029 GB Notification: Performance of NFFlatten.flatten: time 7.625e-05/0.374, allocations: 31.86 kB / 1.329 GB, free: 15.84 MB / 1.029 GB Notification: Performance of NFFlatten.resolveConnections: time 4.22e-05/0.3741, allocations: 0 / 1.329 GB, free: 15.84 MB / 1.029 GB Notification: Performance of NFEvalConstants.evaluate: time 3.004e-05/0.3741, allocations: 15.94 kB / 1.329 GB, free: 15.82 MB / 1.029 GB Notification: Performance of NFSimplifyModel.simplify: time 6.648e-05/0.3742, allocations: 23.91 kB / 1.329 GB, free: 15.8 MB / 1.029 GB Notification: Performance of NFPackage.collectConstants: time 1.089e-05/0.3742, allocations: 0 / 1.329 GB, free: 15.8 MB / 1.029 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0005513/0.3747, allocations: 339.4 kB / 1.329 GB, free: 15.46 MB / 1.029 GB Notification: Performance of NFScalarize.scalarize: time 1.741e-05/0.3747, allocations: 11.92 kB / 1.329 GB, free: 15.45 MB / 1.029 GB Notification: Performance of NFVerifyModel.verify: time 2.955e-05/0.3748, allocations: 15.94 kB / 1.329 GB, free: 15.44 MB / 1.029 GB Notification: Performance of NFConvertDAE.convert: time 0.0002764/0.3751, allocations: 143.8 kB / 1.329 GB, free: 15.3 MB / 1.029 GB Notification: Performance of FrontEnd - DAE generated: time 4.339e-06/0.3751, allocations: 0 / 1.329 GB, free: 15.3 MB / 1.029 GB Notification: Performance of FrontEnd: time 1.913e-06/0.3751, allocations: 0 / 1.329 GB, free: 15.3 MB / 1.029 GB Notification: Performance of Transformations before backend: time 6.121e-06/0.3751, allocations: 0 / 1.329 GB, free: 15.3 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: 7 * Number of variables: 7 Notification: Performance of Generate backend data structure: time 0.0004603/0.3755, allocations: 301.9 kB / 1.33 GB, free: 14.97 MB / 1.029 GB Notification: Performance of prepare preOptimizeDAE: time 4.339e-05/0.3756, allocations: 12.03 kB / 1.33 GB, free: 14.96 MB / 1.029 GB Notification: Performance of preOpt introduceOutputRealDerivatives (simulation): time 1.652e-05/0.3756, allocations: 4.125 kB / 1.33 GB, free: 14.95 MB / 1.029 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.296e-05/0.3756, allocations: 30.75 kB / 1.33 GB, free: 14.91 MB / 1.029 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.276e-05/0.3757, allocations: 4.938 kB / 1.33 GB, free: 14.91 MB / 1.029 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001087/0.3758, allocations: 110.5 kB / 1.33 GB, free: 14.78 MB / 1.029 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 9.257e-06/0.3758, allocations: 8.375 kB / 1.33 GB, free: 14.77 MB / 1.029 GB Notification: Performance of preOpt expandDerOperator (simulation): time 2.414e-05/0.3758, allocations: 4.375 kB / 1.33 GB, free: 14.77 MB / 1.029 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000127/0.3759, allocations: 50 kB / 1.33 GB, free: 14.71 MB / 1.029 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.572e-05/0.3759, allocations: 11.95 kB / 1.33 GB, free: 14.7 MB / 1.029 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.418e-06/0.376, allocations: 0 / 1.33 GB, free: 14.7 MB / 1.029 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.689e-06/0.376, allocations: 0 / 1.33 GB, free: 14.7 MB / 1.029 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 6.476e-05/0.376, allocations: 23.92 kB / 1.33 GB, free: 14.68 MB / 1.029 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001879/0.3762, allocations: 140.6 kB / 1.33 GB, free: 14.5 MB / 1.029 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001238/0.3763, allocations: 58.55 kB / 1.33 GB, free: 14.43 MB / 1.029 GB Notification: Performance of preOpt resolveLoops (simulation): time 4.406e-05/0.3764, allocations: 24.86 kB / 1.33 GB, free: 14.4 MB / 1.029 GB Notification: Performance of preOpt evalFunc (simulation): time 1.838e-05/0.3764, allocations: 4 kB / 1.33 GB, free: 14.4 MB / 1.029 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.387e-05/0.3764, allocations: 38.5 kB / 1.33 GB, free: 14.35 MB / 1.029 GB Notification: Performance of pre-optimization done (n=7): time 9.12e-07/0.3764, allocations: 0 / 1.33 GB, free: 14.35 MB / 1.029 GB Notification: Performance of matching and sorting (n=11): time 0.001155/0.3776, allocations: 447.9 kB / 1.33 GB, free: 13.86 MB / 1.029 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.388e-05/0.3776, allocations: 63.28 kB / 1.331 GB, free: 13.79 MB / 1.029 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 8.291e-05/0.3777, allocations: 97.84 kB / 1.331 GB, free: 13.68 MB / 1.029 GB Notification: Performance of collectPreVariables (initialization): time 2.231e-05/0.3777, allocations: 29.7 kB / 1.331 GB, free: 13.64 MB / 1.029 GB Notification: Performance of collectInitialEqns (initialization): time 3.924e-05/0.3778, allocations: 80.14 kB / 1.331 GB, free: 13.56 MB / 1.029 GB Notification: Performance of collectInitialBindings (initialization): time 4.808e-05/0.3778, allocations: 43.58 kB / 1.331 GB, free: 13.52 MB / 1.029 GB Notification: Performance of simplifyInitialFunctions (initialization): time 5.718e-05/0.3779, allocations: 25.72 kB / 1.331 GB, free: 13.49 MB / 1.029 GB Notification: Performance of setup shared object (initialization): time 0.0001472/0.378, allocations: 322.8 kB / 1.331 GB, free: 13.16 MB / 1.029 GB Notification: Performance of preBalanceInitialSystem (initialization): time 4.537e-05/0.3781, allocations: 20.12 kB / 1.331 GB, free: 13.14 MB / 1.029 GB Notification: Performance of partitionIndependentBlocks (initialization): time 4.477e-05/0.3781, allocations: 23.98 kB / 1.331 GB, free: 13.12 MB / 1.029 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001021/0.3782, allocations: 54.84 kB / 1.331 GB, free: 13.07 MB / 1.029 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.72e-07/0.3782, allocations: 0 / 1.331 GB, free: 13.07 MB / 1.029 GB Notification: Performance of matching and sorting (n=13) (initialization): time 0.0001944/0.3784, allocations: 109.5 kB / 1.331 GB, free: 12.95 MB / 1.029 GB Notification: Performance of prepare postOptimizeDAE: time 1.862e-05/0.3784, allocations: 4 kB / 1.331 GB, free: 12.95 MB / 1.029 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.14e-06/0.3784, allocations: 0 / 1.331 GB, free: 12.95 MB / 1.029 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.43e-05/0.3785, allocations: 0 / 1.331 GB, free: 12.95 MB / 1.029 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001192/0.3786, allocations: 23.98 kB / 1.331 GB, free: 12.93 MB / 1.029 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.471e-06/0.3786, allocations: 0 / 1.331 GB, free: 12.93 MB / 1.029 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 2.659e-05/0.3786, allocations: 4 kB / 1.331 GB, free: 12.92 MB / 1.029 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.407e-06/0.3786, allocations: 8 kB / 1.331 GB, free: 12.91 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 (13): * Single equations (assignments): 13 * 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 0.0001076/0.3787, allocations: 114.3 kB / 1.331 GB, free: 12.79 MB / 1.029 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.726e-05/0.3787, allocations: 4 kB / 1.331 GB, free: 12.79 MB / 1.029 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.000224/0.379, allocations: 113.6 kB / 1.332 GB, free: 12.66 MB / 1.029 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.863e-06/0.379, allocations: 0 / 1.332 GB, free: 12.66 MB / 1.029 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.109e-06/0.379, allocations: 0 / 1.332 GB, free: 12.66 MB / 1.029 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.827e-06/0.379, allocations: 0 / 1.332 GB, free: 12.66 MB / 1.029 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0004819/0.3795, allocations: 333.5 kB / 1.332 GB, free: 12.29 MB / 1.029 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.683e-06/0.3795, allocations: 4 kB / 1.332 GB, free: 12.29 MB / 1.029 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000115/0.3796, allocations: 16 kB / 1.332 GB, free: 12.27 MB / 1.029 GB Notification: Performance of postOpt tearingSystem (simulation): time 5.099e-06/0.3796, allocations: 4.078 kB / 1.332 GB, free: 12.27 MB / 1.029 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.116e-05/0.3796, allocations: 7.938 kB / 1.332 GB, free: 12.26 MB / 1.029 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.362e-06/0.3796, allocations: 0 / 1.332 GB, free: 12.26 MB / 1.029 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.182e-06/0.3796, allocations: 3.938 kB / 1.332 GB, free: 12.25 MB / 1.029 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002796/0.3799, allocations: 208.9 kB / 1.332 GB, free: 12.04 MB / 1.029 GB Notification: Performance of postOpt removeConstants (simulation): time 9.118e-06/0.3799, allocations: 11.89 kB / 1.332 GB, free: 12.02 MB / 1.029 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.956e-05/0.3799, allocations: 12.06 kB / 1.332 GB, free: 12.01 MB / 1.029 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.784e-05/0.38, allocations: 7.984 kB / 1.332 GB, free: 12 MB / 1.029 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.307e-05/0.38, allocations: 4 kB / 1.332 GB, free: 12 MB / 1.029 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.388e-05/0.38, allocations: 7.984 kB / 1.332 GB, free: 11.99 MB / 1.029 GB Notification: Performance of sorting global known variables: time 4.365e-05/0.3801, allocations: 79.28 kB / 1.332 GB, free: 11.91 MB / 1.029 GB Notification: Performance of sort global known variables: time 6e-08/0.3801, allocations: 0 / 1.332 GB, free: 11.91 MB / 1.029 GB Notification: Performance of remove unused functions: time 0.0002808/0.3803, allocations: 39.81 kB / 1.332 GB, free: 11.88 MB / 1.029 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 2 (m_flow_comp,der_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 (11): * Single equations (assignments): 11 * 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.0007169/0.3811, allocations: 0.7826 MB / 1.333 GB, free: 11.07 MB / 1.029 GB Notification: Performance of simCode: created initialization part: time 0.0001551/0.3812, allocations: 55.97 kB / 1.333 GB, free: 11.01 MB / 1.029 GB Notification: Performance of simCode: created event and clocks part: time 2.254e-06/0.3812, allocations: 3.938 kB / 1.333 GB, free: 11.01 MB / 1.029 GB Notification: Performance of simCode: created simulation system equations: time 5.344e-05/0.3813, allocations: 31.94 kB / 1.333 GB, free: 10.98 MB / 1.029 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002769/0.3816, allocations: 3.984 kB / 1.333 GB, free: 10.97 MB / 1.029 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001742/0.3833, allocations: 1.502 MB / 1.335 GB, free: 9.395 MB / 1.029 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003399/0.3836, allocations: 0.6924 MB / 1.335 GB, free: 8.676 MB / 1.029 GB Notification: Performance of simCode: alias equations: time 4.42e-05/0.3837, allocations: 7.938 kB / 1.335 GB, free: 8.668 MB / 1.029 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.73e-05/0.3837, allocations: 19.44 kB / 1.335 GB, free: 8.648 MB / 1.029 GB Notification: Performance of SimCode: time 6.62e-07/0.3837, allocations: 0 / 1.335 GB, free: 8.648 MB / 1.029 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02436/0.4081, allocations: 2.237 MB / 1.337 GB, free: 6.602 MB / 1.029 GB Notification: Performance of buildModelFMU: Generate platform static: time 11.75/12.15, allocations: 9.938 kB / 1.337 GB, free: 6.594 MB / 1.029 GB " [Timeout remaining time 288] (rm -f Buildings_12_Buildings.Fluid.BaseClasses.FlowModels.Validation.BasicFlowFunction_dp_DerivativeCheck2.pipe ; mkfifo Buildings_12_Buildings.Fluid.BaseClasses.FlowModels.Validation.BasicFlowFunction_dp_DerivativeCheck2.pipe ; head -c 1048576 < Buildings_12_Buildings.Fluid.BaseClasses.FlowModels.Validation.BasicFlowFunction_dp_DerivativeCheck2.pipe >> ../files/Buildings_12_Buildings.Fluid.BaseClasses.FlowModels.Validation.BasicFlowFunction_dp_DerivativeCheck2.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Buildings_12_Buildings.Fluid.BaseClasses.FlowModels.Validation.BasicFlowFunction_dp_DerivativeCheck2_res.mat --tempDir=temp_Buildings_12_Buildings_Fluid_BaseClasses_FlowModels_Validation_BasicFlowFunction_dp_DerivativeCheck2_fmu --startTime=-2 --stopTime=2 --stepSize=0.0016 --timeout=400 --tolerance=1e-08 Buildings_12_Buildings_Fluid_BaseClasses_FlowModels_Validation_BasicFlowFunction_dp_DerivativeCheck2.fmu > Buildings_12_Buildings.Fluid.BaseClasses.FlowModels.Validation.BasicFlowFunction_dp_DerivativeCheck2.pipe 2>&1) [Timeout 420.0] diffSimulationResults("Buildings_12_Buildings.Fluid.BaseClasses.FlowModels.Validation.BasicFlowFunction_dp_DerivativeCheck2_res.mat","/mnt/ReferenceFiles/Buildings/csv/maint_12.x/Buildings_Fluid_BaseClasses_FlowModels_Validation_BasicFlowFunction_dp_DerivativeCheck2.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_12_Buildings.Fluid.BaseClasses.FlowModels.Validation.BasicFlowFunction_dp_DerivativeCheck2.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: 19.09453233203385]