Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_12_Buildings.Fluid.BaseClasses.FlowModels.Validation.BasicFlowFunction_m_flow_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.001336/0.001336, allocations: 96.42 kB / 19.7 MB, free: 2.133 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.001462/0.001462, allocations: 207.8 kB / 22.99 MB, free: 4.957 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.477/1.477, allocations: 230.6 MB / 256.8 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.16/3.16, allocations: 0.49 GB / 0.7959 GB, free: 35.39 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: translateModel(Buildings.Fluid.BaseClasses.FlowModels.Validation.BasicFlowFunction_m_flow_DerivativeCheck2,tolerance=1e-08,outputFormat="mat",numberOfIntervals=2500,variableFilter="time|dp|dp_comp|der.dp.|der.dp_comp.",fileNamePrefix="Buildings_12_Buildings.Fluid.BaseClasses.FlowModels.Validation.BasicFlowFunction_m_flow_DerivativeCheck2") translateModel(Buildings.Fluid.BaseClasses.FlowModels.Validation.BasicFlowFunction_m_flow_DerivativeCheck2,tolerance=1e-08,outputFormat="mat",numberOfIntervals=2500,variableFilter="time|dp|dp_comp|der.dp.|der.dp_comp.",fileNamePrefix="Buildings_12_Buildings.Fluid.BaseClasses.FlowModels.Validation.BasicFlowFunction_m_flow_DerivativeCheck2") [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.002084/0.002084, allocations: 70.53 kB / 1.155 GB, free: 25.18 MB / 0.9044 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3128/0.3149, allocations: 176.1 MB / 1.327 GB, free: 1.016 MB / 1.014 GB Notification: Performance of NFInst.instantiate(Buildings.Fluid.BaseClasses.FlowModels.Validation.BasicFlowFunction_m_flow_DerivativeCheck2): time 0.002638/0.3175, allocations: 1.484 MB / 1.329 GB, free: 15.53 MB / 1.029 GB Notification: Performance of NFInst.instExpressions: time 0.001087/0.3186, allocations: 0.5643 MB / 1.329 GB, free: 14.96 MB / 1.029 GB Notification: Performance of NFInst.updateImplicitVariability: time 2.866e-05/0.3186, allocations: 0 / 1.329 GB, free: 14.96 MB / 1.029 GB Notification: Performance of NFTyping.typeComponents: time 3.078e-05/0.3186, allocations: 3.938 kB / 1.329 GB, free: 14.96 MB / 1.029 GB Notification: Performance of NFTyping.typeBindings: time 4.463e-05/0.3187, allocations: 3.938 kB / 1.329 GB, free: 14.95 MB / 1.029 GB Notification: Performance of NFTyping.typeClassSections: time 0.0005561/0.3192, allocations: 173.3 kB / 1.329 GB, free: 14.79 MB / 1.029 GB Notification: Performance of NFFlatten.flatten: time 8.823e-05/0.3193, allocations: 47.91 kB / 1.329 GB, free: 14.74 MB / 1.029 GB Notification: Performance of NFFlatten.resolveConnections: time 4.177e-05/0.3194, allocations: 4 kB / 1.329 GB, free: 14.73 MB / 1.029 GB Notification: Performance of NFEvalConstants.evaluate: time 5.251e-05/0.3194, allocations: 19.92 kB / 1.329 GB, free: 14.71 MB / 1.029 GB Notification: Performance of NFSimplifyModel.simplify: time 4.922e-05/0.3195, allocations: 31.84 kB / 1.329 GB, free: 14.68 MB / 1.029 GB Notification: Performance of NFPackage.collectConstants: time 1.499e-05/0.3195, allocations: 4 kB / 1.329 GB, free: 14.68 MB / 1.029 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0004399/0.3199, allocations: 291.4 kB / 1.33 GB, free: 14.39 MB / 1.029 GB Notification: Performance of NFScalarize.scalarize: time 1.641e-05/0.3199, allocations: 8 kB / 1.33 GB, free: 14.39 MB / 1.029 GB Notification: Performance of NFVerifyModel.verify: time 3.59e-05/0.32, allocations: 27.86 kB / 1.33 GB, free: 14.36 MB / 1.029 GB Notification: Performance of NFConvertDAE.convert: time 0.0002781/0.3203, allocations: 159.5 kB / 1.33 GB, free: 14.2 MB / 1.029 GB Notification: Performance of FrontEnd - DAE generated: time 3.276e-06/0.3203, allocations: 3.938 kB / 1.33 GB, free: 14.2 MB / 1.029 GB Notification: Performance of FrontEnd: time 1.263e-06/0.3203, allocations: 7.875 kB / 1.33 GB, free: 14.19 MB / 1.029 GB Notification: Performance of Transformations before backend: time 4.558e-06/0.3203, allocations: 4 kB / 1.33 GB, free: 14.19 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: 13 * Number of variables: 13 Notification: Performance of Generate backend data structure: time 0.0005939/0.3209, allocations: 325.8 kB / 1.33 GB, free: 13.84 MB / 1.029 GB Notification: Performance of prepare preOptimizeDAE: time 3.258e-05/0.3209, allocations: 12.03 kB / 1.33 GB, free: 13.82 MB / 1.029 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.954e-05/0.3209, allocations: 8.891 kB / 1.33 GB, free: 13.82 MB / 1.029 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001064/0.3211, allocations: 102.5 kB / 1.33 GB, free: 13.69 MB / 1.029 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.39e-05/0.3211, allocations: 4.375 kB / 1.33 GB, free: 13.69 MB / 1.029 GB Notification: Performance of preOpt expandDerOperator (simulation): time 2.51e-05/0.3211, allocations: 12.33 kB / 1.33 GB, free: 13.68 MB / 1.029 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002939/0.3214, allocations: 129.6 kB / 1.33 GB, free: 13.53 MB / 1.029 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.1e-05/0.3214, allocations: 8.188 kB / 1.33 GB, free: 13.52 MB / 1.029 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.536e-05/0.3214, allocations: 7.938 kB / 1.33 GB, free: 13.52 MB / 1.029 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.947e-06/0.3214, allocations: 0 / 1.33 GB, free: 13.52 MB / 1.029 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.00025/0.3217, allocations: 51.89 kB / 1.33 GB, free: 13.46 MB / 1.029 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005176/0.3222, allocations: 260.3 kB / 1.331 GB, free: 13.18 MB / 1.029 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0003177/0.3225, allocations: 82.47 kB / 1.331 GB, free: 13.09 MB / 1.029 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001221/0.3226, allocations: 28.84 kB / 1.331 GB, free: 13.06 MB / 1.029 GB Notification: Performance of preOpt evalFunc (simulation): time 1.462e-05/0.3226, allocations: 0 / 1.331 GB, free: 13.06 MB / 1.029 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.032e-05/0.3227, allocations: 34.56 kB / 1.331 GB, free: 13.02 MB / 1.029 GB Notification: Performance of pre-optimization done (n=7): time 9.42e-07/0.3227, allocations: 0 / 1.331 GB, free: 13.02 MB / 1.029 GB Notification: Performance of matching and sorting (n=11): time 0.001693/0.3244, allocations: 0.4996 MB / 1.331 GB, free: 12.46 MB / 1.029 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.388e-05/0.3244, allocations: 51.41 kB / 1.331 GB, free: 12.4 MB / 1.029 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 8.129e-05/0.3245, allocations: 97.84 kB / 1.331 GB, free: 12.29 MB / 1.029 GB Notification: Performance of collectPreVariables (initialization): time 2.492e-05/0.3245, allocations: 33.7 kB / 1.332 GB, free: 12.25 MB / 1.029 GB Notification: Performance of collectInitialEqns (initialization): time 6.105e-05/0.3246, allocations: 88.09 kB / 1.332 GB, free: 12.16 MB / 1.029 GB Notification: Performance of collectInitialBindings (initialization): time 4.269e-05/0.3246, allocations: 39.69 kB / 1.332 GB, free: 12.12 MB / 1.029 GB Notification: Performance of simplifyInitialFunctions (initialization): time 5.17e-05/0.3247, allocations: 29.83 kB / 1.332 GB, free: 12.09 MB / 1.029 GB Notification: Performance of setup shared object (initialization): time 0.0001503/0.3248, allocations: 318.8 kB / 1.332 GB, free: 11.77 MB / 1.029 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001452/0.325, allocations: 43.91 kB / 1.332 GB, free: 11.73 MB / 1.029 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001292/0.3251, allocations: 31.98 kB / 1.332 GB, free: 11.7 MB / 1.029 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002558/0.3254, allocations: 76.02 kB / 1.332 GB, free: 11.62 MB / 1.029 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 9.72e-07/0.3254, allocations: 0 / 1.332 GB, free: 11.62 MB / 1.029 GB Notification: Performance of matching and sorting (n=13) (initialization): time 0.0003259/0.3257, allocations: 117.8 kB / 1.332 GB, free: 11.5 MB / 1.029 GB Notification: Performance of prepare postOptimizeDAE: time 1.433e-05/0.3257, allocations: 6.031 kB / 1.332 GB, free: 11.5 MB / 1.029 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.088e-06/0.3257, allocations: 0 / 1.332 GB, free: 11.5 MB / 1.029 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.511e-05/0.3257, allocations: 3.984 kB / 1.332 GB, free: 11.49 MB / 1.029 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000168/0.3259, allocations: 35.91 kB / 1.332 GB, free: 11.46 MB / 1.029 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.515e-06/0.3259, allocations: 4 kB / 1.332 GB, free: 11.45 MB / 1.029 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 6.595e-05/0.326, allocations: 8 kB / 1.332 GB, free: 11.45 MB / 1.029 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.049e-05/0.326, allocations: 3.938 kB / 1.332 GB, free: 11.44 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 8.944e-05/0.3261, allocations: 114.4 kB / 1.332 GB, free: 11.32 MB / 1.029 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.768e-05/0.3261, allocations: 11.94 kB / 1.332 GB, free: 11.31 MB / 1.029 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0004004/0.3265, allocations: 129.6 kB / 1.333 GB, free: 11.17 MB / 1.029 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.428e-06/0.3265, allocations: 4 kB / 1.333 GB, free: 11.16 MB / 1.029 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.86e-06/0.3265, allocations: 8 kB / 1.333 GB, free: 11.16 MB / 1.029 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.705e-06/0.3265, allocations: 0 / 1.333 GB, free: 11.16 MB / 1.029 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0005593/0.3271, allocations: 326.1 kB / 1.333 GB, free: 10.8 MB / 1.029 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.573e-06/0.3271, allocations: 0 / 1.333 GB, free: 10.8 MB / 1.029 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001648/0.3272, allocations: 27.92 kB / 1.333 GB, free: 10.77 MB / 1.029 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.024e-06/0.3272, allocations: 0 / 1.333 GB, free: 10.77 MB / 1.029 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.38e-05/0.3273, allocations: 7.984 kB / 1.333 GB, free: 10.77 MB / 1.029 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.342e-06/0.3273, allocations: 0 / 1.333 GB, free: 10.77 MB / 1.029 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.655e-06/0.3273, allocations: 3.938 kB / 1.333 GB, free: 10.76 MB / 1.029 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0005152/0.3278, allocations: 255.4 kB / 1.333 GB, free: 10.5 MB / 1.029 GB Notification: Performance of postOpt removeConstants (simulation): time 1.236e-05/0.3278, allocations: 7.984 kB / 1.333 GB, free: 10.49 MB / 1.029 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.679e-05/0.3278, allocations: 0 / 1.333 GB, free: 10.49 MB / 1.029 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000126/0.3279, allocations: 8 kB / 1.333 GB, free: 10.48 MB / 1.029 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.095e-05/0.3279, allocations: 11.92 kB / 1.333 GB, free: 10.47 MB / 1.029 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.207e-05/0.328, allocations: 7.984 kB / 1.333 GB, free: 10.46 MB / 1.029 GB Notification: Performance of sorting global known variables: time 4.392e-05/0.328, allocations: 83.28 kB / 1.333 GB, free: 10.38 MB / 1.029 GB Notification: Performance of sort global known variables: time 7e-08/0.328, allocations: 0 / 1.333 GB, free: 10.38 MB / 1.029 GB Notification: Performance of remove unused functions: time 0.0002907/0.3283, allocations: 39.94 kB / 1.333 GB, free: 10.34 MB / 1.029 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 2 (dp_comp,der_dp_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.0002111/0.3285, allocations: 131 kB / 1.333 GB, free: 10.2 MB / 1.029 GB Notification: Performance of simCode: created initialization part: time 0.0003265/0.3288, allocations: 79.89 kB / 1.333 GB, free: 10.12 MB / 1.029 GB Notification: Performance of simCode: created event and clocks part: time 2.144e-06/0.3288, allocations: 4 kB / 1.333 GB, free: 10.12 MB / 1.029 GB Notification: Performance of simCode: created simulation system equations: time 0.0001415/0.329, allocations: 40.34 kB / 1.334 GB, free: 10.08 MB / 1.029 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002996/0.3293, allocations: 9.625 kB / 1.334 GB, free: 10.07 MB / 1.029 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0006643/0.3299, allocations: 318.2 kB / 1.334 GB, free: 9.738 MB / 1.029 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 6.77e-05/0.33, allocations: 75.33 kB / 1.334 GB, free: 9.645 MB / 1.029 GB Notification: Performance of simCode: alias equations: time 6.255e-05/0.3301, allocations: 24.58 kB / 1.334 GB, free: 9.621 MB / 1.029 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.335e-05/0.3301, allocations: 19.44 kB / 1.334 GB, free: 9.602 MB / 1.029 GB Notification: Performance of SimCode: time 2.9e-07/0.3301, allocations: 0 / 1.334 GB, free: 9.602 MB / 1.029 GB Notification: Performance of Templates: time 0.004/0.3341, allocations: 1.207 MB / 1.335 GB, free: 8.449 MB / 1.029 GB " [Timeout remaining time 300] make -j1 -f Buildings_12_Buildings.Fluid.BaseClasses.FlowModels.Validation.BasicFlowFunction_m_flow_DerivativeCheck2.makefile [Timeout 300] (rm -f Buildings_12_Buildings.Fluid.BaseClasses.FlowModels.Validation.BasicFlowFunction_m_flow_DerivativeCheck2.pipe ; mkfifo Buildings_12_Buildings.Fluid.BaseClasses.FlowModels.Validation.BasicFlowFunction_m_flow_DerivativeCheck2.pipe ; head -c 1048576 < Buildings_12_Buildings.Fluid.BaseClasses.FlowModels.Validation.BasicFlowFunction_m_flow_DerivativeCheck2.pipe >> ../files/Buildings_12_Buildings.Fluid.BaseClasses.FlowModels.Validation.BasicFlowFunction_m_flow_DerivativeCheck2.sim & ./Buildings_12_Buildings.Fluid.BaseClasses.FlowModels.Validation.BasicFlowFunction_m_flow_DerivativeCheck2 -abortSlowSimulation -alarm=400 -s gbode -emit_protected -lv LOG_STATS > Buildings_12_Buildings.Fluid.BaseClasses.FlowModels.Validation.BasicFlowFunction_m_flow_DerivativeCheck2.pipe 2>&1) [Timeout 400] diffSimulationResults("Buildings_12_Buildings.Fluid.BaseClasses.FlowModels.Validation.BasicFlowFunction_m_flow_DerivativeCheck2_res.mat","/mnt/ReferenceFiles/Buildings/csv/maint_12.x/Buildings_Fluid_BaseClasses_FlowModels_Validation_BasicFlowFunction_m_flow_DerivativeCheck2.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_12_Buildings.Fluid.BaseClasses.FlowModels.Validation.BasicFlowFunction_m_flow_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: 8.560299096992821]